public interface TransactionParticipant<T> extends DistributedPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
close()
Closes the participant.
|
CompletableFuture<Void> |
commit()
Commits the participant.
|
TransactionLog<T> |
log()
Returns the participant's transaction log.
|
CompletableFuture<Boolean> |
prepare()
Prepares the participant.
|
ProxyProtocol |
protocol()
Returns the primitive protocol.
|
CompletableFuture<Void> |
rollback()
Rolls back the participant.
|
addStateChangeListener, name, removeStateChangeListener, typeProxyProtocol protocol()
DistributedPrimitiveprotocol in interface DistributedPrimitiveTransactionLog<T> log()
CompletableFuture<Boolean> prepare()
CompletableFuture<Void> commit()
CompletableFuture<Void> rollback()
CompletableFuture<Void> close()
Copyright © 2013–2018. All rights reserved.