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 void
connectionClosed(Con con, java.lang.Exception e)
Called when a connection is closed.void
connectionEstablished(Con con)
Called when a server connection is established.IInternalAccess
getAccess()
Get the internal access.void
messageReceived(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.
-
-