Package | Description |
---|---|
org.corfudb.samples |
Modifier and Type | Class and Description |
---|---|
class |
BatchedWriteTransaction
Sometimes developers may group mutator operations into transactions for performance reasons.
|
class |
SimpleAtomicTransaction
Consider again the code from
org.corfudb.samples::HeloCorfu.java :
Integer previous = map.get("a");
if (previous == null) {
System.out.println("This is the first time we were run!");
map.put("a", 1);
}
else {
map.put("a", ++previous);
System.out.println("This is the " + previous + " time we were run!");
}
If three program instances arrive at this code piece one after another, then the outcome would be:
"This is the first time we were run!""... |
class |
SimpleUseBaseCorfuCollections
The Corfu Runtime includes a collection of commodity Corfu objects.
|
class |
SimpleUseCustomBaseCorfuObject
A simple program
that makes use of
CorfuSharedCounter and CorfuCompoundObject . |
class |
WriteOnlySimpleTransaction
A write-only transaction is a normal transaction that has only object-mutator method invocations,
and does not perform any object-accessor invocations.
|
class |
WriteWriteTXs
This class demonstrates transactions with write-write isolation level.
|
Copyright © 2019 CorfuDB. All rights reserved.