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