Protomatter Classes v1.1.6

com.protomatter.pas.service
Interface PASWorkService

All Known Implementing Classes:
PASWorkServiceImpl

public interface PASWorkService

Provides a uniform way of interacting with asynchronous work queues.


Field Summary
static java.lang.String JNDI_NAME
          Implementations of this interface are placed in the JNDI tree at this location.
 
Method Summary
 void addWork(java.lang.Runnable r)
          Add work to the "default" work queue.
 void addWork(java.lang.String queue, java.lang.Runnable r)
          Add work to the given work queue.
 int getNumThreads(java.lang.String queue)
          Get the number of threads available in the given queue.
 int getNumWaiters(java.lang.String queue)
          Get the number of threads waiting in the given queue.
 int getNumWorkers(java.lang.String queue)
          Get the number of workers in the given queue.
 int getQueueLength(java.lang.String queue)
          Get the length of the given queue.
 java.util.Enumeration getQueueNames()
          Get the names of available queues.
 

Field Detail

JNDI_NAME

public static final java.lang.String JNDI_NAME
Implementations of this interface are placed in the JNDI tree at this location.
Method Detail

addWork

public void addWork(java.lang.Runnable r)
Add work to the "default" work queue.

addWork

public void addWork(java.lang.String queue,
                    java.lang.Runnable r)
Add work to the given work queue.

getNumWorkers

public int getNumWorkers(java.lang.String queue)
Get the number of workers in the given queue.

getNumWaiters

public int getNumWaiters(java.lang.String queue)
Get the number of threads waiting in the given queue.

getNumThreads

public int getNumThreads(java.lang.String queue)
Get the number of threads available in the given queue.

getQueueLength

public int getQueueLength(java.lang.String queue)
Get the length of the given queue.

getQueueNames

public java.util.Enumeration getQueueNames()
Get the names of available queues.

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6