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.
|
void |
waitAsync(IgniteInternalFuture<?> fut,
long timeout,
IgniteBiInClosure<IgniteCheckedException,Boolean> clo)
Wait for a future (listen with timeout).
|
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 waitAsync(IgniteInternalFuture<?> fut, long timeout, IgniteBiInClosure<IgniteCheckedException,Boolean> clo)
fut - Future.timeout - Timeout millis. -1 means expired timeout, 0 means waiting without timeout.clo - Finish closure. First argument contains error on future or null if no errors,
second is true if wait timed out or passed timeout argument means expired timeout.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021