Class InstancePending<T>

java.lang.Object
org.apache.hadoop.hbase.zookeeper.InstancePending<T>

class InstancePending<T> extends Object
Placeholder of an instance which will be accessed by other threads but is not yet created. Thread safe.
  • Field Details

  • Constructor Details

  • Method Details

    • get

      T get()
      Returns the instance given by the method prepare(T). This is an uninterruptible blocking method and the interruption flag will be set just before returning if any.
    • prepare

      void prepare(T instance)
      Associates the given instance for the method get(). This method should be called once, and instance should be non-null. This method is expected to call as soon as possible because the method get is uninterruptibly blocked until this method is called.