public static class TransactionContext.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TransactionContext |
build() |
TransactionContext.Builder |
setClientRequest(RaftClientRequest clientRequest) |
TransactionContext.Builder |
setLogData(org.apache.ratis.thirdparty.com.google.protobuf.ByteString logData) |
TransactionContext.Builder |
setLogEntry(org.apache.ratis.proto.RaftProtos.LogEntryProto logEntry) |
TransactionContext.Builder |
setServerRole(org.apache.ratis.proto.RaftProtos.RaftPeerRole serverRole) |
TransactionContext.Builder |
setStateMachine(StateMachine stateMachine) |
TransactionContext.Builder |
setStateMachineContext(Object stateMachineContext) |
TransactionContext.Builder |
setStateMachineData(org.apache.ratis.thirdparty.com.google.protobuf.ByteString stateMachineData) |
TransactionContext.Builder |
setStateMachineLogEntry(org.apache.ratis.proto.RaftProtos.StateMachineLogEntryProto stateMachineLogEntry) |
public TransactionContext.Builder setServerRole(org.apache.ratis.proto.RaftProtos.RaftPeerRole serverRole)
public TransactionContext.Builder setStateMachine(StateMachine stateMachine)
public TransactionContext.Builder setStateMachineContext(Object stateMachineContext)
public TransactionContext.Builder setClientRequest(RaftClientRequest clientRequest)
public TransactionContext.Builder setLogEntry(org.apache.ratis.proto.RaftProtos.LogEntryProto logEntry)
public TransactionContext.Builder setStateMachineLogEntry(org.apache.ratis.proto.RaftProtos.StateMachineLogEntryProto stateMachineLogEntry)
public TransactionContext.Builder setLogData(org.apache.ratis.thirdparty.com.google.protobuf.ByteString logData)
public TransactionContext.Builder setStateMachineData(org.apache.ratis.thirdparty.com.google.protobuf.ByteString stateMachineData)
public TransactionContext build()
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.