org.codehaus.gpars

groovyx.gpars.scheduler
[Java] Interface Pool


public interface Pool

Represents an actor's thread pool

Authors:
Vaclav Pech Date: Feb 27, 2009


Field Summary
java.lang.String POOL_SIZE_MUST_BE_A_POSITIVE_NUMBER

java.lang.String UNCAUGHT_EXCEPTION_OCCURRED_IN_GPARS_POOL

 
Method Summary
void execute(java.lang.Runnable task)

int getPoolSize()

Gently stops the pool

void resetDefaultSize()

void resize(int poolSize)

void shutdown()

 

Field Detail

POOL_SIZE_MUST_BE_A_POSITIVE_NUMBER

public java.lang.String POOL_SIZE_MUST_BE_A_POSITIVE_NUMBER


UNCAUGHT_EXCEPTION_OCCURRED_IN_GPARS_POOL

public java.lang.String UNCAUGHT_EXCEPTION_OCCURRED_IN_GPARS_POOL


 
Method Detail

execute

public void execute(java.lang.Runnable task)


getPoolSize

public int getPoolSize()
Gently stops the pool


resetDefaultSize

public void resetDefaultSize()


resize

public void resize(int poolSize)


shutdown

public void shutdown()


 

Copyright © 2008–2013 Václav Pech. All Rights Reserved.