|
Colt 1.0.1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Sync | |
edu.oswego.cs.dl.util.concurrent | Standardized, efficient utility classes commonly encountered in concurrent programming. |
Uses of Sync in edu.oswego.cs.dl.util.concurrent |
Classes in edu.oswego.cs.dl.util.concurrent that implement Sync | |
class |
CountDown
A CountDown can serve as a simple one-shot barrier. |
class |
FIFOSemaphore
A First-in/First-out implementation of a Semaphore. |
class |
Latch
A latch is a boolean condition that is set at most once, ever. |
class |
LayeredSync
A class that can be used to compose Syncs. |
class |
Mutex
A simple non-reentrant mutual exclusion lock. |
class |
NullSync
A No-Op implementation of Sync. |
class |
ObservableSync
The ObservableSync class performs no synchronization itself, but invokes event-style messages to other observer objects upon invocation of Sync methods. |
class |
PrioritySemaphore
A Semaphore that grants requests to threads with higher Thread priority rather than lower priority when there is contention. |
class |
QueuedSemaphore
Abstract base class for semaphores relying on queued wait nodes |
class |
ReentrantLock
A lock with the same semantics as builtin Java synchronized locks: Once a thread has a lock, it can re-obtain it any number of times without blocking. |
class |
Semaphore
Base class for counting semaphores. |
class |
TimeoutSync
A TimeoutSync is an adaptor class that transforms all calls to acquire to instead invoke attempt with a predetermined timeout value. |
class |
WaiterPreferenceSemaphore
An implementation of counting Semaphores that enforces enough fairness for applications that need to avoid indefinite overtaking without necessarily requiring FIFO ordered access. |
Methods in edu.oswego.cs.dl.util.concurrent that return Sync | |
Sync |
readerSync()
Return the Sync object managing read-only operations |
Sync |
writerSync()
Return the Sync object managing mutative operations |
Sync |
readLock()
get the readLock |
Sync |
writeLock()
get the writeLock |
Sync |
readLock()
|
Sync |
writeLock()
|
Sync |
readerSync()
Return the Sync object managing read-only operations |
Sync |
writerSync()
Return the Sync object managing mutative operations |
Sync |
readLock()
|
Sync |
writeLock()
|
Constructors in edu.oswego.cs.dl.util.concurrent with parameters of type Sync | |
TimeoutSync(Sync sync,
long timeout)
Create a TimeoutSync using the given Sync object, and using the given timeout value for all calls to acquire. |
|
LayeredSync(Sync outer,
Sync inner)
Create a LayeredSync managing the given outer and inner Sync objects |
|
SyncMap(Map map,
Sync sync)
Create a new SyncMap protecting the given map, and using the given sync to control both reader and writer methods. |
|
SyncMap(Map map,
Sync readLock,
Sync writeLock)
Create a new SyncMap protecting the given map, and using the given pair of locks to control reader and writer methods. |
|
CondVar(Sync mutex)
Create a new CondVar that relies on the given mutual exclusion lock. |
|
SyncCollection(Collection collection,
Sync sync)
Create a new SyncCollection protecting the given collection, and using the given sync to control both reader and writer methods. |
|
SyncCollection(Collection collection,
Sync readLock,
Sync writeLock)
Create a new SyncCollection protecting the given collection, and using the given pair of locks to control reader and writer methods. |
|
SyncSet(Set set,
Sync sync)
Create a new SyncSet protecting the given collection, and using the given sync to control both reader and writer methods. |
|
SyncSet(Set set,
Sync readLock,
Sync writeLock)
Create a new SyncSet protecting the given set, and using the given pair of locks to control reader and writer methods. |
|
SyncSortedSet(SortedSet set,
Sync sync)
Create a new SyncSortedSet protecting the given collection, and using the given sync to control both reader and writer methods. |
|
SyncSortedSet(SortedSet set,
Sync readLock,
Sync writeLock)
Create a new SyncSortedSet protecting the given set, and using the given pair of locks to control reader and writer methods. |
|
LockedExecutor(Sync mutex)
Create a new LockedExecutor that relies on the given mutual exclusion lock. |
|
SyncList(List list,
Sync sync)
Create a new SyncList protecting the given collection, and using the given sync to control both reader and writer methods. |
|
SyncList(List list,
Sync readLock,
Sync writeLock)
Create a new SyncList protecting the given list, and using the given pair of locks to control reader and writer methods. |
|
SyncSortedMap(SortedMap map,
Sync sync)
Create a new SyncSortedMap protecting the given map, and using the given sync to control both reader and writer methods. |
|
SyncSortedMap(SortedMap map,
Sync readLock,
Sync writeLock)
Create a new SyncSortedMap protecting the given map, and using the given pair of locks to control reader and writer methods. |
|
Colt 1.0.1 | |||||||||
PREV NEXT | FRAMES NO FRAMES |