Package jadex.platform.service.transport
Interface ITransportHandler<Con>
-
- All Known Implementing Classes:
AbstractTransportAgent,IntravmTransportAgent,TcpTransportAgent,WebSocketTransportAgent
public interface ITransportHandler<Con>Access interface with callbacks to be used by concrete transport implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnectionClosed(Con con, java.lang.Exception e)Called when a connection is closed.voidconnectionEstablished(Con con)Called when a server connection is established.IInternalAccessgetAccess()Get the internal access.voidmessageReceived(Con con, byte[] header, byte[] body)Deliver a received message.
-
-
-
Method Detail
-
getAccess
IInternalAccess getAccess()
Get the internal access.
-
messageReceived
void messageReceived(Con con, byte[] header, byte[] body)
Deliver a received message.- Parameters:
con- The connection.header- The message header.body- The message body.
-
connectionEstablished
void connectionEstablished(Con con)
Called when a server connection is established.- Parameters:
con- The connection.
-
connectionClosed
void connectionClosed(Con con, java.lang.Exception e)
Called when a connection is closed.- Parameters:
con- The connection.e- The exception, if any.
-
-