| java.lang.Object EDU.oswego.cs.dl.util.concurrent.SyncCollection EDU.oswego.cs.dl.util.concurrent.SyncSet
All known Subclasses: EDU.oswego.cs.dl.util.concurrent.SyncSortedSet,
Constructor Summary | |
public | 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. | public | SyncSet(Set set, ReadWriteLock rwl) Create a new SyncSet protecting the given set,
and using the given ReadWriteLock to control reader and writer methods. | public | 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. |
SyncSet | public SyncSet(Set set, Sync sync)(Code) | | Create a new SyncSet protecting the given collection,
and using the given sync to control both reader and writer methods.
Common, reasonable choices for the sync argument include
Mutex, ReentrantLock, and Semaphores initialized to 1.
|
SyncSet | public SyncSet(Set set, ReadWriteLock rwl)(Code) | | Create a new SyncSet protecting the given set,
and using the given ReadWriteLock to control reader and writer methods.
|
SyncSet | public SyncSet(Set set, Sync readLock, Sync writeLock)(Code) | | Create a new SyncSet protecting the given set,
and using the given pair of locks to control reader and writer methods.
|
hashCode | public int hashCode()(Code) | | |
|
|