org.ow2.util.pool.annotation
Annotation Type Pool


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Pool

Allow to specify pool attributes.

Author:
Florent BENOIT

Optional Element Summary
 int max
          Maximum size of the pool (default is unlimited).
 int maxWaiters
          Number of waiters that can wait if the pool has reached its maximum value (default is 1000).
 long timeout
          Timeout (default is 10s = 10000L).
 

max

public abstract int max
Maximum size of the pool (default is unlimited).

Default:
-1

timeout

public abstract long timeout
Timeout (default is 10s = 10000L).

Default:
10000L

maxWaiters

public abstract int maxWaiters
Number of waiters that can wait if the pool has reached its maximum value (default is 1000).

Default:
1000


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.