T - The resource type, such as the connection.S - The transaction state type@Internal
public interface TransactionStateOperations<T,S extends TransactionState>
| Modifier and Type | Method and Description |
|---|---|
<R> R |
execute(S state,
TransactionDefinition definition,
TransactionCallback<T,R> callback)
Execute a read-only transaction within the context of the function.
|
<R> R |
executeRead(S state,
TransactionCallback<T,R> callback)
Execute a read-only transaction within the context of the function.
|
<R> R |
executeWrite(S state,
TransactionCallback<T,R> callback)
Execute a default transaction within the context of the function.
|
<R> R execute(@NonNull
S state,
@NonNull
TransactionDefinition definition,
@NonNull
TransactionCallback<T,R> callback)
R - The resultstate - The transaction statedefinition - The transaction definitioncallback - The call back<R> R executeRead(@NonNull
S state,
@NonNull
TransactionCallback<T,R> callback)
R - The resultstate - The transaction statecallback - The call back<R> R executeWrite(@NonNull
S state,
@NonNull
TransactionCallback<T,R> callback)
R - The resultstate - The transaction statecallback - The call back