Package com.couchbase.transactions.util
Class TestAttemptContextFactory
- java.lang.Object
-
- com.couchbase.transactions.util.TestAttemptContextFactory
-
- All Implemented Interfaces:
AttemptContextFactory
@Internal public class TestAttemptContextFactory extends java.lang.Object implements AttemptContextFactory
Can be used for testing transactions, but is for internal use only.
-
-
Constructor Summary
Constructors Constructor Description TestAttemptContextFactory(TransactionMock transactionMock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttemptContextReactive
create(TransactionContext overall, MergedTransactionConfig config, java.lang.String attemptId, TransactionsReactive parent, java.util.Optional<SpanWrapper> parentSpan)
AttemptContextReactive
createFrom(com.couchbase.client.java.json.JsonObject serialized, TransactionContext overall, MergedTransactionConfig config, TransactionsReactive transactionsReactive)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.couchbase.transactions.support.AttemptContextFactory
create, createFrom
-
-
-
-
Constructor Detail
-
TestAttemptContextFactory
public TestAttemptContextFactory(TransactionMock transactionMock)
-
-
Method Detail
-
create
public AttemptContextReactive create(TransactionContext overall, MergedTransactionConfig config, java.lang.String attemptId, TransactionsReactive parent, java.util.Optional<SpanWrapper> parentSpan)
- Specified by:
create
in interfaceAttemptContextFactory
-
createFrom
public AttemptContextReactive createFrom(com.couchbase.client.java.json.JsonObject serialized, TransactionContext overall, MergedTransactionConfig config, TransactionsReactive transactionsReactive)
- Specified by:
createFrom
in interfaceAttemptContextFactory
-
-