Class SimplePingingEndpointServletContextListener
- java.lang.Object
-
- pl.morgwai.base.servlet.scopes.GuiceServletContextListener
-
- pl.morgwai.base.servlet.guiced.utils.SimplePingingEndpointServletContextListener
-
- All Implemented Interfaces:
EventListener
,ServletContextListener
@Deprecated(since="4.1", forRemoval=true) public abstract class SimplePingingEndpointServletContextListener extends GuiceServletContextListener
Deprecated, for removal: This API element is subject to removal in a future version.usePingingServletContextListener
instead.AGuiceServletContextListener
that automatically register/deregister endpoint instances to aWebsocketPingerService
. Endpoints need to be created withaddEndpoint(Class, String)
or annotated to useSimplePingingEndpointServletContextListener.SimplePingingEndpointConfigurator
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SimplePingingEndpointServletContextListener.SimplePingingEndpointConfigurator
Deprecated, for removal: This API element is subject to removal in a future version.Automatically registers and deregisters created endpoints to theWebsocketPingerService
of theSimplePingingEndpointServletContextListener
.
-
Field Summary
-
Fields inherited from class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
log, servletContainer, servletModule, websocketContainer
-
-
Constructor Summary
Constructors Constructor Description SimplePingingEndpointServletContextListener()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addEndpoint(Class<?> endpointClass, String path)
Deprecated, for removal: This API element is subject to removal in a future version.Adds an endpoint using aSimplePingingEndpointServletContextListener.SimplePingingEndpointConfigurator
.void
contextDestroyed(ServletContextEvent destructionEvent)
Deprecated, for removal: This API element is subject to removal in a future version.Stops the associatedWebsocketPingerService
.protected int
getMaxMalformedPongCount()
Deprecated, for removal: This API element is subject to removal in a future version.Allows subclasses to override maximum allowed malformed pongs.protected int
getPingIntervalSeconds()
Deprecated, for removal: This API element is subject to removal in a future version.Allows subclasses to override ping interval.-
Methods inherited from class pl.morgwai.base.servlet.scopes.GuiceServletContextListener
addEndpoint, addFilter, addServlet, configureInjections, configureServletsFiltersEndpoints, contextInitialized, getInjector, initialize
-
-
-
-
Method Detail
-
getPingIntervalSeconds
protected int getPingIntervalSeconds()
Deprecated, for removal: This API element is subject to removal in a future version.Allows subclasses to override ping interval.
-
getMaxMalformedPongCount
protected int getMaxMalformedPongCount()
Deprecated, for removal: This API element is subject to removal in a future version.Allows subclasses to override maximum allowed malformed pongs.
-
contextDestroyed
public void contextDestroyed(ServletContextEvent destructionEvent)
Deprecated, for removal: This API element is subject to removal in a future version.Stops the associatedWebsocketPingerService
.
-
addEndpoint
protected void addEndpoint(Class<?> endpointClass, String path) throws ServletException
Deprecated, for removal: This API element is subject to removal in a future version.Adds an endpoint using aSimplePingingEndpointServletContextListener.SimplePingingEndpointConfigurator
.- Overrides:
addEndpoint
in classGuiceServletContextListener
- Throws:
ServletException
-
-