public class JGroupsBuffer extends AbstractClusterBuffer implements ClusterBuffer
ClusterBuffer. It is intended to be used mainly
for test and debug purposes, as it's not very efficient approach in low-latency world.| Modifier and Type | Class and Description |
|---|---|
static class |
JGroupsBuffer.ClusterBufferHeader |
| Constructor and Description |
|---|
JGroupsBuffer(RevenoClusterConfiguration config,
org.jgroups.JChannel channel) |
JGroupsBuffer(RevenoClusterConfiguration config,
org.jgroups.JChannel channel,
java.util.Optional<IOMode> restrictOn) |
| 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 JGroupsBuffer(RevenoClusterConfiguration config, org.jgroups.JChannel channel)
public JGroupsBuffer(RevenoClusterConfiguration config, org.jgroups.JChannel channel, java.util.Optional<IOMode> restrictOn)
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.