public class GridTimeoutProcessor extends GridProcessorAdapter
| Modifier and Type | Class and Description |
|---|---|
class |
GridTimeoutProcessor.CancelableTask |
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
GridTimeoutProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTimeoutObject(GridTimeoutObject timeoutObj) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
boolean |
removeTimeoutObject(GridTimeoutObject timeoutObj) |
GridTimeoutProcessor.CancelableTask |
schedule(Runnable task,
long delay,
long period)
Schedule the specified timer task for execution at the specified
time with the specified period, in milliseconds.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, toString, validateNode, validateNodepublic GridTimeoutProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
start in interface GridComponentstart in class GridProcessorAdapterpublic void stop(boolean cancel)
throws IgniteCheckedException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException - Thrown in case of any errors.public boolean addTimeoutObject(GridTimeoutObject timeoutObj)
timeoutObj - Timeout object.True if object was added.public GridTimeoutProcessor.CancelableTask schedule(Runnable task, long delay, long period)
task - Task to execute.delay - Delay to first execution in milliseconds.period - Period for execution in milliseconds or -1.public boolean removeTimeoutObject(GridTimeoutObject timeoutObj)
timeoutObj - Timeout object.True if timeout object was removed.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018