Package akka.util

Class ReentrantGuard

  • All Implemented Interfaces:
    java.io.Serializable, java.util.concurrent.locks.Lock

    public final class ReentrantGuard
    extends java.util.concurrent.locks.ReentrantLock
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ReentrantGuard()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T withGuard​(scala.Function0<T> body)  
      • Methods inherited from class java.util.concurrent.locks.ReentrantLock

        getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ReentrantGuard

        public ReentrantGuard()
    • Method Detail

      • withGuard

        public final <T> T withGuard​(scala.Function0<T> body)