-
Method Summary
boolean
Wait until any pending puts are committed
int
Return the most recent message count from the queue.
Return the manager for put listeners
void
void
-
Method Details
-
start
Start the queue. No other methods work until this is called
- Throws:
Exception
- startup errors
-
getPutListenerContainer
Return the manager for put listeners
- Returns:
- put listener container
-
setErrorMode
- Parameters:
newErrorMode
- the new error mode (the default is ErrorMode.REQUEUE
-
flushPuts
Wait until any pending puts are committed
- Parameters:
waitTime
- max wait time
timeUnit
- time unit
- Returns:
- true if the flush was successful, false if it timed out first
- Throws:
InterruptedException
- if thread was interrupted
-
getLastMessageCount
int getLastMessageCount()
Return the most recent message count from the queue. This is useful for debugging/information
purposes only.
- Returns:
- count (can be 0)