public class NonDurableCursorImpl extends ManagedCursorImpl
ManagedCursorImpl.VoidCallbackManagedCursor.FindPositionConstraint, ManagedCursor.IndividualDeletedEntriesbookkeeper, config, FALSE, LAST_MARK_DELETE_ENTRY_UPDATER, lastMarkDeleteEntry, ledger, markDeletePosition, mbean, messagesConsumedCounter, pendingMarkDeleteOps, persistentMarkDeletePosition, READ_POSITION_UPDATER, readPosition, state, statsLastReadPosition, TRUE, WAITING_READ_OP_UPDATER| Modifier and Type | Method and Description |
|---|---|
void |
asyncClose(AsyncCallbacks.CloseCallback callback,
Object ctx)
Close the cursor asynchronously and release the associated resources.
|
void |
asyncDeleteCursor(String consumerName,
AsyncCallbacks.DeleteCursorCallback callback,
Object ctx) |
protected void |
internalAsyncMarkDelete(PositionImpl newPosition,
Map<String,Long> properties,
AsyncCallbacks.MarkDeleteCallback callback,
Object ctx) |
boolean |
isDurable()
Tells whether the cursor is durable or just kept in memory.
|
boolean |
isReadCompacted() |
void |
setReadCompacted(boolean readCompacted) |
String |
toString() |
asyncClearBacklog, asyncDelete, asyncDelete, asyncFindNewestMatching, asyncGetNthEntry, asyncMarkDelete, asyncMarkDelete, asyncReadEntries, asyncReadEntries, asyncReadEntriesOrWait, asyncReadEntriesOrWait, asyncReplayEntries, asyncReplayEntries, asyncResetCursor, asyncSkipEntries, cancelPendingReadRequest, checkAndUpdateReadPositionChanged, clearBacklog, close, delete, delete, findNewestMatching, findNewestMatching, getBatchPositionAckSet, getCursorLedger, getCursorLedgerLastEntry, getDeletedBatchIndexesAsLongArray, getEstimatedSizeSinceMarkDeletePosition, getFirstPosition, getIndividuallyDeletedMessages, getIndividuallyDeletedMessagesSet, getLastActive, getLastIndividualDeletedRange, getLastLedgerSwitchTimestamp, getManagedLedger, getMarkDeletedPosition, getMessagesConsumedCounter, getName, getNextAvailablePosition, getNextLedgerPosition, getNonContiguousDeletedMessagesRangeSerializedSize, getNthEntry, getNumberOfEntries, getNumberOfEntries, getNumberOfEntriesInBacklog, getNumberOfEntriesInStorage, getNumberOfEntriesSinceFirstNotAckedMessage, getPendingReadOpsCount, getPersistentMarkDeletedPosition, getProperties, getReadPosition, getState, getStats, getThrottleMarkDelete, getTotalNonContiguousDeletedMessagesRange, hasMoreEntries, hasPendingReadRequest, internalResetCursor, isActive, isBkErrorNotRecoverable, isClosed, isIndividuallyDeletedEntriesEmpty, isMessageDeleted, markDelete, markDelete, putProperty, readEntries, readEntriesOrWait, readEntriesOrWait, recoverFromLedger, removeProperty, replayEntries, resetCursor, rewind, seek, setActive, setAlwaysInactive, setInactive, setThrottleMarkDelete, skipEntries, trimDeletedEntries, updateLastActiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitseekpublic boolean isDurable()
ManagedCursorisDurable in interface ManagedCursorisDurable in class ManagedCursorImplprotected void internalAsyncMarkDelete(PositionImpl newPosition, Map<String,Long> properties, AsyncCallbacks.MarkDeleteCallback callback, Object ctx)
internalAsyncMarkDelete in class ManagedCursorImplpublic void asyncClose(AsyncCallbacks.CloseCallback callback, Object ctx)
ManagedCursorasyncClose in interface ManagedCursorasyncClose in class ManagedCursorImplcallback - callback objectctx - opaque contextpublic void asyncDeleteCursor(String consumerName, AsyncCallbacks.DeleteCursorCallback callback, Object ctx)
public void setReadCompacted(boolean readCompacted)
public boolean isReadCompacted()
public String toString()
toString in class ManagedCursorImplCopyright © 2017–2021 Apache Software Foundation. All rights reserved.