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 RandomAccessFile
protected ByteBuffer
protected FileChannel
protected boolean
Fields 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, totalSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Queue
Initializes queue. That includes restore of previously saved queue content for persistent queues.- Specified by:
initialize
in interfaceQueue<T extends Queueable>
- Overrides:
initialize
in classInMemoryQueue<T extends Queueable>
- See Also:
-
commit
public void commit()Description copied from interface:Queue
Removes polled object from the queue. If nothing was polled - throws IllegalStateException -
add
Description copied from interface:Queue
Add object to the queue. -
clear
public void clear()Description copied from interface:Queue
Clears the queue. -
clearAndNormalizeFile
protected void clearAndNormalizeFile() -
shutdown
public void shutdown()Description copied from interface:Queue
Gracefully shutdowns queue.
-