public final class ForwardingInfo
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ForwardingInfo(java.util.List<InetAddressAndPort> targets,
long[] messageIds) |
Modifier and Type | Method and Description |
---|---|
void |
forEach(java.util.function.BiConsumer<java.lang.Long,InetAddressAndPort> biConsumer)
Apply the provided consumer to all (host, message_id) pairs.
|
boolean |
useSameMessageID(long id) |
public ForwardingInfo(java.util.List<InetAddressAndPort> targets, long[] messageIds)
public boolean useSameMessageID(long id)
true
if all host are to use the same message id, false
otherwise. Starting with 4.0 and
above, we should be reusing the same id, always, but it won't always be true until 3.0/3.11 are phased out.public void forEach(java.util.function.BiConsumer<java.lang.Long,InetAddressAndPort> biConsumer)
Copyright © 2009- The Apache Software Foundation