public interface ClientSessionDecorator
extends com.mongodb.client.ClientSession
| Modifier and Type | Method and Description |
|---|---|
default void |
abortTransaction() |
default void |
advanceClusterTime(org.bson.BsonDocument clusterTime) |
default void |
advanceOperationTime(org.bson.BsonTimestamp operationTime) |
default void |
close() |
default void |
commitTransaction() |
default org.bson.BsonDocument |
getClusterTime() |
com.mongodb.client.ClientSession |
getImpl() |
com.github.cloudyrock.mongock.driver.api.lock.guard.invoker.LockGuardInvoker |
getInvoker() |
default org.bson.BsonTimestamp |
getOperationTime() |
default com.mongodb.ClientSessionOptions |
getOptions() |
default Object |
getOriginator() |
default com.mongodb.ServerAddress |
getPinnedServerAddress() |
default org.bson.BsonDocument |
getRecoveryToken() |
default com.mongodb.session.ServerSession |
getServerSession() |
default com.mongodb.TransactionOptions |
getTransactionOptions() |
default boolean |
hasActiveTransaction() |
default boolean |
isCausallyConsistent() |
default boolean |
notifyMessageSent() |
default void |
setPinnedServerAddress(com.mongodb.ServerAddress address) |
default void |
setRecoveryToken(org.bson.BsonDocument recoveryToken) |
default void |
startTransaction() |
default void |
startTransaction(com.mongodb.TransactionOptions transactionOptions) |
default <T> T |
withTransaction(com.mongodb.client.TransactionBody<T> transactionBody) |
default <T> T |
withTransaction(com.mongodb.client.TransactionBody<T> transactionBody,
com.mongodb.TransactionOptions options) |
com.mongodb.client.ClientSession getImpl()
com.github.cloudyrock.mongock.driver.api.lock.guard.invoker.LockGuardInvoker getInvoker()
default com.mongodb.ServerAddress getPinnedServerAddress()
getPinnedServerAddress in interface com.mongodb.session.ClientSessiondefault void setPinnedServerAddress(com.mongodb.ServerAddress address)
setPinnedServerAddress in interface com.mongodb.session.ClientSessiondefault org.bson.BsonDocument getRecoveryToken()
getRecoveryToken in interface com.mongodb.session.ClientSessiondefault void setRecoveryToken(org.bson.BsonDocument recoveryToken)
setRecoveryToken in interface com.mongodb.session.ClientSessiondefault com.mongodb.ClientSessionOptions getOptions()
getOptions in interface com.mongodb.session.ClientSessiondefault boolean isCausallyConsistent()
isCausallyConsistent in interface com.mongodb.session.ClientSessiondefault Object getOriginator()
getOriginator in interface com.mongodb.session.ClientSessiondefault com.mongodb.session.ServerSession getServerSession()
getServerSession in interface com.mongodb.session.ClientSessiondefault org.bson.BsonTimestamp getOperationTime()
getOperationTime in interface com.mongodb.session.ClientSessiondefault void advanceOperationTime(org.bson.BsonTimestamp operationTime)
advanceOperationTime in interface com.mongodb.session.ClientSessiondefault void advanceClusterTime(org.bson.BsonDocument clusterTime)
advanceClusterTime in interface com.mongodb.session.ClientSessiondefault org.bson.BsonDocument getClusterTime()
getClusterTime in interface com.mongodb.session.ClientSessiondefault void close()
close in interface AutoCloseableclose in interface com.mongodb.session.ClientSessionclose in interface Closeabledefault boolean hasActiveTransaction()
default boolean notifyMessageSent()
default com.mongodb.TransactionOptions getTransactionOptions()
default void startTransaction()
default void startTransaction(com.mongodb.TransactionOptions transactionOptions)
default void commitTransaction()
default void abortTransaction()
default <T> T withTransaction(com.mongodb.client.TransactionBody<T> transactionBody)
default <T> T withTransaction(com.mongodb.client.TransactionBody<T> transactionBody,
com.mongodb.TransactionOptions options)
Copyright © 2021. All rights reserved.