- Type Parameters:
T
- a message type specific to the protocol implemented
- All Known Implementing Classes:
- FireAlarmHTTPCommunicator, FireAlarmMQTTCommunicator, FireAlarmXMPPCommunicator, HTTPTransportHandler, MQTTTransportHandler, XMPPTransportHandler
public interface TransportHandler<T>
This interface consists of the core functionality related to the transport between any device and the server. The
interface is an abstraction, regardless of the underlying protocol used for the transport. Implementation of this
interface by any class that caters a specific protocol (ex: HTTP, XMPP, MQTT, CoAP) would ideally have methods
specific to the protocol used for communication and thees methods that implement the logic related to the devices
using the protocol.