Examples of PropertyEventShutdownCallback


Examples of com.linkedin.d2.discovery.event.PropertyEventThread.PropertyEventShutdownCallback

  private void shutdownPropertyStore(PropertyStore<?> store, long timeout, TimeUnit unit) throws Exception
  {
    final CountDownLatch registryLatch = new CountDownLatch(1);

    store.shutdown(new PropertyEventShutdownCallback()
    {
      @Override
      public void done()
      {
        registryLatch.countDown();
View Full Code Here

Examples of com.linkedin.d2.discovery.event.PropertyEventThread.PropertyEventShutdownCallback

            // TODO HIGH
            //setEnabled(false);

            // this will block until zk comes back, at which point, shutdown will complete
            store.shutdown(new PropertyEventShutdownCallback()
            {
              @Override
              public void done()
              {
                info(_log, "shutdown complete");
View Full Code Here

Examples of com.linkedin.d2.discovery.event.PropertyEventThread.PropertyEventShutdownCallback

  }

  @Override
  public void shutdown(final Callback<None> callback)
  {
    _store.shutdown(new PropertyEventShutdownCallback()
    {
      @Override
      public void done()
      {
        callback.onSuccess(None.none());
View Full Code Here

Examples of com.linkedin.d2.discovery.event.PropertyEventThread.PropertyEventShutdownCallback

  {
    info(_log, "shutting down zk server");

    final CountDownLatch latch = new CountDownLatch(1);

    _store.shutdown(new PropertyEventShutdownCallback()
    {
      @Override
      public void done()
      {
        latch.countDown();
View Full Code Here

Examples of com.linkedin.d2.discovery.event.PropertyEventThread.PropertyEventShutdownCallback

    store.setEnabled(false);

    final CountDownLatch latch = new CountDownLatch(1);

    store.shutdown(new PropertyEventShutdownCallback()
    {
      @Override
      public void done()
      {
        latch.countDown();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.