Class CuratorDistributedPrimitive

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public abstract class CuratorDistributedPrimitive
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Detail

      • CuratorDistributedPrimitive

        protected CuratorDistributedPrimitive​(org.apache.activemq.artemis.quorum.zookeeper.CuratorDistributedPrimitiveManager.PrimitiveId id,
                                              CuratorDistributedPrimitiveManager manager)
    • Method Detail

      • handleReconnected

        protected void handleReconnected()
      • handleLost

        protected void handleLost()
      • handleSuspended

        protected void handleSuspended()
      • checkUnavailable

        protected final void checkUnavailable()
                                       throws org.apache.activemq.artemis.quorum.UnavailableStateException
        Throws:
        org.apache.activemq.artemis.quorum.UnavailableStateException
      • fireUnavailableListener

        protected final void fireUnavailableListener​(java.lang.Runnable task)
      • tryRun

        protected final <R,​T extends java.lang.Throwable> R tryRun​(CuratorDistributedPrimitive.InterruptablePrimitiveAction<R,​T> action)
                                                                  throws java.lang.InterruptedException,
                                                                         T extends java.lang.Throwable
        Throws:
        java.lang.InterruptedException
        T extends java.lang.Throwable
      • handleClosed

        protected void handleClosed()
      • isUnavailable

        protected final boolean isUnavailable()
      • close

        public final void close()
        Specified by:
        close in interface java.lang.AutoCloseable