public static interface MQueues.Tailer<M> extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
Offset |
commit()
Commit the offset of the last message returned by read.
|
int |
getQueue()
Returns the associated queue index.
|
M |
read(Duration timeout)
Read a message from the queue within the timeout.
|
void |
toEnd()
Go to the end of the queue.
|
void |
toLastCommitted()
Go just after the last committed message.
|
void |
toStart()
Go to the beginning of the queue.
|
close
M read(Duration timeout) throws InterruptedException
InterruptedException
void toEnd()
void toStart()
void toLastCommitted()
int getQueue()
Copyright © 2017 Nuxeo. All rights reserved.