public interface TSOProtocol
| Modifier and Type | Method and Description |
|---|---|
TSOFuture<Void> |
close()
Closes the communication with the TSO server
|
TSOFuture<Long> |
commit(long transactionId,
Set<? extends CellId> writeSet)
Returns the result of the conflict detection made on the server-side for the specified transaction
|
TSOFuture<Long> |
commit(long transactionId,
Set<? extends CellId> writeSet,
Set<? extends CellId> conflictFreeWriteSet)
Returns the result of the conflict detection made on the server-side for the specified transaction
|
OmidClientConfiguration.ConflictDetectionLevel |
getConflictDetectionLevel() |
long |
getEpoch()
Returns the epoch of the current TSO server.
|
TSOFuture<Long> |
getFence(long tableId)
Returns a new fence timestamp assigned by on the server-side
|
TSOFuture<Long> |
getNewStartTimestamp()
Returns a new timestamp assigned by on the server-side
|
boolean |
isLowLatency()
checks if tso is low latency protocol
|
void |
setConflictDetectionLevel(OmidClientConfiguration.ConflictDetectionLevel conflictDetectionLevel) |
long getEpoch()
TSOFuture<Long> getNewStartTimestamp()
TSOFuture<Long> commit(long transactionId, Set<? extends CellId> writeSet)
transactionId - the transaction to check for conflictswriteSet - the writeSet of the transaction, which includes all the modified cellsTSOFuture<Long> commit(long transactionId, Set<? extends CellId> writeSet, Set<? extends CellId> conflictFreeWriteSet)
transactionId - the transaction to check for conflictswriteSet - the writeSet of the transaction, which includes all the modified cellsconflictFreeWriteSet - the conflict free writeSet of the transaction, needed only for table access information.TSOFuture<Long> getFence(long tableId)
tableId - the table to create fence for.TSOFuture<Void> close()
boolean isLowLatency()
void setConflictDetectionLevel(OmidClientConfiguration.ConflictDetectionLevel conflictDetectionLevel)
OmidClientConfiguration.ConflictDetectionLevel getConflictDetectionLevel()
Copyright © 2011–2020 Apache Software Foundation. All rights reserved.