com.threerings.presents.net
Class EventNotification
java.lang.Object
com.threerings.io.SimpleStreamableObject
com.threerings.presents.net.Message
com.threerings.presents.net.DownstreamMessage
com.threerings.presents.net.EventNotification
- All Implemented Interfaces:
- Streamable
public class EventNotification
- extends DownstreamMessage
Contains an event forwarded from the server.
|
Field Summary |
protected DEvent |
_event
The event which we are forwarding. |
_event
protected DEvent _event
- The event which we are forwarding.
EventNotification
public EventNotification()
- Zero argument constructor used when unserializing an instance.
EventNotification
public EventNotification(DEvent event)
- Constructs an event notification for the supplied event.
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