com.threerings.presents.data
Class InvocationMarshaller.ResultMarshaller

java.lang.Object
  extended by com.threerings.presents.data.InvocationMarshaller.ListenerMarshaller
      extended by com.threerings.presents.data.InvocationMarshaller.ResultMarshaller
All Implemented Interfaces:
Streamable, InvocationService.InvocationListener, InvocationService.ResultListener
Enclosing class:
InvocationMarshaller<T extends ClientObject>

public static class InvocationMarshaller.ResultMarshaller
extends InvocationMarshaller.ListenerMarshaller
implements InvocationService.ResultListener

Defines a marshaller for the standard InvocationService.ResultListener.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
static int REQUEST_PROCESSED
          The method id used to dispatch requestProcessed(java.lang.Object) responses.
 
Fields inherited from class com.threerings.presents.data.InvocationMarshaller.ListenerMarshaller
_invId, callerOid, listener, mapStamp, omgr, REQUEST_FAILED_RSPID, requestId, transport
 
Constructor Summary
InvocationMarshaller.ResultMarshaller()
           
 
Method Summary
 void dispatchResponse(int methodId, Object[] args)
          Called to dispatch an invocation response to our target listener.
 void requestProcessed(Object result)
          Indicates that the request was successfully processed.
 
Methods inherited from class com.threerings.presents.data.InvocationMarshaller.ListenerMarshaller
cast, finalize, requestFailed, sendResponse, setInvocationId, setNoResponse, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.threerings.presents.client.InvocationService.InvocationListener
requestFailed
 

Field Detail

REQUEST_PROCESSED

public static final int REQUEST_PROCESSED
The method id used to dispatch requestProcessed(java.lang.Object) responses.

See Also:
Constant Field Values
Constructor Detail

InvocationMarshaller.ResultMarshaller

public InvocationMarshaller.ResultMarshaller()
Method Detail

requestProcessed

public void requestProcessed(Object result)
Description copied from interface: InvocationService.ResultListener
Indicates that the request was successfully processed.

Specified by:
requestProcessed in interface InvocationService.ResultListener

dispatchResponse

public void dispatchResponse(int methodId,
                             Object[] args)
Description copied from class: InvocationMarshaller.ListenerMarshaller
Called to dispatch an invocation response to our target listener.

Overrides:
dispatchResponse in class InvocationMarshaller.ListenerMarshaller