public interface LongValue extends Closeable
| Modifier and Type | Method and Description |
|---|---|
long |
addAtomicValue(long delta) |
long |
addValue(long delta) |
default void |
close()
Closes this resource, potentially preventing parts of it from being used again
and potentially relinquishing resources held.
|
boolean |
compareAndSwapValue(long expected,
long value) |
long |
getValue() |
long |
getVolatileValue() |
default long |
getVolatileValue(long closedValue)
Value to return if the underlying resource isn't available.
|
default boolean |
isClosed()
Is this object closed
|
default void |
setMaxValue(long value) |
default void |
setMinValue(long value) |
void |
setOrderedValue(long value) |
void |
setValue(long value) |
void |
setVolatileValue(long value) |
default ThreadLock |
vanillaThreadLock() |
closeQuietly, closeQuietlyisClosinglong getValue()
throws IllegalStateException
IllegalStateExceptionvoid setValue(long value)
throws IllegalStateException
IllegalStateExceptionlong getVolatileValue()
throws IllegalStateException
IllegalStateExceptionvoid setVolatileValue(long value)
throws IllegalStateException
IllegalStateExceptiondefault long getVolatileValue(long closedValue)
throws IllegalStateException
IllegalStateExceptionvoid setOrderedValue(long value)
throws IllegalStateException
IllegalStateExceptionlong addValue(long delta)
throws IllegalStateException
IllegalStateExceptionlong addAtomicValue(long delta)
throws IllegalStateException
IllegalStateExceptionboolean compareAndSwapValue(long expected,
long value)
throws IllegalStateException
IllegalStateExceptiondefault void setMaxValue(long value)
throws IllegalStateException
IllegalStateExceptiondefault void setMinValue(long value)
throws IllegalStateException
IllegalStateExceptiondefault boolean isClosed()
QueryCloseableisClosed in interface QueryCloseabledefault void close()
CloseableThis method is idem-potent.
close in interface AutoCloseableclose in interface Closeabledefault ThreadLock vanillaThreadLock()
Copyright © 2022. All rights reserved.