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 TypeMethodDescriptionvoidafter()Deprecated.This method gets called *in any case* after the transactional calls are done.voidbefore(Destination destination, RequestT request) Deprecated.This method gets called before anything else gets called in theRemoteFunctionRequestExecutor.voidcommit(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.voidrollback(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- TheDestinationof this call.request- TheAbstractRemoteFunctionRequestgoing to be executed.
-
execute
@Nonnull RequestResultT execute(@Nonnull Destination destination, @Nonnull RequestT request) throws RequestExecutionException Deprecated.The actual logic to be executed.- Parameters:
destination- TheDestinationof this call.request- TheAbstractRemoteFunctionRequestgoing to execute.- Returns:
- The
AbstractRemoteFunctionRequestResultcreated by the request. - Throws:
RequestExecutionException- if an exception occurred during theexecuteimplementation.
-
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- TheDestinationof this call.request- TheAbstractRemoteFunctionRequestthat was executed.- Throws:
RequestExecutionException- If an exception occurred during thecommitimplementation.
-
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- TheDestinationof this call.request- TheAbstractRemoteFunctionRequestthat was executed.- Throws:
RequestExecutionException- If an exception occurred during therollbackimplementation.
-
after
Deprecated.This method gets called *in any case* after the transactional calls are done.- Throws:
RemoteFunctionException- If an exception occurred during theafterimplementation.
-