public interface LongValue extends Closeable
Modifier and Type | Method and Description |
---|---|
default 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() |
default long |
getVolatileValue() |
default long |
getVolatileValue(long closedValue)
Value to return if the underlying resource isn't available.
|
default boolean |
isClosed()
Checks if this object is closed.
|
default void |
setMaxValue(long value) |
default void |
setMinValue(long value) |
default void |
setOrderedValue(long value) |
void |
setValue(long value) |
default void |
setVolatileValue(long value) |
closeQuietly, closeQuietly
isClosing
long getValue() throws IllegalStateException
IllegalStateException
void setValue(long value) throws IllegalStateException
IllegalStateException
default long getVolatileValue() throws IllegalStateException
IllegalStateException
default void setVolatileValue(long value) throws IllegalStateException
IllegalStateException
default long getVolatileValue(long closedValue) throws IllegalStateException
IllegalStateException
default void setOrderedValue(long value) throws IllegalStateException
IllegalStateException
long addValue(long delta) throws IllegalStateException
IllegalStateException
default long addAtomicValue(long delta) throws IllegalStateException
IllegalStateException
boolean compareAndSwapValue(long expected, long value) throws IllegalStateException
IllegalStateException
default void setMaxValue(long value) throws IllegalStateException
IllegalStateException
default void setMinValue(long value) throws IllegalStateException
IllegalStateException
default boolean isClosed()
QueryCloseable
isClosed
in interface QueryCloseable
close()
method has completed, false otherwisedefault void close()
Closeable
This method is idem-potent.
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2023. All rights reserved.