Méthode | Description | |
---|---|---|
AddShutdownHook ( IRunnable hook ) : void |
Add a IRunnable which will be executed on the shutdown of this instance
|
|
Execute ( IRunnable task ) : void | ||
GracefulShutdownAsync ( System.TimeSpan quietPeriod, System.TimeSpan timeout ) : Task | ||
IsInEventLoop ( Thread thread ) : bool | ||
RemoveShutdownHook ( IRunnable hook ) : void |
Remove a previously added IRunnable as a shutdown hook
|
|
SingleThreadEventExecutor ( string threadName, System.TimeSpan breakoutInterval ) : System | ||
Unwrap ( ) : IEventExecutor |
Méthode | Description | |
---|---|---|
CleanupAndShutdown ( bool success ) : void | ||
ConfirmShutdown ( ) : bool | ||
RunAllTasks ( ) : bool | ||
Wakeup ( bool inEventLoop ) : void |
Méthode | Description | |
---|---|---|
FetchFromScheduledTaskQueue ( ) : void | ||
Loop ( ) : void | ||
PollTask ( ) : IRunnable | ||
RunAllTasks ( System.TimeSpan breakoutInternval ) : bool | ||
RunShutdownHooks ( ) : bool |
public AddShutdownHook ( IRunnable hook ) : void | ||
hook | IRunnable | |
Résultat | void |
protected CleanupAndShutdown ( bool success ) : void | ||
success | bool | |
Résultat | void |
public GracefulShutdownAsync ( System.TimeSpan quietPeriod, System.TimeSpan timeout ) : Task | ||
quietPeriod | System.TimeSpan | |
timeout | System.TimeSpan | |
Résultat | Task |
public IsInEventLoop ( Thread thread ) : bool | ||
thread | Thread | |
Résultat | bool |
public RemoveShutdownHook ( IRunnable hook ) : void | ||
hook | IRunnable | |
Résultat | void |
public SingleThreadEventExecutor ( string threadName, System.TimeSpan breakoutInterval ) : System | ||
threadName | string | |
breakoutInterval | System.TimeSpan | |
Résultat | System |
protected Wakeup ( bool inEventLoop ) : void | ||
inEventLoop | bool | |
Résultat | void |