public class FastCastBuffer extends AbstractClusterBuffer implements ClusterBuffer
ClusterBuffer implementation, which is based on reliable
message multicasting. Still, it is impossible to build Cluster
on top of fast-cast, so JGroupsCluster or another
implementation must be used.| Constructor and Description |
|---|
FastCastBuffer(FastCastConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
disconnect() |
void |
erase()
Clear all unprocessed data.
|
void |
failoverNotifier(java.util.function.Consumer<ClusterEvent> listener) |
void |
lockIncoming()
Reject all incoming data.
|
void |
messageNotifier(org.reveno.atp.core.api.serialization.TransactionInfoSerializer serializer,
java.util.function.Consumer<java.util.List<java.lang.Object>> listener) |
void |
onView(ClusterView view) |
void |
prepare() |
boolean |
replicate()
Send all written data down to endpoint.
|
void |
unlockIncoming() |
capacity, clear, isAvailable, length, limit, limitNext, markReader, markSize, markWriter, readByte, readBytes, readBytes, readerPosition, readInt, readLong, readShort, release, remaining, resetNextLimit, resetReader, resetWriter, setReaderPosition, setWriterPosition, sizeMarkPosition, writeByte, writeBytes, writeBytes, writeFromBuffer, writeInt, writeLong, writerPosition, writeShort, writeSize, writeToBufferequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcapacity, clear, isAvailable, length, limit, limitNext, markReader, markSize, markWriter, readByte, readBytes, readBytes, readerPosition, readInt, readLong, readShort, release, remaining, resetNextLimit, resetReader, resetWriter, setReaderPosition, setWriterPosition, sizeMarkPosition, writeByte, writeBytes, writeBytes, writeFromBuffer, writeInt, writeLong, writerPosition, writeShort, writeSize, writeToBufferpublic FastCastBuffer(FastCastConfiguration config)
public void connect()
connect in interface ClusterBufferpublic void disconnect()
disconnect in interface ClusterBufferpublic void onView(ClusterView view)
onView in interface ClusterBufferpublic void messageNotifier(org.reveno.atp.core.api.serialization.TransactionInfoSerializer serializer,
java.util.function.Consumer<java.util.List<java.lang.Object>> listener)
messageNotifier in interface ClusterBufferpublic void failoverNotifier(java.util.function.Consumer<ClusterEvent> listener)
failoverNotifier in interface ClusterBufferpublic void lockIncoming()
ClusterBufferlockIncoming in interface ClusterBufferpublic void unlockIncoming()
unlockIncoming in interface ClusterBufferpublic void erase()
ClusterBuffererase in interface ClusterBufferpublic void prepare()
prepare in interface ClusterBufferpublic boolean replicate()
ClusterBufferreplicate in interface ClusterBufferCopyright © 2015 Artem Dmitriev. All Rights Reserved.