org.objectweb.jeremie.binding.api
Interface JRMIOptRef
- JRMIRef, Reference, RemoteRef
- RefImpl
public interface JRMIOptRef
A
JRMIOptRef optimizes a
Jeremie reference
with the
addition of methods for type-specific marshalling of data
for remote method invocations, as opposed to the use of generic
reflection-based marshalling.
void | invoke(Marshaller marshaller) - Sends the marshaller with the invocation data down the protocol stack.
|
ReplyInterface | prepareInvocation(Marshaller marshaller) - Prepares the marshaller prior to marshalling invocation data.
|
Marshaller | request() - Obtains a marshaller for marshalling remote method invocation data.
|
invoke
public void invoke(Marshaller marshaller)
throws MarshalException
Sends the marshaller with the invocation data down the protocol stack.
marshaller
- a marshaller with the invocation data;
prepareInvocation
public ReplyInterface prepareInvocation(Marshaller marshaller)
throws MarshalException
Prepares the marshaller prior to marshalling invocation data. This
preparation is protocol-specific and typically consists of adding headers
to the marshaller. In line with Java remote method invocations, a reply
is expected after the remote invocation is executed; the result of this
method is thus an interface for listening for the reply.
marshaller
- a marshaller to be used for the invocation data;
- a reply interface for listening for the reply;
request
public Marshaller request()
throws MarshalException
Obtains a marshaller for marshalling remote method invocation data.
- a marshaller for marshalling invocation data;