Package net.subnoize.qcat
Class Session
java.lang.Object
net.subnoize.qcat.Session
Session objects are to maintain the thread safety during operation while
processing events to which you are listening. They are built for you by the
Provider and control the various aspects of the event.
When a SendTo annotation is present it can specify a default destination but by requesting the Session object in your method signature you can then change the destination by setting the Session destination.
- Author:
- John Bryant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanisError()voidsetAcknowledge(boolean acknowledge)voidsetAttributes(Map<String,Object> attributes)voidsetDestination(String destination)voidsetError(boolean error)voidsetErrorCode(int errorCode)voidsetErrorDescription(String errorDescription)voidsetRequest(Object request)voidsetResponse(Object response)
-
Constructor Details
-
Session
public Session()
-
-
Method Details
-
isAcknowledge
public boolean isAcknowledge() -
setAcknowledge
public void setAcknowledge(boolean acknowledge) -
isError
public boolean isError() -
setError
public void setError(boolean error) -
getErrorCode
public int getErrorCode() -
setErrorCode
public void setErrorCode(int errorCode) -
getErrorDescription
-
setErrorDescription
-
getResponse
-
setResponse
-
getRequest
-
setRequest
-
getDestination
-
setDestination
-
getAttributes
-
setAttributes
-