Enum Class的使用
org.apache.pulsar.common.api.proto.TxnAction
使用TxnAction的程序包
-
org.apache.pulsar.common.api.proto中TxnAction的使用
修饰符和类型方法说明CommandEndTxn.getTxnAction()CommandEndTxnOnPartition.getTxnAction()CommandEndTxnOnSubscription.getTxnAction()static TxnActionTxnAction.valueOf(int n) Returns the enum constant of this class with the specified name.static TxnActionReturns the enum constant of this class with the specified name.static TxnAction[]TxnAction.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明CommandEndTxn.setTxnAction(TxnAction txnAction) CommandEndTxnOnPartition.setTxnAction(TxnAction txnAction) CommandEndTxnOnSubscription.setTxnAction(TxnAction txnAction) -
org.apache.pulsar.common.protocol中TxnAction的使用
修饰符和类型方法说明static BaseCommandstatic io.netty.buffer.ByteBufCommands.newEndTxnOnPartition(long requestId, long txnIdLeastBits, long txnIdMostBits, String topic, TxnAction txnAction, long lowWaterMark) static io.netty.buffer.ByteBufCommands.newEndTxnOnSubscription(long requestId, long txnIdLeastBits, long txnIdMostBits, String topic, String subscription, TxnAction txnAction, long lowWaterMark)