public class SimpleContainerScope extends ContainerLifeCycle implements WebSocketContainerScope
AbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.ListenerFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| Constructor and Description |
|---|
SimpleContainerScope(WebSocketPolicy policy) |
SimpleContainerScope(WebSocketPolicy policy,
ByteBufferPool bufferPool) |
SimpleContainerScope(WebSocketPolicy policy,
ByteBufferPool bufferPool,
DecoratedObjectFactory objectFactory) |
SimpleContainerScope(WebSocketPolicy policy,
ByteBufferPool bufferPool,
java.util.concurrent.Executor executor,
DecoratedObjectFactory objectFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart()
Starts the managed lifecycle beans in the order they were added.
|
protected void |
doStop()
Stops the managed lifecycle beans in the reverse order they were added.
|
ByteBufferPool |
getBufferPool()
The configured Container Buffer Pool.
|
java.util.concurrent.Executor |
getExecutor()
Executor in use by the container.
|
DecoratedObjectFactory |
getObjectFactory()
Object Factory used to create objects.
|
WebSocketPolicy |
getPolicy()
The policy the container is running on.
|
SslContextFactory |
getSslContextFactory()
The SslContextFactory in use by the container.
|
void |
onSessionClosed(WebSocketSession session)
A Session has been closed
|
void |
onSessionOpened(WebSocketSession session)
A Session has been opened
|
void |
setSslContextFactory(SslContextFactory sslContextFactory) |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRunningpublic SimpleContainerScope(WebSocketPolicy policy)
public SimpleContainerScope(WebSocketPolicy policy, ByteBufferPool bufferPool)
public SimpleContainerScope(WebSocketPolicy policy, ByteBufferPool bufferPool, DecoratedObjectFactory objectFactory)
public SimpleContainerScope(WebSocketPolicy policy, ByteBufferPool bufferPool, java.util.concurrent.Executor executor, DecoratedObjectFactory objectFactory)
protected void doStart()
throws java.lang.Exception
ContainerLifeCycledoStart in class ContainerLifeCyclejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
ContainerLifeCycledoStop in class ContainerLifeCyclejava.lang.Exceptionpublic ByteBufferPool getBufferPool()
WebSocketContainerScopegetBufferPool in interface WebSocketContainerScopepublic java.util.concurrent.Executor getExecutor()
WebSocketContainerScopegetExecutor in interface WebSocketContainerScopepublic DecoratedObjectFactory getObjectFactory()
WebSocketContainerScopegetObjectFactory in interface WebSocketContainerScopepublic WebSocketPolicy getPolicy()
WebSocketContainerScopegetPolicy in interface WebSocketContainerScopepublic SslContextFactory getSslContextFactory()
WebSocketContainerScopegetSslContextFactory in interface WebSocketContainerScopepublic void setSslContextFactory(SslContextFactory sslContextFactory)
public void onSessionOpened(WebSocketSession session)
WebSocketContainerScopeonSessionOpened in interface WebSocketContainerScopesession - the session that was openedpublic void onSessionClosed(WebSocketSession session)
WebSocketContainerScopeonSessionClosed in interface WebSocketContainerScopesession - the session that was closedCopyright © 1995–2018 Webtide. All rights reserved.