Package org.apache.cassandra.net
Class InboundSink
java.lang.Object
org.apache.cassandra.net.InboundSink
- All Implemented Interfaces:
Consumer<Message<?>>,InboundMessageHandlers.MessageConsumer
A message sink that all inbound messages go through.
Default sink used by
MessagingService is IVerbHandler.doVerb(Message), but it can be overridden
to filter out certain messages, record the fact of attempted delivery, or delay arrival.
This facility is most useful for test code.
accept(Message) is invoked on a thread belonging to the Stage
assigned to the Verb of the message.-
Method Details
-
fail
- Specified by:
failin interfaceInboundMessageHandlers.MessageConsumer
-
accept
-
add
-
remove
-
clear
public void clear() -
allow
Deprecated.See CASSANDRA-15066
-