| Package | Description |
|---|---|
| io.atomix.core.lock |
Distributed lock primitive.
|
| io.atomix.core.semaphore |
Distributed semaphore primitive.
|
| io.atomix.utils.time |
Provides classes and interfaces for representing and operating on both logical and physical representations of time.
|
| Modifier and Type | Method and Description |
|---|---|
Version |
AtomicLock.lock()
Acquires the lock, blocking until it's available.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Version> |
AsyncAtomicLock.lock()
Acquires the lock, blocking until it's available.
|
Optional<Version> |
AtomicLock.tryLock()
Attempts to acquire the lock.
|
CompletableFuture<Optional<Version>> |
AsyncAtomicLock.tryLock()
Attempts to acquire the lock.
|
Optional<Version> |
AtomicLock.tryLock(Duration timeout)
Attempts to acquire the lock for a specified amount of time.
|
CompletableFuture<Optional<Version>> |
AsyncAtomicLock.tryLock(Duration timeout)
Attempts to acquire the lock for a specified amount of time.
|
| Modifier and Type | Method and Description |
|---|---|
Version |
AtomicSemaphore.acquire()
Acquires a permit from this semaphore.
|
Version |
AtomicSemaphore.acquire(int permits)
Acquires the given number of permits from this semaphore,
blocking until all are available.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Version> |
AsyncAtomicSemaphore.acquire()
Acquires a permit from this semaphore.
|
CompletableFuture<Version> |
AsyncAtomicSemaphore.acquire(int permits)
Acquires the given number of permits from this semaphore.
|
CompletableFuture<Optional<Version>> |
AsyncAtomicSemaphore.tryAcquire()
Acquires a permit, if one is available and returns immediately.
|
Optional<Version> |
AtomicSemaphore.tryAcquire()
Acquires a permit, if one is available and returns immediately.
|
CompletableFuture<Optional<Version>> |
AsyncAtomicSemaphore.tryAcquire(Duration timeout)
Acquires a permit from this semaphore if one becomes available within the given waiting time.
|
Optional<Version> |
AtomicSemaphore.tryAcquire(Duration timeout)
Acquires a permit from this semaphore if one becomes available within the given waiting time.
|
CompletableFuture<Optional<Version>> |
AsyncAtomicSemaphore.tryAcquire(int permits)
Acquires the given number of permits, if they are available and returns immediately.
|
Optional<Version> |
AtomicSemaphore.tryAcquire(int permits)
Acquires the given number of permits, if they are available and returns immediately.
|
CompletableFuture<Optional<Version>> |
AsyncAtomicSemaphore.tryAcquire(int permits,
Duration timeout)
Acquires the given number of permits, if they are available within the given waiting time.
|
Optional<Version> |
AtomicSemaphore.tryAcquire(int permits,
Duration timeout)
Acquires the given number of permits, if they are available within the given waiting time.
|
| Modifier and Type | Method and Description |
|---|---|
Version |
LogicalTimestamp.asVersion()
Returns the timestamp as a version.
|
Copyright © 2013–2018. All rights reserved.