net.dpml.http
Interface BoundedThreadPool.Context

Enclosing class:
BoundedThreadPool

public static interface BoundedThreadPool.Context

HTTP Context handler context defintion.


Method Summary
 boolean getDaemon(boolean flag)
          Return the deamon flag.
 int getIdle(int idle)
          Get the maximum idle time.
 int getMax(int max)
          Return maximum thread level.
 int getMin(int min)
          Get the minimum thread level.
 String getName(String name)
          Get the thread pool name.
 int getPriority(int priority)
          Get the thread pool priority.
 

Method Detail

getMin

int getMin(int min)
Get the minimum thread level.

Parameters:
min - the default minimum value
Returns:
the minimum thread level

getMax

int getMax(int max)
Return maximum thread level.

Parameters:
max - the default maximum value
Returns:
the maximum thread level

getDaemon

boolean getDaemon(boolean flag)
Return the deamon flag.

Parameters:
flag - true if a damon thread
Returns:
the deamon thread policy

getName

String getName(String name)
Get the thread pool name.

Parameters:
name - the pool name
Returns:
the name

getPriority

int getPriority(int priority)
Get the thread pool priority.

Parameters:
priority - the thread pool priority
Returns:
the priority

getIdle

int getIdle(int idle)
Get the maximum idle time.

Parameters:
idle - the default maximum idle time
Returns:
the maximum idle time in milliseconds