C# 클래스 Helios.Concurrency.SingleThreadEventExecutor

A single-threaded IEventExecutor
상속: AbstractScheduledEventExecutor
파일 보기 프로젝트 열기: helios-io/helios 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
CleanupAndShutdown ( bool success ) : void
ConfirmShutdown ( ) : bool
RunAllTasks ( ) : bool
Wakeup ( bool inEventLoop ) : void

비공개 메소드들

메소드 설명
FetchFromScheduledTaskQueue ( ) : void
Loop ( ) : void
PollTask ( ) : IRunnable
RunAllTasks ( System.TimeSpan breakoutInternval ) : bool
RunShutdownHooks ( ) : bool

메소드 상세

AddShutdownHook() 공개 메소드

Add a IRunnable which will be executed on the shutdown of this instance
public AddShutdownHook ( IRunnable hook ) : void
hook IRunnable
리턴 void

CleanupAndShutdown() 보호된 메소드

protected CleanupAndShutdown ( bool success ) : void
success bool
리턴 void

ConfirmShutdown() 보호된 메소드

protected ConfirmShutdown ( ) : bool
리턴 bool

Execute() 공개 메소드

public Execute ( IRunnable task ) : void
task IRunnable
리턴 void

GracefulShutdownAsync() 공개 메소드

public GracefulShutdownAsync ( System.TimeSpan quietPeriod, System.TimeSpan timeout ) : Task
quietPeriod System.TimeSpan
timeout System.TimeSpan
리턴 Task

IsInEventLoop() 공개 메소드

public IsInEventLoop ( Thread thread ) : bool
thread Thread
리턴 bool

RemoveShutdownHook() 공개 메소드

Remove a previously added IRunnable as a shutdown hook
public RemoveShutdownHook ( IRunnable hook ) : void
hook IRunnable
리턴 void

RunAllTasks() 보호된 메소드

protected RunAllTasks ( ) : bool
리턴 bool

SingleThreadEventExecutor() 공개 메소드

public SingleThreadEventExecutor ( string threadName, System.TimeSpan breakoutInterval ) : System
threadName string
breakoutInterval System.TimeSpan
리턴 System

Unwrap() 공개 메소드

public Unwrap ( ) : IEventExecutor
리턴 IEventExecutor

Wakeup() 보호된 메소드

protected Wakeup ( bool inEventLoop ) : void
inEventLoop bool
리턴 void