public interface ClusterBuffer
extends org.reveno.atp.core.api.channel.Buffer
ClusterConnector is used only for failover inter-cluster
communications.
So, absolutely different mechanisms might be employed at the same time
for max performance and zero-copy and latency, and at the same time not
loosing usability and simpleness of overall solution.| 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, writeToBuffervoid connect()
void disconnect()
void onView(ClusterView view)
void messageNotifier(org.reveno.atp.core.api.serialization.TransactionInfoSerializer serializer,
java.util.function.Consumer<java.util.List<java.lang.Object>> listener)
void failoverNotifier(java.util.function.Consumer<ClusterEvent> listener)
void lockIncoming()
void unlockIncoming()
void erase()
void prepare()
boolean replicate()
Copyright © 2015 Artem Dmitriev. All Rights Reserved.