Interface BackgroundProcess
- All Known Implementing Classes:
WsServerContainer, WsWebSocketContainer, WsWriteTimeout
public interface BackgroundProcess
Interface for objects that need periodic background processing.
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms background processing.intvoidsetProcessPeriod(int period) Sets the period, in seconds, between invocations ofbackgroundProcess().
-
Method Details
-
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()
-