Groovy Documentation

gpars.scheduler
Interface Pool


interface Pool

Represents an actor's thread pool

author:
Vaclav Pech Date: Feb 27, 2009


Field Summary
String POOL_SIZE_MUST_BE_A_POSITIVE_NUMBER

String UNCAUGHT_EXCEPTION_OCCURRED_IN_ACTOR_POOL

 
Method Summary
void execute(Runnable task)

schedules a new task for processing with the pool

void resetDefaultSize()

Sets the pool size to the default

void resize(int poolSize)

Resizes the thread pool to the specified value

void shutdown()

Gently stops the pool

 

Field Detail

POOL_SIZE_MUST_BE_A_POSITIVE_NUMBER

String POOL_SIZE_MUST_BE_A_POSITIVE_NUMBER


UNCAUGHT_EXCEPTION_OCCURRED_IN_ACTOR_POOL

String UNCAUGHT_EXCEPTION_OCCURRED_IN_ACTOR_POOL


 
Method Detail

execute

public void execute(Runnable task)
schedules a new task for processing with the pool
param:
task The task to schedule


resetDefaultSize

public void resetDefaultSize()
Sets the pool size to the default


resize

public void resize(int poolSize)
Resizes the thread pool to the specified value
param:
poolSize The new pool size


shutdown

public void shutdown()
Gently stops the pool


 

Groovy Documentation