Interface WebSocketContainerScope
-
- All Known Implementing Classes:
DelegatedContainerScope
,SimpleContainerScope
,WebSocketClient
,WebSocketServerFactory
@Deprecated(since="2021-05-27") public interface WebSocketContainerScope
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Defined Scope for a WebSocketContainer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
addSessionListener(WebSocketSessionListener listener)
Deprecated.ByteBufferPool
getBufferPool()
Deprecated.The configured Container Buffer Pool.default java.lang.ClassLoader
getClassLoader()
Deprecated.The ClassLoader used to load classes for the WebSocketSession.java.util.concurrent.Executor
getExecutor()
Deprecated.Executor in use by the container.DecoratedObjectFactory
getObjectFactory()
Deprecated.Object Factory used to create objects.WebSocketPolicy
getPolicy()
Deprecated.The policy the container is running on.java.util.Collection<WebSocketSessionListener>
getSessionListeners()
Deprecated.SslContextFactory
getSslContextFactory()
Deprecated.The SslContextFactory in use by the container.boolean
isRunning()
Deprecated.Test for if the container has been started.void
removeSessionListener(WebSocketSessionListener listener)
Deprecated.
-
-
-
Method Detail
-
getBufferPool
ByteBufferPool getBufferPool()
Deprecated.The configured Container Buffer Pool.- Returns:
- the buffer pool (never null)
-
getExecutor
java.util.concurrent.Executor getExecutor()
Deprecated.Executor in use by the container.- Returns:
- the Executor in use by the container.
-
getObjectFactory
DecoratedObjectFactory getObjectFactory()
Deprecated.Object Factory used to create objects.- Returns:
- Object Factory used to create instances of objects.
-
getPolicy
WebSocketPolicy getPolicy()
Deprecated.The policy the container is running on.- Returns:
- the websocket policy
-
getSslContextFactory
SslContextFactory getSslContextFactory()
Deprecated.The SslContextFactory in use by the container.- Returns:
- the SslContextFactory in use by the container (can be null if no SSL context is defined)
-
getClassLoader
default java.lang.ClassLoader getClassLoader()
Deprecated.The ClassLoader used to load classes for the WebSocketSession.
By default this will be the ContextClassLoader at the time this method is called. However this will be overridden by the WebSocketClient to use the ContextClassLoader at the time it was created, this is because the client uses its own
ThreadPool
so the WebSocketSessions may be created when the ContextClassLoader is not set.- Returns:
- the classloader.
-
isRunning
boolean isRunning()
Deprecated.Test for if the container has been started.- Returns:
- true if container is started and running
-
addSessionListener
void addSessionListener(WebSocketSessionListener listener)
Deprecated.
-
removeSessionListener
void removeSessionListener(WebSocketSessionListener listener)
Deprecated.
-
getSessionListeners
java.util.Collection<WebSocketSessionListener> getSessionListeners()
Deprecated.
-
-