Package deltix.qsrv.hf.blocks
Class RawMessageQueue
- java.lang.Object
-
- deltix.qsrv.hf.blocks.RawMessageQueue
-
- All Implemented Interfaces:
MarketMessageQueue<RawMessage>
public class RawMessageQueue extends java.lang.Object implements MarketMessageQueue<RawMessage>
-
-
Constructor Summary
Constructors Constructor Description RawMessageQueue(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(RawMessage msg)Adds element to the tail of the queue.voiddispose()booleanisEmpty()booleanisFull()RawMessagepeek()Retrieves, but does not remove, the head of this queue, or returnsnullif this queue is empty.RawMessagepeekLast()Retrieves, but does not remove, the tail of this queue, or returnsnullif this queue is empty.voidrelease(RawMessage msg)RawMessageremove()Retrieves and removes the head of this queue, or returnsnullif this queue is empty.intsize()
-
-
-
Method Detail
-
add
public void add(RawMessage msg)
Description copied from interface:MarketMessageQueueAdds element to the tail of the queue. If capacity is exceeded new element overrides the oldest one (head)- Specified by:
addin interfaceMarketMessageQueue<RawMessage>
-
remove
public RawMessage remove()
Description copied from interface:MarketMessageQueueRetrieves and removes the head of this queue, or returnsnullif this queue is empty.- Specified by:
removein interfaceMarketMessageQueue<RawMessage>- Returns:
- the head of this queue, or
nullif this queue is empty
-
peek
public RawMessage peek()
Description copied from interface:MarketMessageQueueRetrieves, but does not remove, the head of this queue, or returnsnullif this queue is empty.- Specified by:
peekin interfaceMarketMessageQueue<RawMessage>
-
peekLast
public RawMessage peekLast()
Description copied from interface:MarketMessageQueueRetrieves, but does not remove, the tail of this queue, or returnsnullif this queue is empty.- Specified by:
peekLastin interfaceMarketMessageQueue<RawMessage>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceMarketMessageQueue<RawMessage>
-
isFull
public boolean isFull()
- Specified by:
isFullin interfaceMarketMessageQueue<RawMessage>
-
size
public int size()
- Specified by:
sizein interfaceMarketMessageQueue<RawMessage>
-
dispose
public void dispose()
- Specified by:
disposein interfaceMarketMessageQueue<RawMessage>
-
release
public void release(RawMessage msg)
- Specified by:
releasein interfaceMarketMessageQueue<RawMessage>
-
-