类的使用
org.apache.bookkeeper.mledger.ManagedLedgerException
使用ManagedLedgerException的程序包
程序包
说明
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
-
org.apache.bookkeeper.mledger中ManagedLedgerException的使用
修饰符和类型类说明static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class修饰符和类型方法说明static ManagedLedgerExceptionManagedLedgerException.getManagedLedgerException(Throwable e) 修饰符和类型方法说明voidAsyncCallbacks.AddEntryCallback.addFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ClearBacklogCallback.clearBacklogFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.CloseCallback.closeFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.DeleteCursorCallback.deleteCursorFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.DeleteCallback.deleteFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.DeleteLedgerCallback.deleteLedgerFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.FindEntryCallback.findEntryFailed(ManagedLedgerException exception, Optional<Position> failedReadPosition, Object ctx) voidAsyncCallbacks.ManagedLedgerInfoCallback.getInfoFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.MarkDeleteCallback.markDeleteFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OffloadCallback.offloadFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OpenCursorCallback.openCursorFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OpenLedgerCallback.openLedgerFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.OpenReadOnlyCursorCallback.openReadOnlyCursorFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ReadEntriesCallback.readEntriesFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ReadEntryCallback.readEntryFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.ResetCursorCallback.resetFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.SkipEntriesCallback.skipEntriesFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.TerminateCallback.terminateFailed(ManagedLedgerException exception, Object ctx) voidAsyncCallbacks.UpdatePropertiesCallback.updatePropertiesFailed(ManagedLedgerException exception, Object ctx) 修饰符和类型方法说明ManagedLedger.addEntry(byte[] data) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int numberOfMessages) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int offset, int length) Append a new entry to the end of a managed ledger.ManagedLedger.addEntry(byte[] data, int numberOfMessages, int offset, int length) Append a new entry to the end of a managed ledger.voidManagedCursor.clearBacklog()Clear the cursor backlog.voidManagedCursor.close()Close the cursor and releases the associated resources.voidManagedLedger.close()Close the ManagedLedger.voidReadOnlyCursor.close()Close the cursor and releases the associated resources.voidDelete a group of entries.voidDelete a single message.voidManagedLedger.delete()Delete the ManagedLedger.voidDelete a managed ledger.voidManagedLedger.deleteCursor(String name) Remove a ManagedCursor from this ManagedLedger.voidManagedLedger.deleteProperty(String key) Delete the property by key.ManagedCursor.findNewestMatching(com.google.common.base.Predicate<Entry> condition) Find the newest entry that matches the given predicate.ManagedCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, com.google.common.base.Predicate<Entry> condition) Find the newest entry that matches the given predicate.ReadOnlyCursor.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, com.google.common.base.Predicate<Entry> condition) Find the newest entry that matches the given predicate.ManagedLedgerFactory.getManagedLedgerInfo(String name) Get the current metadata info for a managed ledger.ManagedCursor.getNthEntry(int n, ManagedCursor.IndividualDeletedEntries deletedEntries) Get 'N'th entry from the mark delete position in the cursor without updating any cursor positions.voidManagedCursor.markDelete(Position position) This signals that the reader is done with all the entries up to "position" (included).voidManagedCursor.markDelete(Position position, Map<String, Long> properties) This signals that the reader is done with all the entries up to "position" (included).ManagedLedger.newNonDurableCursor(Position startCursorPosition) Creates a new cursor whose metadata is not backed by durable storage.ManagedLedger.newNonDurableCursor(Position startPosition, String subscriptionName) ManagedLedger.newNonDurableCursor(Position startPosition, String subscriptionName, org.apache.pulsar.common.api.proto.CommandSubscribe.InitialPosition initialPosition, boolean isReadCompacted) ManagedLedger.offloadPrefix(Position pos) Offload as many entries before position as possible to longterm storage.Open a managed ledger.ManagedLedgerFactory.open(String name, ManagedLedgerConfig config) Open a managed ledger.ManagedLedger.openCursor(String name) Open a ManagedCursor in this ManagedLedger.ManagedLedger.openCursor(String name, org.apache.pulsar.common.api.proto.CommandSubscribe.InitialPosition initialPosition) Open a ManagedCursor in this ManagedLedger.ManagedLedger.openCursor(String name, org.apache.pulsar.common.api.proto.CommandSubscribe.InitialPosition initialPosition, Map<String, Long> properties, Map<String, String> cursorProperties) Open a ManagedCursor in this ManagedLedger.ManagedLedgerFactory.openReadOnlyCursor(String managedLedgerName, Position startPosition, ManagedLedgerConfig config) Open aReadOnlyCursorpositioned to the earliest entry for the specified managed ledger.ManagedCursor.readEntries(int numberOfEntriesToRead) Read entries from the ManagedLedger, up to the specified number.ReadOnlyCursor.readEntries(int numberOfEntriesToRead) Read entries from the ManagedLedger, up to the specified number.ManagedCursor.readEntriesOrWait(int numberOfEntriesToRead) Read entries from the ManagedLedger, up to the specified number.ManagedCursor.readEntriesOrWait(int maxEntries, long maxSizeBytes) Read entries from the ManagedLedger, up to the specified number and size.ManagedCursor.replayEntries(Set<? extends Position> positions) Read the specified set of positions from ManagedLedger.voidManagedCursor.resetCursor(Position position) reset the cursor to specified position to enable replay of messages.voidManagedLedger.setProperties(Map<String, String> properties) Update managed-ledger's properties.voidManagedLedger.setProperty(String key, String value) Add key-value to propertiesMap.voidManagedLedgerFactory.shutdown()Releases all the resources maintained by the ManagedLedgerFactory.ManagedLedgerFactory.shutdownAsync()This method tries it's best to releases all the resources maintained by the ManagedLedgerFactory.voidManagedCursor.skipEntries(int numEntriesToSkip, ManagedCursor.IndividualDeletedEntries deletedEntries) Skip n entries from the read position of this cursor.ManagedLedger.terminate()Terminate the managed ledger and return the last committed entry. -
org.apache.bookkeeper.mledger.impl中ManagedLedgerException的使用
修饰符和类型方法说明static ManagedLedgerExceptionManagedLedgerImpl.createManagedLedgerException(int bkErrorCode) static ManagedLedgerExceptionManagedLedgerImpl.createManagedLedgerException(Throwable t) 修饰符和类型方法说明voidOpAddEntry.failed(ManagedLedgerException e) voidManagedCursorImpl.VoidCallback.operationFailed(ManagedLedgerException exception) 修饰符和类型方法说明ManagedLedgerImpl.addEntry(byte[] data) ManagedLedgerImpl.addEntry(byte[] data, int numberOfMessages) ManagedLedgerImpl.addEntry(byte[] data, int offset, int length) ManagedLedgerImpl.addEntry(byte[] data, int numberOfMessages, int offset, int length) voidManagedCursorImpl.clearBacklog()voidManagedCursorImpl.close()voidManagedLedgerImpl.close()voidvoidvoidvoidManagedLedgerImpl.delete()Delete this ManagedLedger completely from the system.voidManagedLedgerImpl.deleteCursor(String name) voidManagedLedgerImpl.deleteProperty(String key) ManagedCursorImpl.findNewestMatching(com.google.common.base.Predicate<Entry> condition) ManagedCursorImpl.findNewestMatching(ManagedCursor.FindPositionConstraint constraint, com.google.common.base.Predicate<Entry> condition) ManagedLedgerFactoryImpl.getManagedLedgerInfo(String name) ManagedCursorImpl.getNthEntry(int n, ManagedCursor.IndividualDeletedEntries deletedEntries) voidManagedCursorImpl.markDelete(Position position) voidManagedCursorImpl.markDelete(Position position, Map<String, Long> properties) ManagedLedgerImpl.newNonDurableCursor(Position startCursorPosition) ManagedLedgerImpl.newNonDurableCursor(Position startPosition, String subscriptionName) ManagedLedgerImpl.newNonDurableCursor(Position startCursorPosition, String cursorName, org.apache.pulsar.common.api.proto.CommandSubscribe.InitialPosition initialPosition, boolean isReadCompacted) ManagedLedgerImpl.offloadPrefix(Position pos) ManagedLedgerFactoryImpl.open(String name, ManagedLedgerConfig config) ManagedLedgerImpl.openCursor(String cursorName) ManagedLedgerImpl.openCursor(String cursorName, org.apache.pulsar.common.api.proto.CommandSubscribe.InitialPosition initialPosition) ManagedLedgerImpl.openCursor(String cursorName, org.apache.pulsar.common.api.proto.CommandSubscribe.InitialPosition initialPosition, Map<String, Long> properties, Map<String, String> cursorProperties) ManagedLedgerFactoryImpl.openReadOnlyCursor(String managedLedgerName, Position startPosition, ManagedLedgerConfig config) ManagedCursorImpl.readEntries(int numberOfEntriesToRead) ManagedCursorImpl.readEntriesOrWait(int numberOfEntriesToRead) ManagedCursorImpl.readEntriesOrWait(int numberOfEntriesToRead, long maxSizeBytes) ManagedCursorImpl.replayEntries(Set<? extends Position> positions) voidManagedCursorImpl.resetCursor(Position newPos) voidManagedLedgerImpl.setProperties(Map<String, String> properties) voidManagedLedgerImpl.setProperty(String key, String value) voidManagedLedgerFactoryImpl.shutdown()ManagedLedgerFactoryImpl.shutdownAsync()voidManagedCursorImpl.skipEntries(int numEntriesToSkip, ManagedCursor.IndividualDeletedEntries deletedEntries) ManagedLedgerImpl.terminate() -
org.apache.bookkeeper.mledger.util中ManagedLedgerException的使用