Class ZooKeeperClient.ZkRetryRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    ZooKeeperClient

    abstract static class ZooKeeperClient.ZkRetryRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    A runnable that retries zookeeper operations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) com.google.common.util.concurrent.RateLimiter rateLimiter  
      (package private) java.lang.Runnable that  
      (package private) ZooWorker worker  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      (package private) abstract void zkRun()  
      • Methods inherited from class java.lang.Object

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

      • rateLimiter

        final com.google.common.util.concurrent.RateLimiter rateLimiter
      • that

        final java.lang.Runnable that
    • Constructor Detail

      • ZkRetryRunnable

        ZkRetryRunnable​(RetryPolicy retryPolicy,
                        com.google.common.util.concurrent.RateLimiter rateLimiter,
                        OpStatsLogger statsLogger)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • zkRun

        abstract void zkRun()