Package org.sklsft.commons.log.context
Class RequestContext
java.lang.Object
org.sklsft.commons.log.context.RequestContext
- All Implemented Interfaces:
Serializable
When invoking a transaction through one interface or via a batch,
this context will go along with the transaction and give informations about it :
An identifier of the transaction
A correlation id, to associate this transaction to others
A {link
RequestChannels channel to identify through which kind of interface the transaction was triggered- Author:
- Nicolas Thibault
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequestContext(String transactionId, String correlationId, RequestChannels channel) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetChannel(RequestChannels channel) voidsetCorrelationId(String correlationId) voidsetTransactionId(String transactionId)
-
Constructor Details
-
RequestContext
public RequestContext() -
RequestContext
-
-
Method Details
-
getTransactionId
-
setTransactionId
-
getCorrelationId
-
setCorrelationId
-
getChannel
-
setChannel
-