T
- type of the operations return value. This value is returned to
the code that called
ByteSource.atomicGet(AtomicGetOperation)
.public static interface ByteSource.AtomicGetOperation<T>
ByteSource.atomicGet(AtomicGetOperation)
method. This interface
should be implemented by commands that want to read a contiguous block of
data in a consistent way.Modifier and Type | Method and Description |
---|---|
T |
get()
Method for reading data.
|
T get()
ByteSource.atomicGet(AtomicGetOperation)
method may be called
from this method. This will start a nested transaction: If the nested
transaction fails (and the exception thrown by the nested transaction
is caught within this method), data read within the nested
transaction is not discarded. If the nested transaction succeeds but
the surrounding transaction fails, the data read by the nested
transaction will not be discarded either. Only if both the nested
transaction and the surrounding transaction succeed, the data read in
the nested transaction is removed from the byte source.ByteSource.atomicGet(AtomicGetOperation)
.Copyright © 2014–2019 aquenos GmbH. All rights reserved.