com.threerings.presents.net
Class SubscribeRequest

java.lang.Object
  extended by com.threerings.io.SimpleStreamableObject
      extended by com.threerings.presents.net.Message
          extended by com.threerings.presents.net.UpstreamMessage
              extended by com.threerings.presents.net.SubscribeRequest
All Implemented Interfaces:
Streamable

public class SubscribeRequest
extends UpstreamMessage

Requests to subscribe to a particular distributed object.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  int _oid
          The object id of the distributed object to which we are subscribing.
 
Fields inherited from class com.threerings.presents.net.UpstreamMessage
_nextMessageId, messageId
 
Fields inherited from class com.threerings.presents.net.Message
received
 
Constructor Summary
SubscribeRequest()
          Zero argument constructor used when unserializing an instance.
SubscribeRequest(int oid)
          Constructs a subscribe request for the distributed object with the specified object id.
 
Method Summary
 int getOid()
          Returns the oid of the object to which we desire subscription.
 String toString()
           
 
Methods inherited from class com.threerings.presents.net.UpstreamMessage
nextMessageId
 
Methods inherited from class com.threerings.presents.net.Message
getTransport, noteActualTransport, setTransport
 
Methods inherited from class com.threerings.io.SimpleStreamableObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_oid

protected int _oid
The object id of the distributed object to which we are subscribing.

Constructor Detail

SubscribeRequest

public SubscribeRequest()
Zero argument constructor used when unserializing an instance.


SubscribeRequest

public SubscribeRequest(int oid)
Constructs a subscribe request for the distributed object with the specified object id.

Method Detail

getOid

public int getOid()
Returns the oid of the object to which we desire subscription.


toString

public String toString()
Overrides:
toString in class UpstreamMessage