public interface Network extends Destroyable
Encapsulate operations provided by underline network service, e.g. netty/undertow etc
Destroyable.Util
Modifier and Type | Method and Description |
---|---|
WebSocketConnectionHandler |
createWebSocketConnectionHandler()
Create a
WebSocketConnectionHandler instance without message handler, i.e. |
WebSocketConnectionHandler |
createWebSocketConnectionHandler(ActionMethodMetaInfo methodInfo)
create a
WebSocketConnectionHandler instance |
void |
register(int port,
boolean secure,
NetworkHandler client) |
void |
shutdown() |
void |
start() |
destroy, isDestroyed, scope
void register(int port, boolean secure, NetworkHandler client)
void start()
void shutdown()
WebSocketConnectionHandler createWebSocketConnectionHandler(ActionMethodMetaInfo methodInfo)
create a WebSocketConnectionHandler
instance
methodInfo
- the action handler method meta infoWebSocketConnectionHandler createWebSocketConnectionHandler()
Create a WebSocketConnectionHandler
instance without message handler, i.e. the handler is pure created to handle connection request. This is typically used when client request connection for push notification from server
Copyright © 2014–2017 ActFramework. All rights reserved.