Package org.apache.cassandra.schema
Class SchemaPushVerbHandler
java.lang.Object
org.apache.cassandra.schema.SchemaPushVerbHandler
- All Implemented Interfaces:
IVerbHandler<Collection<Mutation>>
public final class SchemaPushVerbHandler
extends Object
implements IVerbHandler<Collection<Mutation>>
Called when node receives updated schema state from the schema migration coordinator node.
Such happens when user makes local schema migration on one of the nodes in the ring
(which is going to act as coordinator) and that node sends (pushes) it's updated schema state
(in form of mutations) to all the alive nodes in the cluster.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoVerb(Message<Collection<Mutation>> message) This method delivers a message to the implementing class (if the implementing class was registered by a call to MessagingService.registerVerbHandlers).voidregister(Consumer<Message<Collection<Mutation>>> handler)
-
Field Details
-
instance
-
-
Constructor Details
-
SchemaPushVerbHandler
public SchemaPushVerbHandler()
-
-
Method Details
-
register
-
doVerb
Description copied from interface:IVerbHandlerThis 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:
doVerbin interfaceIVerbHandler<Collection<Mutation>>- Parameters:
message- - incoming message that needs handling.
-