Package org.apache.cassandra.net
Class ForwardingInfo
- java.lang.Object
-
- org.apache.cassandra.net.ForwardingInfo
-
- All Implemented Interfaces:
java.io.Serializable
public final class ForwardingInfo extends java.lang.Object implements java.io.Serializable
A container used to store a node -> message_id map for inter-DC write forwarding. We pick one node in each external DC to forward the message to its local peers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ForwardingInfo(java.util.List<InetAddressAndPort> targets, long[] messageIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEach(java.util.function.BiConsumer<java.lang.Long,InetAddressAndPort> biConsumer)
Apply the provided consumer to all (host, message_id) pairs.
-
-
-
Constructor Detail
-
ForwardingInfo
public ForwardingInfo(java.util.List<InetAddressAndPort> targets, long[] messageIds)
-
-
Method Detail
-
forEach
public void forEach(java.util.function.BiConsumer<java.lang.Long,InetAddressAndPort> biConsumer)
Apply the provided consumer to all (host, message_id) pairs.
-
-