Class 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.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchemaPushVerbHandler

        public SchemaPushVerbHandler()
    • 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 interface IVerbHandler<java.util.Collection<Mutation>>
        Parameters:
        message - - incoming message that needs handling.