public interface TransportServer<T>
extends io.cettia.platform.action.Action<T>
TransportServer consumes resource like ServerHttpExchange or
ServerWebSocket and produces ServerTransport following the
corresponding Cettia transport protocol.
Instances may be accessed by multiple threads.
| Modifier and Type | Method and Description |
|---|---|
TransportServer<T> |
ontransport(io.cettia.platform.action.Action<ServerTransport> action)
Registers an action to be called when the transport has been opened.
|
TransportServer<T> ontransport(io.cettia.platform.action.Action<ServerTransport> action)
Copyright 2015, The Cettia Project