Class WsWriteTimeout
- java.lang.Object
-
- org.apache.tomcat.websocket.server.WsWriteTimeout
-
- All Implemented Interfaces:
BackgroundProcess
public class WsWriteTimeout extends java.lang.Object implements BackgroundProcess
Provides timeouts for asynchronous web socket writes. On the server side we only have access toServletOutputStream
andServletInputStream
so there is no way to set a timeout for writes to the client.
-
-
Constructor Summary
Constructors Constructor Description WsWriteTimeout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
backgroundProcess()
int
getProcessPeriod()
The default value is 1 which means asynchronous write timeouts are processed every 1 second.void
register(WsRemoteEndpointImplServer endpoint)
void
setProcessPeriod(int period)
void
unregister(WsRemoteEndpointImplServer endpoint)
-
-
-
Method Detail
-
backgroundProcess
public void backgroundProcess()
- Specified by:
backgroundProcess
in interfaceBackgroundProcess
-
setProcessPeriod
public void setProcessPeriod(int period)
- Specified by:
setProcessPeriod
in interfaceBackgroundProcess
-
getProcessPeriod
public int getProcessPeriod()
The default value is 1 which means asynchronous write timeouts are processed every 1 second.- Specified by:
getProcessPeriod
in interfaceBackgroundProcess
-
register
public void register(WsRemoteEndpointImplServer endpoint)
-
unregister
public void unregister(WsRemoteEndpointImplServer endpoint)
-
-