commonj.work
Interface WorkManager


public interface WorkManager

Version:
$Rev: 46019 $ $Date: 2004-09-14 05:56:06 -0400 (Tue, 14 Sep 2004) $

Field Summary
static long IMMEDIATE
           
static long INDEFINITE
           
 
Method Summary
 WorkItem schedule(Work work)
           
 WorkItem schedule(Work work, WorkListener listener)
           
 boolean waitForAll(Collection workItems, long timeout)
           
 Collection waitForAny(Collection workItems, long timeout)
           
 

Field Detail

IMMEDIATE

static final long IMMEDIATE
See Also:
Constant Field Values

INDEFINITE

static final long INDEFINITE
See Also:
Constant Field Values
Method Detail

schedule

WorkItem schedule(Work work)
                  throws WorkException,
                         IllegalArgumentException
Throws:
WorkException
IllegalArgumentException

schedule

WorkItem schedule(Work work,
                  WorkListener listener)
                  throws WorkException,
                         IllegalArgumentException
Throws:
WorkException
IllegalArgumentException

waitForAll

boolean waitForAll(Collection workItems,
                   long timeout)
                   throws InterruptedException,
                          IllegalArgumentException
Throws:
InterruptedException
IllegalArgumentException

waitForAny

Collection waitForAny(Collection workItems,
                      long timeout)
                      throws InterruptedException,
                             IllegalArgumentException
Throws:
InterruptedException
IllegalArgumentException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.