Joram 5.0.9

org.objectweb.joram.kclient
Class Requestor

java.lang.Object
  extended by org.objectweb.joram.kclient.Requestor

public class Requestor
extends java.lang.Object


Constructor Summary
Requestor(RequestMultiplexer mtpx)
           
 
Method Summary
 void abortRequest()
           
 void close()
           
 int getRequestId()
           
 void replyAborted()
           
 boolean replyReceived(AbstractReply reply)
           
 AbstractReply request(AbstractRequest request)
           
 AbstractReply request(AbstractRequest request, long timeout)
          Method sending a synchronous request to the server and waiting for an answer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Requestor

public Requestor(RequestMultiplexer mtpx)
Method Detail

getRequestId

public final int getRequestId()

request

public AbstractReply request(AbstractRequest request)
                      throws JoramException
Throws:
JoramException

request

public AbstractReply request(AbstractRequest request,
                             long timeout)
                      throws JoramException
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.
java.lang.SecurityException - When sending a request to a destination not accessible because of security.
InvalidDestinationException - When sending a request to a destination that no longer exists.
JoramException - If the request failed for any other reason.

replyReceived

public boolean replyReceived(AbstractReply reply)
                      throws AbortedRequestException
Returns:
whether the request must be aborted or not.
Throws:
AbortedRequestException

replyAborted

public void replyAborted()

abortRequest

public void abortRequest()

close

public void close()

Joram 5.0.9

Copyright © 2005 Scalagent - All rights reserved