接口的使用
org.apache.bookkeeper.mledger.ManagedCursor
使用ManagedCursor的程序包
程序包
说明
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中ManagedCursor的使用
修饰符和类型方法说明ManagedLedger.getSlowestConsumer()Get the slowest consumer.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.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.返回变量类型为ManagedCursor的类型的org.apache.bookkeeper.mledger中的方法修饰符和类型方法说明ManagedLedger.getActiveCursors()Get a list of all the active cursors reading from this ManagedLedger.ManagedLedger.getCursors()Get a list of all the cursors reading from this ManagedLedger.修饰符和类型方法说明voidAsyncCallbacks.OpenCursorCallback.openCursorComplete(ManagedCursor cursor, Object ctx) voidManagedLedger.removeWaitingCursor(ManagedCursor cursor) Remove a ManagedCursor from this ManagedLedger's waitingCursors. -
org.apache.bookkeeper.mledger.impl中ManagedCursor的使用
修饰符和类型方法说明ManagedLedgerImpl.getSlowestConsumer()ManagedCursorContainer.getSlowestReader()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.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) 返回变量类型为ManagedCursor的类型的org.apache.bookkeeper.mledger.impl中的方法修饰符和类型方法说明voidManagedLedgerImpl.activateCursor(ManagedCursor cursor) voidManagedCursorContainer.add(ManagedCursor cursor, Position position) Add a cursor to the container.org.apache.commons.lang3.tuple.Pair<PositionImpl,PositionImpl> ManagedCursorContainer.cursorUpdated(ManagedCursor cursor, Position newPosition) Signal that a cursor position has been updated and that the container must re-order the cursor heap tracking the slowest reader.voidManagedLedgerImpl.deactivateCursor(ManagedCursor cursor) booleanManagedLedgerImpl.isCursorActive(ManagedCursor cursor) voidManagedLedgerImpl.removeWaitingCursor(ManagedCursor cursor)