public class TransactionContextImpl extends Object implements TransactionContext
TransactionContext
This is a private API. Applications should use TransactionContext and TransactionContext.Builder.TransactionContext.Builderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewBuilderpublic org.apache.ratis.proto.RaftProtos.RaftPeerRole getServerRole()
getServerRole 在接口中 TransactionContextpublic RaftClientRequest getClientRequest()
getClientRequest 在接口中 TransactionContextpublic org.apache.ratis.proto.RaftProtos.StateMachineLogEntryProto getStateMachineLogEntry()
getStateMachineLogEntry 在接口中 TransactionContextpublic Exception getException()
getException 在接口中 TransactionContextpublic TransactionContext setStateMachineContext(Object context)
setStateMachineContext 在接口中 TransactionContextpublic Object getStateMachineContext()
getStateMachineContext 在接口中 TransactionContextpublic org.apache.ratis.proto.RaftProtos.LogEntryProto initLogEntry(long term, long index)
initLogEntry 在接口中 TransactionContextpublic org.apache.ratis.proto.RaftProtos.LogEntryProto getLogEntry()
getLogEntry 在接口中 TransactionContextpublic TransactionContext setException(Exception ioe)
setException 在接口中 TransactionContextpublic TransactionContext setShouldCommit(boolean sCommit)
setShouldCommit 在接口中 TransactionContextpublic boolean shouldCommit()
shouldCommit 在接口中 TransactionContextpublic TransactionContext preAppendTransaction() throws IOException
preAppendTransaction 在接口中 TransactionContextIOExceptionpublic TransactionContext cancelTransaction() throws IOException
cancelTransaction 在接口中 TransactionContextIOExceptionCopyright © 2017–2022 The Apache Software Foundation. All rights reserved.