Note the actual transport with which events are transmitted.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5794 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -62,6 +62,12 @@ public class EventNotification extends DownstreamMessage
|
||||
return _event.getTransport();
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
public void noteActualTransport (Transport transport)
|
||||
{
|
||||
_event.noteActualTransport(transport);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
|
||||
@@ -50,4 +50,14 @@ public abstract class Message extends SimpleStreamableObject
|
||||
{
|
||||
return Transport.DEFAULT;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.)
|
||||
*/
|
||||
public void noteActualTransport (Transport transport)
|
||||
{
|
||||
// no-op by default
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user