com.threerings.presents.net
Class EventNotification

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

public class EventNotification
extends DownstreamMessage

Contains an event forwarded from the server.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  DEvent _event
          The event which we are forwarding.
 
Fields inherited from class com.threerings.presents.net.DownstreamMessage
messageId
 
Fields inherited from class com.threerings.presents.net.Message
received
 
Constructor Summary
EventNotification()
          Zero argument constructor used when unserializing an instance.
EventNotification(DEvent event)
          Constructs an event notification for the supplied event.
 
Method Summary
 DEvent getEvent()
           
 Transport getTransport()
          Returns the message transport parameters.
 void noteActualTransport(Transport transport)
          For messages sent over the network, this notes the actual type of transport used to deliver the message.
 void setTransport(Transport transport)
          Sets the message transport parameters.
 String toString()
           
 
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

_event

protected DEvent _event
The event which we are forwarding.

Constructor Detail

EventNotification

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


EventNotification

public EventNotification(DEvent event)
Constructs an event notification for the supplied event.

Method Detail

getEvent

public DEvent getEvent()

setTransport

public void setTransport(Transport transport)
Description copied from class: Message
Sets the message transport parameters. For messages received over the network, these describe the mode of transport over which the message was received. When sending messages, they act as a hint as to the type of transport desired. Calling this method may have no effect, depending on whether non-default modes of transport are supported for this message type.

Overrides:
setTransport in class Message

getTransport

public Transport getTransport()
Description copied from class: Message
Returns the message transport parameters.

Overrides:
getTransport in class Message

noteActualTransport

public void noteActualTransport(Transport transport)
Description copied from class: Message
For messages sent over the network, this notes the actual type of transport used to deliver the message. This may not be the same as the hinted transport for various reasons (message too large to send as datagram, no datagram connection established, etc.)

Overrides:
noteActualTransport in class Message

toString

public String toString()
Overrides:
toString in class DownstreamMessage