Package org.apache.cassandra.schema
Class SchemaPullVerbHandler
- java.lang.Object
-
- org.apache.cassandra.schema.SchemaPullVerbHandler
-
- All Implemented Interfaces:
IVerbHandler<NoPayload>
public final class SchemaPullVerbHandler extends java.lang.Object implements IVerbHandler<NoPayload>
Sends it's current schema state in form of mutations in response to the remote node's request. Such a request is made when one of the nodes, by means of Gossip, detects schema disagreement in the ring.
-
-
Field Summary
Fields Modifier and Type Field Description static SchemaPullVerbHandler
instance
-
Constructor Summary
Constructors Constructor Description SchemaPullVerbHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doVerb(Message<NoPayload> message)
This method delivers a message to the implementing class (if the implementing class was registered by a call to MessagingService.registerVerbHandlers).void
register(java.util.function.Consumer<Message<NoPayload>> handler)
-
-
-
Field Detail
-
instance
public static final SchemaPullVerbHandler instance
-
-
Method Detail
-
doVerb
public void doVerb(Message<NoPayload> message)
Description copied from interface:IVerbHandler
This method delivers a message to the implementing class (if the implementing class was registered by a call to MessagingService.registerVerbHandlers). Note that the caller should not be holding any locks when calling this method because the implementation may be synchronized.- Specified by:
doVerb
in interfaceIVerbHandler<NoPayload>
- Parameters:
message
- - incoming message that needs handling.
-
-