Class CouchbaseResourceHolder
java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
org.springframework.data.couchbase.transaction.CouchbaseResourceHolder
- All Implemented Interfaces:
ResourceHolder
Container for couchbase transaction resources to hold in threadlocal or reactive context.
- Author:
- Michael Reiche
-
Constructor Summary
ConstructorDescriptionCouchbaseResourceHolder
(com.couchbase.client.core.transaction.CoreTransactionAttemptContext core) Create a newCouchbaseResourceHolder
for a givensession
.CouchbaseResourceHolder
(com.couchbase.client.core.transaction.CoreTransactionAttemptContext core, Object securityContext) Create a newCouchbaseResourceHolder
for a givensession
. -
Method Summary
Modifier and TypeMethodDescriptioncom.couchbase.client.core.transaction.CoreTransactionAttemptContext
getCore()
transactionResultHolder
(Object holder, Object o) Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
-
Constructor Details
-
CouchbaseResourceHolder
public CouchbaseResourceHolder(@Nullable com.couchbase.client.core.transaction.CoreTransactionAttemptContext core) Create a newCouchbaseResourceHolder
for a givensession
.- Parameters:
core
- the associatedCoreTransactionAttemptContext
. Can be null.
-
CouchbaseResourceHolder
public CouchbaseResourceHolder(@Nullable com.couchbase.client.core.transaction.CoreTransactionAttemptContext core, @Nullable Object securityContext) Create a newCouchbaseResourceHolder
for a givensession
.- Parameters:
core
- the associatedCoreTransactionAttemptContext
. Can be null.
-
-
Method Details
-
getCore
- Returns:
- the associated
CoreTransactionAttemptContext
. Can be null.
-
getSecurityContext
- Returns:
- the associated
CoreTransactionAttemptContext
. Can be null.
-
transactionResultHolder
-