public abstract class AbstractConnection extends Object implements Connection
Connection.ConnectionListener
Constructor and Description |
---|
AbstractConnection() |
Modifier and Type | Method and Description |
---|---|
abstract void |
put(Message msg,
Connection sender)
Put a message to this connection.
|
void |
registerStartNotification(Connection.ConnectionListener c)
Default registration behavior is an immediate call-back
with news that the connection is up.
|
public abstract void put(Message msg, Connection sender)
put
in interface Connection
sender
- Node that is sending the message, used
for tracking, logging, etc.
(This models a two-ended connection to whatever
communications link is used)msg
- message to sendpublic void registerStartNotification(Connection.ConnectionListener c)
registerStartNotification
in interface Connection
c
- callback object to invokeCopyright © 2017 The OpenLCB Group. All rights reserved.