C# Class Sharpen.ThreadPoolExecutor

Show file Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
Execute ( Runnable r ) : void
GetCorePoolSize ( ) : int
IsShutdown ( ) : bool
IsTerminated ( ) : bool
IsTerminating ( ) : bool
PrestartAllCoreThreads ( ) : void
RunPoolThread ( ) : void
SetMaximumPoolSize ( int size ) : void
SetThreadFactory ( ThreadFactory f ) : void
Shutdown ( ) : void
ShutdownNow ( ) : List
ThreadPoolExecutor ( int corePoolSize, ThreadFactory factory ) : System

Private Methods

Method Description
InternalExecute ( Runnable r, bool checkShutdown ) : void
StartPoolThread ( ) : void

Method Details

Execute() public method

public Execute ( Runnable r ) : void
r Runnable
return void

GetCorePoolSize() public method

public GetCorePoolSize ( ) : int
return int

IsShutdown() public method

public IsShutdown ( ) : bool
return bool

IsTerminated() public method

public IsTerminated ( ) : bool
return bool

IsTerminating() public method

public IsTerminating ( ) : bool
return bool

PrestartAllCoreThreads() public method

public PrestartAllCoreThreads ( ) : void
return void

RunPoolThread() public method

public RunPoolThread ( ) : void
return void

SetMaximumPoolSize() public method

public SetMaximumPoolSize ( int size ) : void
size int
return void

SetThreadFactory() public method

public SetThreadFactory ( ThreadFactory f ) : void
f ThreadFactory
return void

Shutdown() public method

public Shutdown ( ) : void
return void

ShutdownNow() public method

public ShutdownNow ( ) : List
return List

ThreadPoolExecutor() public method

public ThreadPoolExecutor ( int corePoolSize, ThreadFactory factory ) : System
corePoolSize int
factory ThreadFactory
return System