Package com.epam.fixengine.storage.queue
Class MMFPersistentInMemoryQueue<T extends Queueable>
java.lang.Object
com.epam.fixengine.storage.queue.InMemoryQueue<T>
com.epam.fixengine.storage.queue.MMFPersistentInMemoryQueue<T>
- All Implemented Interfaces:
Queue<T>
public class MMFPersistentInMemoryQueue<T extends Queueable>
extends InMemoryQueue<T>
implements Queue<T>
User: Mykhailo_Sereda
Date: 22.05.12
Time: 17:03
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RandomAccessFileprotected ByteBufferprotected FileChannelprotected booleanFields inherited from class com.epam.fixengine.storage.queue.InMemoryQueue
application, maskedTags, session -
Constructor Summary
ConstructorsConstructorDescriptionMMFPersistentInMemoryQueue(String filename, QueueableFactory<T> factory) Deprecated.MMFPersistentInMemoryQueue(String filename, QueueableFactory<T> factory, com.epam.fixengine.configuration.Configuration conf) -
Method Summary
Methods inherited from class com.epam.fixengine.storage.queue.InMemoryQueue
addOutOfTurn, clearOutOfTurn, isAllEmpty, isApplicationCommit, isEmpty, isOutOfTurnOnlyMode, isShutdown, notifyAllApplication, notifyAllSession, poll, setOutOfTurnOnlyMode, size, toArray, totalSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.epam.fixengine.storage.queue.Queue
addOutOfTurn, clearOutOfTurn, isAllEmpty, isEmpty, isOutOfTurnOnlyMode, notifyAllApplication, notifyAllSession, poll, setOutOfTurnOnlyMode, size, toArray, totalSize
-
Field Details
-
channel
-
accessFile
-
buffer
-
isForcedFlush
protected boolean isForcedFlush
-
-
Constructor Details
-
MMFPersistentInMemoryQueue
Deprecated. -
MMFPersistentInMemoryQueue
public MMFPersistentInMemoryQueue(String filename, QueueableFactory<T> factory, com.epam.fixengine.configuration.Configuration conf)
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:QueueInitializes queue. That includes restore of previously saved queue content for persistent queues.- Specified by:
initializein interfaceQueue<T extends Queueable>- Overrides:
initializein classInMemoryQueue<T extends Queueable>- See Also:
-
commit
public void commit()Description copied from interface:QueueRemoves polled object from the queue. If nothing was polled - throws IllegalStateException -
add
Description copied from interface:QueueAdd object to the queue. -
clear
public void clear()Description copied from interface:QueueClears the queue. -
clearAndNormalizeFile
protected void clearAndNormalizeFile() -
shutdown
public void shutdown()Description copied from interface:QueueGracefully shutdowns queue.
-