Class 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
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.