Class TransportLogger.TransportHandler<T>
java.lang.Object
de.iip_ecosphere.platform.services.environment.TransportLogger.TransportHandler<T>
- Type Parameters:
T- the type of data to be handled
- All Implemented Interfaces:
de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<T>
- Enclosing class:
TransportLogger
protected static class TransportLogger.TransportHandler<T>
extends Object
implements de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<T>
Implements a generic transport handler for logging.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
stream
-
cls
-
cons
-
-
Constructor Details
-
TransportHandler
Creates a handler.- Parameters:
stream- the transport stream to listen tocls- the class of data to listen tocons- the consumer to be called
-
-
Method Details
-
initialize
Initializes the handler.- Throws:
IOException- if registering the handler as reception callback fails
-
detach
Detaches the handler fromTransport.- Throws:
IOException- if detaching the handler as reception callback fails
-
received
- Specified by:
receivedin interfacede.iip_ecosphere.platform.transport.connectors.ReceptionCallback<T>
-
getType
- Specified by:
getTypein interfacede.iip_ecosphere.platform.transport.connectors.ReceptionCallback<T>
-