public class ObjectsView extends AbstractView
Modifier and Type | Class and Description |
---|---|
static class |
ObjectsView.ObjectID<T> |
Modifier and Type | Field and Description |
---|---|
static UUID |
TRANSACTION_STREAM_ID
The Transaction stream is used to log/write successful transactions from different clients.
|
Constructor and Description |
---|
ObjectsView(CorfuRuntime runtime) |
Modifier and Type | Method and Description |
---|---|
ObjectBuilder<?> |
build()
Return an object builder which builds a new object.
|
void |
gc(long trimMark)
Run garbage collection on all opened objects.
|
void |
TXAbort()
Aborts a transaction on the current thread.
|
boolean |
TXActive()
Query whether a transaction is currently running.
|
void |
TXBegin()
Begins a transaction on the current thread.
|
TransactionBuilder |
TXBuild()
Builds a new transaction using the transaction
builder.
|
long |
TXEnd()
End a transaction on the current thread.
|
getCurrentLayout, layoutHelper, layoutHelper
public static UUID TRANSACTION_STREAM_ID
public ObjectsView(@Nonnull CorfuRuntime runtime)
public ObjectBuilder<?> build()
public void TXBegin()
public TransactionBuilder TXBuild()
public void TXAbort()
public boolean TXActive()
public long TXEnd() throws TransactionAbortedException
TransactionAbortedException
- If the transaction could not be executed successfully.public void gc(long trimMark)
Copyright © 2019 CorfuDB. All rights reserved.