Class WsWatcher<T>
java.lang.Object
de.iip_ecosphere.platform.services.environment.services.WsAdapter
de.iip_ecosphere.platform.services.environment.services.WsWatcher<T>
- All Implemented Interfaces:
TransportConverter.Watcher<T>
Watcher implementation.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled when a message arrived.voidsetConsumer(Consumer<T> consumer) Defines a consumer for the watched information.start()Starts the watcher.stop()Stops the watcher.Methods inherited from class de.iip_ecosphere.platform.services.environment.services.WsAdapter
close, closeBlocking, connect, connectBlocking, getURI, isClosed, isOpen, send
-
Field Details
-
consumer
-
typeTranslator
-
-
Constructor Details
-
Method Details
-
start
Description copied from interface:TransportConverter.WatcherStarts the watcher.- Specified by:
startin interfaceTransportConverter.Watcher<T>- Returns:
- this
-
stop
Description copied from interface:TransportConverter.WatcherStops the watcher.- Specified by:
stopin interfaceTransportConverter.Watcher<T>- Returns:
- this
-
onMessage
Description copied from class:WsAdapterCalled when a message arrived. -
setConsumer
Description copied from interface:TransportConverter.WatcherDefines a consumer for the watched information.- Specified by:
setConsumerin interfaceTransportConverter.Watcher<T>- Parameters:
consumer- the consumer or null for none
-