Java classes from package java.util.concurrent
Thrown when a task is submitted to an ExecutorService that was shut down or whose queue is full.
add element to blocking queue, throw exception if not possible
add element to blocking queue, return false if not possible
get and remove element from blocking queue, return null if it is empty
add element to blocking queue, block until possible
get and remove element from blocking queue, throw exception if it is empty
get and remove element from blocking queue, block until something is available
Creates an ArrayBlockingQueue with the given (fixed) capacity and the specified access policy.
If the Bool argument is missing, the default access policy is used. If it is true then queue accesses for threads blocked on insertion or removal, are processed in FIFO order; otherwise the access order is unspecified.
The capacity must be greater than 0, otherwise an IllegalArgumentException is thrown.
Creates an ArrayBlockingQueue with the given (fixed) capacity and the specified access policy.
If the Bool argument is missing, the default access policy is used. If it is true then queue accesses for threads blocked on insertion or removal, are processed in FIFO order; otherwise the access order is unspecified.
The capacity must be greater than 0, otherwise an IllegalArgumentException is thrown.
Creates an ArrayBlockingQueue with the given (fixed) capacity and the specified access policy.
If the Bool argument is missing, the default access policy is used. If it is true then queue accesses for threads blocked on insertion or removal, are processed in FIFO order; otherwise the access order is unspecified.
The capacity must be greater than 0, otherwise an IllegalArgumentException is thrown.
The Java executor service interface.
The default executor service of the Frege runtime
Tells if this executor has been shut down.
Tells if all tasks have completed after ExecutorService.shutdown.
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
Submit a Runnable for execution.
Note that unlike in Java, no Future is returned.