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).
 int min
          Minimum size of the pool (default is 0).
 int spare
          Spare size of the pool (default is 15).
 long timeout
          Timeout (default is 10s = 10000L).
 

max

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

Default:
-1

min

public abstract int min
Minimum size of the pool (default is 0).

Default:
0

spare

public abstract int spare
Spare size of the pool (default is 15).

Default:
15

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-2012 OW2 Consortium. All Rights Reserved.