public class SimpleContainerScope extends ContainerLifeCycle implements WebSocketContainerScope
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
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) |
SimpleContainerScope(WebSocketPolicy policy,
ByteBufferPool bufferPool,
java.util.concurrent.Executor executor,
SslContextFactory ssl,
DecoratedObjectFactory objectFactory) |
Modifier and Type | Method and Description |
---|---|
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, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isRunning
dumpObjects
public 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)
public SimpleContainerScope(WebSocketPolicy policy, ByteBufferPool bufferPool, java.util.concurrent.Executor executor, SslContextFactory ssl, DecoratedObjectFactory objectFactory)
public ByteBufferPool getBufferPool()
WebSocketContainerScope
getBufferPool
in interface WebSocketContainerScope
public java.util.concurrent.Executor getExecutor()
WebSocketContainerScope
getExecutor
in interface WebSocketContainerScope
public DecoratedObjectFactory getObjectFactory()
WebSocketContainerScope
getObjectFactory
in interface WebSocketContainerScope
public WebSocketPolicy getPolicy()
WebSocketContainerScope
getPolicy
in interface WebSocketContainerScope
public SslContextFactory getSslContextFactory()
WebSocketContainerScope
getSslContextFactory
in interface WebSocketContainerScope
public void setSslContextFactory(SslContextFactory sslContextFactory)
public void onSessionOpened(WebSocketSession session)
WebSocketContainerScope
onSessionOpened
in interface WebSocketContainerScope
session
- the session that was openedpublic void onSessionClosed(WebSocketSession session)
WebSocketContainerScope
onSessionClosed
in interface WebSocketContainerScope
session
- the session that was closedCopyright © 1995–2018 Webtide. All rights reserved.