| Modifier and Type | Interface and Description |
|---|---|
static class |
DequeueResult.Empty
Static helper class for creating empty result of different result type.
|
boolean isEmpty()
true if there is no data in the queue.void reclaim()
QueueConsumer instance who provides the instance of this
DequeueResult.
E.g.
startTransaction();
DequeueResult result;
try {
result = consumer.dequeue();
commitTransaction();
} catch (Exception e) {
rollbackTransaction();
// Skip the result.
startTransaction();
result.reclaim();
commitTransaction();
}
int size()
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.