| Package | Description |
|---|---|
| com.google.common.util.concurrent |
Concurrency utilities.
|
| Modifier and Type | Method and Description |
|---|---|
static Striped |
Striped.lazyWeakLock(int stripes)
Creates a
Striped<Lock> with lazily initialized, weakly referenced locks.
|
static Striped |
Striped.lazyWeakReadWriteLock(int stripes)
Creates a
Striped<ReadWriteLock> with lazily initialized, weakly referenced read-write locks.
|
static Striped |
Striped.lazyWeakSemaphore(int stripes, int permits)
Creates a
Striped<Semaphore> with lazily initialized, weakly referenced semaphores, with the specified number of permits.
|
static Striped |
Striped.lock(int stripes)
Creates a
Striped<Lock> with eagerly initialized, strongly referenced locks.
|
static Striped |
Striped.readWriteLock(int stripes)
Creates a
Striped<ReadWriteLock> with eagerly initialized, strongly referenced read-write locks.
|
static Striped |
Striped.semaphore(int stripes, int permits)
Creates a
Striped<Semaphore> with eagerly initialized, strongly referenced semaphores, with the specified number of permits.
|