org.apache.geronimo.gshell.whisper.request
Class Requestor

java.lang.Object
  extended by org.apache.geronimo.gshell.whisper.request.Requestor

public class Requestor
extends Object

Provides support to send a request and receive it's response.

Version:
$Rev: 580691 $ $Date: 2007-09-30 03:36:37 -0700 (Sun, 30 Sep 2007) $

Nested Class Summary
 class Requestor.RequestWriteFuture
           
 
Constructor Summary
Requestor(org.apache.mina.common.IoSession session)
           
Requestor(org.apache.mina.common.IoSession session, Duration timeout)
           
Requestor(Transport transport)
           
 
Method Summary
 Duration getTimeout()
           
 Message request(Message msg)
           
 Message request(Message msg, Duration timeout)
           
 void setTimeout(Duration timeout)
           
 Requestor.RequestWriteFuture submit(Message msg)
           
 Requestor.RequestWriteFuture submit(Message msg, Duration timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Requestor

public Requestor(org.apache.mina.common.IoSession session,
                 Duration timeout)

Requestor

public Requestor(org.apache.mina.common.IoSession session)

Requestor

public Requestor(Transport transport)
Method Detail

getTimeout

public Duration getTimeout()

setTimeout

public void setTimeout(Duration timeout)

submit

public Requestor.RequestWriteFuture submit(Message msg,
                                           Duration timeout)
                                    throws Exception
Throws:
Exception

submit

public Requestor.RequestWriteFuture submit(Message msg)
                                    throws Exception
Throws:
Exception

request

public Message request(Message msg,
                       Duration timeout)
                throws Exception
Throws:
Exception

request

public Message request(Message msg)
                throws Exception
Throws:
Exception


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.