org.drools.util.concurrent.locks |
|
Java Source File Name | Type | Comment |
AbstractCollection.java | Class | Overrides toArray() and toArray(Object[]) in AbstractCollection to provide
implementations valid for concurrent collections. |
AbstractQueue.java | Class | This class provides skeletal implementations of some
Queue operations. |
BlockingQueue.java | Interface | A
edu.emory.mathcs.backport.java.util.Queue that additionally supports operations
that wait for the queue to become non-empty when retrieving an
element, and wait for space to become available in the queue when
storing an element.
BlockingQueue methods come in four forms, with different ways
of handling operations that cannot be satisfied immediately, but may be
satisfied at some point in the future:
one throws an exception, the second returns a special value (either
null or false, depending on the operation), the third
blocks the current thread indefinitely until the operation can succeed,
and the fourth blocks for only a given maximum time limit before giving
up. |
LinkedBlockingQueue.java | Class | An optionally-bounded
based on
linked nodes.
This queue orders elements FIFO (first-in-first-out).
The head of the queue is that element that has been on the
queue the longest time.
The tail of the queue is that element that has been on the
queue the shortest time. |
Lock.java | Interface | Lock implementations provide more extensive locking
operations than can be obtained using synchronized methods
and statements. |
NanoTimer.java | Interface | Interface to specify custom implementation of precise timer. |
Queue.java | Interface | A collection designed for holding elements prior to processing.
Besides basic
java.util.Collection Collection operations,
queues provide additional insertion, extraction, and inspection
operations. |
ReentrantLock.java | Class | This is a stripped down version of jdk1.5 ReentrantLock. |
TimeUnit.java | Class | A TimeUnit represents time durations at a given unit of
granularity and provides utility methods to convert across units,
and to perform timing and delay operations in these units. |
Utils.java | Class |
This class groups together the functionality of java.util.concurrent that
cannot be fully and reliably implemented in backport, but for which some
form of emulation is possible.
Currently, this class contains methods related to nanosecond-precision
timing, particularly via the
Utils.nanoTime method. |