public abstract class NetworkBase extends DestroyableBase implements Network
The base implementation of Network
Destroyable.Util| Modifier and Type | Field and Description |
|---|---|
protected static org.osgl.logging.Logger |
logger |
| Constructor and Description |
|---|
NetworkBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
bootUp() |
protected abstract void |
close() |
WebSocketConnectionHandler |
createWebSocketConnectionHandler()
Create a
WebSocketConnectionHandler instance without message handler, i.e. |
WebSocketConnectionHandler |
createWebSocketConnectionHandler(ActionMethodMetaInfo methodInfo)
create a
WebSocketConnectionHandler instance |
protected abstract WebSocketConnectionHandler |
internalCreateWsConnHandler(ActionMethodMetaInfo methodInfo,
WebSocketConnectionManager manager) |
void |
register(int port,
boolean secure,
NetworkHandler client) |
protected void |
releaseResources() |
protected void |
resetWebSocketConnectionHandler() |
protected abstract void |
setUpClient(NetworkHandler client,
int port,
boolean secure) |
void |
shutdown() |
void |
start() |
addSubResource, destroy, isDestroyed, reload, scopedebug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyed, scopepublic void register(int port,
boolean secure,
NetworkHandler client)
protected void resetWebSocketConnectionHandler()
protected abstract void setUpClient(NetworkHandler client, int port, boolean secure) throws java.io.IOException
java.io.IOExceptionprotected abstract void bootUp()
protected abstract void close()
protected void releaseResources()
releaseResources in class DestroyableBasepublic WebSocketConnectionHandler createWebSocketConnectionHandler(ActionMethodMetaInfo methodInfo)
Networkcreate a WebSocketConnectionHandler instance
createWebSocketConnectionHandler in interface NetworkmethodInfo - the action handler method meta infopublic WebSocketConnectionHandler createWebSocketConnectionHandler()
NetworkCreate 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
createWebSocketConnectionHandler in interface Networkprotected abstract WebSocketConnectionHandler internalCreateWsConnHandler(ActionMethodMetaInfo methodInfo, WebSocketConnectionManager manager)
Copyright © 2014–2017 ActFramework. All rights reserved.