org.objectweb.jotm.jta.jeremie
Class TSHandler
- Service
public class TSHandler
implements Service
TSHandler(Context c, Object[] used_components) - Builds a new Jeremie transaction service handler instance.
|
ServiceContext | getReplyContext(int id, Context k) - Returns a reply context.
|
ServiceContext | getRequestContext(int id, boolean r, byte[] key, Context k) - Returns a request context.
|
void | handleReplyContext(ServiceContext context, int id, Context k) - This method is called by the services handler to let the operations
related to the target service be performed on reply arrival.
|
void | handleRequestContext(ServiceContext context, int id, boolean r, byte[] key, Context k) - This method is called by the services handler to let the operations
related to the target service be performed on request arrival.
|
TSHandler
public TSHandler(Context c,
Object[] used_components)
throws JonathanException
Builds a new Jeremie transaction service handler instance.
c
- unusedused_components
- the components used to initialize the new TSHandler.
getReplyContext
public ServiceContext getReplyContext(int id,
Context k)
Returns a reply context.
- a service context.
getRequestContext
public ServiceContext getRequestContext(int id,
boolean r,
byte[] key,
Context k)
Returns a request context.
- a service context.
handleReplyContext
public void handleReplyContext(ServiceContext context,
int id,
Context k)
This method is called by the services handler to let the operations
related to the target service be performed on reply arrival.
context
- the service context of the reply;
handleRequestContext
public void handleRequestContext(ServiceContext context,
int id,
boolean r,
byte[] key,
Context k)
This method is called by the services handler to let the operations
related to the target service be performed on request arrival.
context
- the service context of the request;