public interface LockBasedTransaction
Modifier and Type | Method and Description |
---|---|
void |
begin()
Begins transaction if underlying storage requires transactions.
|
void |
commit()
Commits transaction if underlying storage requires transactions
|
void |
create(byte[] data)
Creates the data by the key associated with this transaction.
|
byte[] |
getData()
Returns the data by the key associated with this transaction.
|
LockResult |
lock()
Locks data by the key associated with this transaction.
|
void |
rollback()
Rollbacks transaction if underlying storage requires transactions
|
void |
unlock()
Unlocks data by the key associated with this transaction.
|
void |
update(byte[] data)
Updates the data by the key associated with this transaction.
|
void begin()
commit()
or rollback()
will be called if begin()
returns successfully.void rollback()
void commit()
LockResult lock()
unlock()
will be called if lock()
returns successfully.void unlock()
byte[] getData()
void create(byte[] data)
data
- bucket state to persistsvoid update(byte[] data)
data
- bucket state to persistsCopyright © 2020. All rights reserved.