Interface DistributedPrimitiveManager

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface DistributedPrimitiveManager
    extends java.lang.AutoCloseable
    • Method Detail

      • newInstanceOf

        static DistributedPrimitiveManager newInstanceOf​(java.lang.String className,
                                                         java.util.Map<java.lang.String,​java.lang.String> properties)
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        boolean start​(long timeout,
                      java.util.concurrent.TimeUnit unit)
               throws java.lang.InterruptedException,
                      java.util.concurrent.ExecutionException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • start

        void start()
            throws java.lang.InterruptedException,
                   java.util.concurrent.ExecutionException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • isStarted

        boolean isStarted()
      • stop

        void stop()
      • getDistributedLock

        DistributedLock getDistributedLock​(java.lang.String lockId)
                                    throws java.lang.InterruptedException,
                                           java.util.concurrent.ExecutionException,
                                           java.util.concurrent.TimeoutException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException
      • getMutableLong

        MutableLong getMutableLong​(java.lang.String mutableLongId)
                            throws java.lang.InterruptedException,
                                   java.util.concurrent.ExecutionException,
                                   java.util.concurrent.TimeoutException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException
      • close

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