Package org.apache.tomcat.websocket
Interface BackgroundProcess
-
- All Known Implementing Classes:
WsServerContainer,WsWebSocketContainer,WsWriteTimeout
public interface BackgroundProcessInterface for objects that need periodic background processing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbackgroundProcess()Performs background processing.intgetProcessPeriod()voidsetProcessPeriod(int period)Sets the period, in seconds, between invocations ofbackgroundProcess().
-
-
-
Method Detail
-
backgroundProcess
void backgroundProcess()
Performs background processing.
-
setProcessPeriod
void setProcessPeriod(int period)
Sets the period, in seconds, between invocations ofbackgroundProcess().- Parameters:
period- the period in seconds
-
getProcessPeriod
int getProcessPeriod()
-
-