Package org.apache.cassandra.schema
Class SchemaPushVerbHandler
- java.lang.Object
-
- org.apache.cassandra.schema.SchemaPushVerbHandler
-
- All Implemented Interfaces:
IVerbHandler<java.util.Collection<Mutation>>
public final class SchemaPushVerbHandler extends java.lang.Object implements IVerbHandler<java.util.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 Modifier and Type Field Description static SchemaPushVerbHandler
instance
-
Constructor Summary
Constructors Constructor Description SchemaPushVerbHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doVerb(Message<java.util.Collection<Mutation>> 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<java.util.Collection<Mutation>>> handler)
-
-
-
Field Detail
-
instance
public static final SchemaPushVerbHandler instance
-
-
Method Detail
-
register
public void register(java.util.function.Consumer<Message<java.util.Collection<Mutation>>> handler)
-
doVerb
public void doVerb(Message<java.util.Collection<Mutation>> 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<java.util.Collection<Mutation>>
- Parameters:
message
- - incoming message that needs handling.
-
-