Method | 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 |
Method | Description | |
---|---|---|
CleanupAndShutdown ( bool success ) : void | ||
ConfirmShutdown ( ) : bool | ||
RunAllTasks ( ) : bool | ||
Wakeup ( bool inEventLoop ) : void |
Method | Description | |
---|---|---|
FetchFromScheduledTaskQueue ( ) : void | ||
Loop ( ) : void | ||
PollTask ( ) : IRunnable | ||
RunAllTasks ( System.TimeSpan breakoutInternval ) : bool | ||
RunShutdownHooks ( ) : bool |
public AddShutdownHook ( IRunnable hook ) : void | ||
hook | IRunnable | |
return | void |
protected CleanupAndShutdown ( bool success ) : void | ||
success | bool | |
return | void |
public GracefulShutdownAsync ( System.TimeSpan quietPeriod, System.TimeSpan timeout ) : Task | ||
quietPeriod | System.TimeSpan | |
timeout | System.TimeSpan | |
return | Task |
public IsInEventLoop ( Thread thread ) : bool | ||
thread | Thread | |
return | bool |
public RemoveShutdownHook ( IRunnable hook ) : void | ||
hook | IRunnable | |
return | void |
public SingleThreadEventExecutor ( string threadName, System.TimeSpan breakoutInterval ) : System | ||
threadName | string | |
breakoutInterval | System.TimeSpan | |
return | System |