Class HotRodAsyncLock

  • All Implemented Interfaces:
    org.infinispan.api.async.AsyncLock

    public class HotRodAsyncLock
    extends Object
    implements org.infinispan.api.async.AsyncLock
    Since:
    14.0
    • Method Detail

      • name

        public String name()
        Specified by:
        name in interface org.infinispan.api.async.AsyncLock
      • container

        public HotRodAsyncContainer container()
        Specified by:
        container in interface org.infinispan.api.async.AsyncLock
      • lock

        public CompletionStage<Void> lock()
        Specified by:
        lock in interface org.infinispan.api.async.AsyncLock
      • tryLock

        public CompletionStage<Boolean> tryLock()
        Specified by:
        tryLock in interface org.infinispan.api.async.AsyncLock
      • tryLock

        public CompletionStage<Boolean> tryLock​(long time,
                                                TimeUnit unit)
        Specified by:
        tryLock in interface org.infinispan.api.async.AsyncLock
      • unlock

        public CompletionStage<Void> unlock()
        Specified by:
        unlock in interface org.infinispan.api.async.AsyncLock
      • isLocked

        public CompletionStage<Boolean> isLocked()
        Specified by:
        isLocked in interface org.infinispan.api.async.AsyncLock
      • isLockedByMe

        public CompletionStage<Boolean> isLockedByMe()
        Specified by:
        isLockedByMe in interface org.infinispan.api.async.AsyncLock