public class EzySimpleServerContext extends EzyAbstractComplexContext implements EzyServerContext
| Modifier and Type | Field and Description |
|---|---|
protected EzyBroadcastEvent |
broadcastEvent |
protected EzySendResponse |
sendResponse |
protected EzyServer |
server |
protected EzyStreamBytes |
streamBytes |
protected List<EzyZoneContext> |
zoneContexts |
protected Map<Integer,EzyZoneContext> |
zoneContextsById |
protected Map<String,EzyZoneContext> |
zoneContextsByName |
appContexts, appContextsById, pluginContexts, pluginContextsByIdcommandSuppliers, component, handleException, logger| Constructor and Description |
|---|
EzySimpleServerContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addZoneContext(EzyZoneSetting zone,
EzyZoneContext zoneContext) |
void |
addZoneContexts(Collection<EzyZoneContext> zoneContexts) |
void |
broadcast(com.tvd12.ezyfox.constant.EzyConstant eventType,
EzyEvent event,
boolean catchException) |
protected void |
clearProperties() |
<T> T |
cmd(Class<T> clazz) |
protected void |
destroyComponents() |
<T> T |
get(Class<T> clazz) |
EzyZoneContext |
getZoneContext(int zoneId) |
EzyZoneContext |
getZoneContext(String zoneName) |
protected void |
init0() |
protected void |
postDestroy() |
protected void |
preDestroy() |
void |
send(EzyResponse response,
Collection<EzySession> recipients,
boolean encrypted,
EzyTransportType transportType) |
void |
send(EzyResponse response,
EzySession recipient,
boolean encrypted,
EzyTransportType transportType) |
void |
sendNow(EzyResponse response,
EzySession recipient) |
void |
setServer(EzyServer server) |
void |
stream(byte[] bytes,
Collection<EzySession> recipients,
EzyTransportType transportType) |
void |
stream(byte[] bytes,
EzySession recipient,
EzyTransportType transportType) |
addAppContext, addAppContexts, addPluginContext, addPluginContexts, destroy, getAppContext, getAppContexts, getPluginContext, getPluginContextsaddCommand, addCommandSuppliers, defaultCommandSuppliers, handleEvent, handleException, initcontainsKey, getProperties, getProperty, getProperty, removeProperty, setProperties, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServer, getZoneContextsgetAppContext, getPluginContext, send, send, send, send, stream, streamhandleEvent, handleExceptionremoveProperty, setProperties, setPropertycontainsKey, getProperties, getProperty, getProperty, getPropertygetPluginContextsgetAppContextsprotected EzyServer server
protected EzyStreamBytes streamBytes
protected EzySendResponse sendResponse
protected EzyBroadcastEvent broadcastEvent
protected final List<EzyZoneContext> zoneContexts
protected final Map<Integer,EzyZoneContext> zoneContextsById
protected final Map<String,EzyZoneContext> zoneContextsByName
protected void init0()
init0 in class EzyAbstractContextpublic <T> T get(Class<T> clazz)
get in interface EzyContextpublic <T> T cmd(Class<T> clazz)
cmd in interface EzyContextpublic void broadcast(com.tvd12.ezyfox.constant.EzyConstant eventType,
EzyEvent event,
boolean catchException)
broadcast in interface EzyComplexContextpublic void send(EzyResponse response, EzySession recipient, boolean encrypted, EzyTransportType transportType)
send in interface EzyComplexContextpublic void send(EzyResponse response, Collection<EzySession> recipients, boolean encrypted, EzyTransportType transportType)
send in interface EzyComplexContextpublic void sendNow(EzyResponse response, EzySession recipient)
sendNow in interface EzyServerContextpublic void stream(byte[] bytes,
EzySession recipient,
EzyTransportType transportType)
stream in interface EzyComplexContextpublic void stream(byte[] bytes,
Collection<EzySession> recipients,
EzyTransportType transportType)
stream in interface EzyComplexContextpublic void addZoneContexts(Collection<EzyZoneContext> zoneContexts)
public void addZoneContext(EzyZoneSetting zone, EzyZoneContext zoneContext)
public EzyZoneContext getZoneContext(int zoneId)
getZoneContext in interface EzyServerContextpublic EzyZoneContext getZoneContext(String zoneName)
getZoneContext in interface EzyServerContextpublic void setServer(EzyServer server)
protected void destroyComponents()
destroyComponents in class EzyAbstractComplexContextprotected void clearProperties()
clearProperties in class EzyAbstractComplexContextprotected void preDestroy()
preDestroy in class EzyAbstractContextprotected void postDestroy()
postDestroy in class EzyAbstractContextCopyright © 2021 Young Monkeys. All rights reserved.