Class | Description |
---|---|
BaseCorfuAppUtils |
This class provides several recurring utility methods for Corfu applications.
|
BatchedWriteTransaction |
Sometimes developers may group mutator operations into transactions for performance reasons.
|
CorfuCompoundObject |
Corfu objects may be compound, and work as expected.
|
CorfuSharedCounter |
The annotation @CorfuObject turns this into a Corfu object
|
HelloCorfu |
This tutorial demonstrates a simple Corfu application.
|
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!""... |
SimpleUseBaseCorfuCollections |
The Corfu Runtime includes a collection of commodity Corfu objects.
|
SimpleUseCustomBaseCorfuObject |
A simple program
that makes use of
CorfuSharedCounter and CorfuCompoundObject . |
WriteOnlySimpleTransaction |
A write-only transaction is a normal transaction that has only object-mutator method invocations,
and does not perform any object-accessor invocations.
|
WriteWriteTXs |
This class demonstrates transactions with write-write isolation level.
|
Copyright © 2019 CorfuDB. All rights reserved.