Class LocalChangeVerticle

java.lang.Object
io.vertx.core.AbstractVerticle
org.cristalise.kernel.process.LocalChangeVerticle
All Implemented Interfaces:
io.vertx.core.Verticle

public class LocalChangeVerticle extends io.vertx.core.AbstractVerticle
Subscribes to the ProxyMessages channel to perform 2 actions: cleans the local cache of ClusterStorage and sends change notifications to local subscribers. The order is very important, the cache should be cleared first so the notified consumer will read the new value.
  • Field Summary

    Fields inherited from class io.vertx.core.AbstractVerticle

    context, vertx
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(io.vertx.core.Promise<Void> startPromise)
     
    void
     

    Methods inherited from class io.vertx.core.AbstractVerticle

    config, deploymentID, getVertx, init, processArgs, start, stop

    Methods inherited from class java.lang.Object

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

    • LocalChangeVerticle

      public LocalChangeVerticle()
  • Method Details

    • start

      public void start(io.vertx.core.Promise<Void> startPromise) throws Exception
      Specified by:
      start in interface io.vertx.core.Verticle
      Overrides:
      start in class io.vertx.core.AbstractVerticle
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Overrides:
      stop in class io.vertx.core.AbstractVerticle
      Throws:
      Exception