Package org.apache.cassandra.net
Class OutboundSink
- java.lang.Object
-
- org.apache.cassandra.net.OutboundSink
-
public class OutboundSink extends java.lang.ObjectA message sink that all outbound messages go through. Default sinkOutboundSink.Sinkused byMessagingServiceisMessagingService.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 interfaceOutboundSink.Sink
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Message<?> message, InetAddressAndPort to, ConnectionType connectionType)voidadd(java.util.function.BiPredicate<Message<?>,InetAddressAndPort> allow)voidclear()voidremove(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()
-
-