public interface IQueue
Modifier and Type | Method and Description |
---|---|
void |
add(FIXFieldList fixMessage)
add message to queue.
|
void |
clear()
Clears the queue.
|
void |
commit(IQueueable object)
Removes polled object from the queue.
|
void |
commit(IQueueable[] batchItems,
int size)
Removes polled objects from the queue.
|
void |
failedProcessing(IQueueable items)
Return element to queue.
|
void |
failedProcessing(IQueueable[] batchItems,
int size)
Return element to queue.
|
void |
initialize()
Initializes queue.
|
boolean |
isEmpty()
Checks if queue is currently empty.
|
IQueueable |
poll()
Poll object from the queue (doesn't remove it from queue yet!).
|
void |
shutdown()
Gracefully shutdowns queue.
|
int |
size()
Returns current queue size.
|
IQueueable |
take()
Retrieves and mark as processing the head of this queue, waiting if necessary
until an element becomes available.
|
int |
take(IQueueable[] batch)
Retrieves and mark as processing the batch elements from head of this queue, waiting if necessary
until at least one element becomes available.
|
void add(FIXFieldList fixMessage) throws InterruptedException, IOException
fixMessage
- InterruptedException
IOException
IQueueable poll()
commit(com.epam.fixengine.jms.storage.queue.IQueueable)
IQueueable take()
IllegalStateException
- if interrupted while waitingint take(IQueueable[] batch)
IllegalStateException
- if interrupted while waitingvoid failedProcessing(IQueueable items)
items
- void failedProcessing(IQueueable[] batchItems, int size)
batchItems
- size
- the number of items in batchvoid commit(IQueueable object) throws IOException
object
- IOException
void commit(IQueueable[] batchItems, int size) throws IOException
batchItems
- size
- the number of items in batchIOException
boolean isEmpty()
int size()
void clear() throws IOException
IOException
void shutdown()
void initialize() throws IOException
IOException
Copyright © 2000–2022 EPAM Systems. All rights reserved.