com.threerings.crowd.peer.data
Class CrowdPeerMarshaller

java.lang.Object
  extended by com.threerings.presents.data.InvocationMarshaller<ClientObject>
      extended by com.threerings.crowd.peer.data.CrowdPeerMarshaller
All Implemented Interfaces:
CrowdPeerService, Streamable, InvocationService<ClientObject>

@Generated(value="com.threerings.presents.tools.GenServiceTask",
           comments="Derived from CrowdPeerService.java.")
public class CrowdPeerMarshaller
extends InvocationMarshaller<ClientObject>
implements CrowdPeerService

Provides the implementation of the CrowdPeerService interface that marshalls the arguments and delivers the request to the provider on the server. Also provides an implementation of the response listener interfaces that marshall the response arguments and deliver them back to the requesting client.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.presents.data.InvocationMarshaller
InvocationMarshaller.ConfirmMarshaller, InvocationMarshaller.ListenerMarshaller, InvocationMarshaller.ResultMarshaller
 
Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationService
InvocationService.ConfirmListener, InvocationService.InvocationListener, InvocationService.ResultListener
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
static int DELIVER_BROADCAST
          The method id used to dispatch deliverBroadcast(com.threerings.util.Name, byte, java.lang.String, java.lang.String) requests.
static int DELIVER_TELL
          The method id used to dispatch deliverTell(com.threerings.crowd.chat.data.UserMessage, com.threerings.util.Name, com.threerings.crowd.chat.client.ChatService.TellListener) requests.
 
Fields inherited from class com.threerings.presents.data.InvocationMarshaller
_invCode, _invdir, _invOid
 
Constructor Summary
CrowdPeerMarshaller()
           
 
Method Summary
 void deliverBroadcast(Name arg1, byte arg2, String arg3, String arg4)
          Dispatches a broadcast message on this peer.
 void deliverTell(UserMessage arg1, Name arg2, ChatService.TellListener arg3)
          Used to forward a tell request to the server on which the destination user actually occupies.
 
Methods inherited from class com.threerings.presents.data.InvocationMarshaller
getInvocationCode, init, readObject, sendRequest, sendRequest, sendRequest, sendRequest, setInvocationOid, setNoResponse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DELIVER_BROADCAST

public static final int DELIVER_BROADCAST
The method id used to dispatch deliverBroadcast(com.threerings.util.Name, byte, java.lang.String, java.lang.String) requests.

See Also:
Constant Field Values

DELIVER_TELL

public static final int DELIVER_TELL
The method id used to dispatch deliverTell(com.threerings.crowd.chat.data.UserMessage, com.threerings.util.Name, com.threerings.crowd.chat.client.ChatService.TellListener) requests.

See Also:
Constant Field Values
Constructor Detail

CrowdPeerMarshaller

public CrowdPeerMarshaller()
Method Detail

deliverBroadcast

public void deliverBroadcast(Name arg1,
                             byte arg2,
                             String arg3,
                             String arg4)
Description copied from interface: CrowdPeerService
Dispatches a broadcast message on this peer.

Specified by:
deliverBroadcast in interface CrowdPeerService

deliverTell

public void deliverTell(UserMessage arg1,
                        Name arg2,
                        ChatService.TellListener arg3)
Description copied from interface: CrowdPeerService
Used to forward a tell request to the server on which the destination user actually occupies.

Specified by:
deliverTell in interface CrowdPeerService