T
- type of the operations return value. This value is returned to
the code that called
ByteSink.atomicPut(AtomicPutOperation)
.public static interface ByteSink.AtomicPutOperation<T>
ByteSink.atomicPut(AtomicPutOperation)
method. This interface should be implemented by commands that want to
write a contiguous block of data in a consistent way.Modifier and Type | Method and Description |
---|---|
T |
put()
Method for writing data.
|
T put()
ByteSink.atomicPut(AtomicPutOperation)
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 written within the
nested transaction is discarded. If the nested transaction succeeds
but the surrounding transaction fails, the data written by the nested
transaction will also be discarded. Only if both the nested
transaction and the surrounding transaction succeed, the data from
the nested transaction will be committed.ByteSink.atomicPut(AtomicPutOperation)
.Copyright © 2014–2017 aquenos GmbH. All rights reserved.