org.apache.geronimo.gshell.whisper.request
Class RequestHandle
java.lang.Object
org.apache.geronimo.gshell.whisper.request.RequestHandle
public class RequestHandle
- extends Object
Represents a request message.
- Version:
- $Rev: 580691 $ $Date: 2007-09-30 03:36:37 -0700 (Sun, 30 Sep 2007) $
RequestHandle
public RequestHandle(Message message,
Duration timeout)
RequestHandle
public RequestHandle(Message message,
long timeout,
TimeUnit timeoutUnit)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
getMessage
public Message getMessage()
getId
public Message.ID getId()
getTimeout
public Duration getTimeout()
hasResponse
public boolean hasResponse()
awaitResponse
public ResponseHandle awaitResponse()
throws RequestTimeoutException,
InterruptedException
- Throws:
RequestTimeoutException
InterruptedException
awaitResponse
public ResponseHandle awaitResponse(long timeout,
TimeUnit unit)
throws RequestTimeoutException,
InterruptedException
- Throws:
RequestTimeoutException
InterruptedException
awaitResponseUninterruptibly
public ResponseHandle awaitResponseUninterruptibly()
throws RequestTimeoutException
- Throws:
RequestTimeoutException
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.