Interface Transaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>>
- Type Parameters:
RequestT
- The type of the request to execute.RequestResultT
- The type of the result to return.
- All Known Implementing Classes:
JCoTransaction
,SoapTransaction
@Deprecated
public interface Transaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>>
Deprecated.
This module will be discontinued, along with its classes and methods.
The logic to be executed transactional-like by a
RemoteFunctionRequestExecutor
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
Deprecated.This method gets called *in any case* after the transactional calls are done.void
before
(Destination destination, RequestT request) Deprecated.This method gets called before anything else gets called in theRemoteFunctionRequestExecutor
.void
commit
(Destination destination, RequestT request) Deprecated.Ifexecute(Destination, AbstractRemoteFunctionRequest)
succeeded, this method is called to actually commit the changes.execute
(Destination destination, RequestT request) Deprecated.The actual logic to be executed.void
rollback
(Destination destination, RequestT request) Deprecated.If there was a problem withexecute(Destination, AbstractRemoteFunctionRequest)
orcommit(Destination, AbstractRemoteFunctionRequest)
this method will get called to rollback any unwanted changes.
-
Method Details
-
before
Deprecated.This method gets called before anything else gets called in theRemoteFunctionRequestExecutor
.- Parameters:
destination
- TheDestination
of this call.request
- TheAbstractRemoteFunctionRequest
going to be executed.
-
execute
@Nonnull RequestResultT execute(@Nonnull Destination destination, @Nonnull RequestT request) throws RequestExecutionException Deprecated.The actual logic to be executed.- Parameters:
destination
- TheDestination
of this call.request
- TheAbstractRemoteFunctionRequest
going to execute.- Returns:
- The
AbstractRemoteFunctionRequestResult
created by the request. - Throws:
RequestExecutionException
- if an exception occurred during theexecute
implementation.
-
commit
void commit(@Nonnull Destination destination, @Nonnull RequestT request) throws RequestExecutionException Deprecated.Ifexecute(Destination, AbstractRemoteFunctionRequest)
succeeded, this method is called to actually commit the changes.- Parameters:
destination
- TheDestination
of this call.request
- TheAbstractRemoteFunctionRequest
that was executed.- Throws:
RequestExecutionException
- If an exception occurred during thecommit
implementation.
-
rollback
void rollback(@Nonnull Destination destination, @Nonnull RequestT request) throws RequestExecutionException Deprecated.If there was a problem withexecute(Destination, AbstractRemoteFunctionRequest)
orcommit(Destination, AbstractRemoteFunctionRequest)
this method will get called to rollback any unwanted changes.- Parameters:
destination
- TheDestination
of this call.request
- TheAbstractRemoteFunctionRequest
that was executed.- Throws:
RequestExecutionException
- If an exception occurred during therollback
implementation.
-
after
Deprecated.This method gets called *in any case* after the transactional calls are done.- Throws:
RemoteFunctionException
- If an exception occurred during theafter
implementation.
-