public class OutboundSink
extends java.lang.Object
OutboundSink.Sink
used by MessagingService
is MessagingService.doSend(Message, InetAddressAndPort, ConnectionType)
, which proceeds to
send messages over the network, but it can be overridden to filter out certain messages, record the fact
of attempted delivery, or delay they delivery.
This facility is most useful for test code.Modifier and Type | Class and Description |
---|---|
static interface |
OutboundSink.Sink |
Modifier and Type | Method and Description |
---|---|
void |
accept(Message<?> message,
InetAddressAndPort to,
ConnectionType connectionType) |
void |
add(java.util.function.BiPredicate<Message<?>,InetAddressAndPort> allow) |
void |
clear() |
void |
remove(java.util.function.BiPredicate<Message<?>,InetAddressAndPort> allow) |
public void accept(Message<?> message, InetAddressAndPort to, ConnectionType connectionType)
public void add(java.util.function.BiPredicate<Message<?>,InetAddressAndPort> allow)
public void remove(java.util.function.BiPredicate<Message<?>,InetAddressAndPort> allow)
public void clear()
Copyright © 2009-2022 The Apache Software Foundation