Package org.apache.cassandra.net
Class OutboundSink
- java.lang.Object
-
- org.apache.cassandra.net.OutboundSink
-
public class OutboundSink extends java.lang.Object
A message sink that all outbound messages go through. Default sinkOutboundSink.Sink
used byMessagingService
isMessagingService.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OutboundSink.Sink
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
accept
public void accept(Message<?> message, InetAddressAndPort to, ConnectionType connectionType)
-
add
public void add(java.util.function.BiPredicate<Message<?>,InetAddressAndPort> allow)
-
remove
public void remove(java.util.function.BiPredicate<Message<?>,InetAddressAndPort> allow)
-
clear
public void clear()
-
-