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:
Andrzej Kapolka
2009-05-21 18:41:42 +00:00
parent d45b0bdb00
commit 31e9807c05
4 changed files with 43 additions and 0 deletions
@@ -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
}
}