Class Session

java.lang.Object
net.subnoize.qcat.Session

public class Session extends Object
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 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

      public String getErrorDescription()
    • setErrorDescription

      public void setErrorDescription(String errorDescription)
    • getResponse

      public Object getResponse()
    • setResponse

      public void setResponse(Object response)
    • getRequest

      public Object getRequest()
    • setRequest

      public void setRequest(Object request)
    • getDestination

      public String getDestination()
    • setDestination

      public void setDestination(String destination)
    • getAttributes

      public Map<String,​Object> getAttributes()
    • setAttributes

      public void setAttributes(Map<String,​Object> attributes)