Class Requestor

    • Field Detail

      • logger

        private static org.objectweb.util.monolog.api.Logger logger
      • DEFAULT_REQUEST_TIMEOUT_VALUE

        public static final long DEFAULT_REQUEST_TIMEOUT_VALUE
        See Also:
        Constant Field Values
      • defaultRequestTimeout

        private long defaultRequestTimeout
      • requestId

        private int requestId
      • status

        private int status
    • Method Detail

      • setStatus

        private void setStatus​(int status)
      • getRequestId

        public final int getRequestId()
      • init

        private void init()
      • request

        public org.objectweb.joram.shared.client.AbstractJmsReply request​(org.objectweb.joram.shared.client.AbstractJmsRequest request)
                                                                   throws JMSException
        Throws:
        JMSException
      • request

        public org.objectweb.joram.shared.client.AbstractJmsReply request​(org.objectweb.joram.shared.client.AbstractJmsRequest request,
                                                                          CompletionListener completionListener)
                                                                   throws JMSException
        Throws:
        JMSException
      • request

        public org.objectweb.joram.shared.client.AbstractJmsReply request​(org.objectweb.joram.shared.client.AbstractJmsRequest request,
                                                                          long timeout,
                                                                          CompletionListener completionListener)
                                                                   throws JMSException
        Method sending a synchronous request to the server and waiting for an answer.
        Throws:
        IllegalStateException - If the connection is closed or broken, if the server state does not allow to process the request.
        JMSSecurityException - When sending a request to a destination not accessible because of security.
        InvalidDestinationException - When sending a request to a destination that no longer exists.
        JMSException - If the request failed for any other reason.
      • abortRequest

        public void abortRequest()
      • close

        public void close()
      • start

        public void start()
      • stop

        public void stop()