org.exolab.jms.net.connector
Class MarshalledInvocation
java.lang.Object
|
+--org.exolab.jms.net.connector.MarshalledInvocation
- All Implemented Interfaces:
- Invocation
- public class MarshalledInvocation
- extends java.lang.Object
- implements Invocation
An Invocation
where the Request
is wrapped
in an MarshalledObject
.
- Version:
- $Revision: 1.2 $ $Date: 2005/07/22 23:40:36 $
- Author:
- Tim Anderson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarshalledInvocation
public MarshalledInvocation(java.rmi.MarshalledObject request,
Caller caller)
- Construct a new
MarshalledInvocation
.
- Parameters:
request
- the marshalled Request
instancecaller
- the caller performing the invocation
getRequest
public Request getRequest()
throws java.lang.Throwable
- Returns the request.
- Specified by:
getRequest
in interface Invocation
- Returns:
- the request
- Throws:
java.lang.Throwable
- for any error
getCaller
public Caller getCaller()
- Returns the caller performing the invocation.
- Specified by:
getCaller
in interface Invocation
- Returns:
- the caller
setResponse
public void setResponse(Response response)
- Sets the result of the invocation.
- Specified by:
setResponse
in interface Invocation
- Parameters:
response
- the result
getResponse
public Response getResponse()
throws java.lang.InterruptedException
- Returns the result of the invocation.
- Returns:
- the result of the invocation.
- Throws:
java.lang.InterruptedException
- if interrupted
getMarshalledResponse
public java.rmi.MarshalledObject getMarshalledResponse()
throws java.io.IOException,
java.lang.InterruptedException
- Returns the result of the invocation, wrapped in a
MarshalledObject
.
- Returns:
- the result of the invocation.
- Throws:
java.io.IOException
- if the response can't be marshalldjava.lang.InterruptedException
- if interrupted
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.