Class TotalOrderLatchImpl

  • All Implemented Interfaces:
    TotalOrderLatch

    public class TotalOrderLatchImpl
    extends java.lang.Object
    implements TotalOrderLatch
    Implementation of TotalOrderLatch
    Since:
    5.3
    Author:
    Pedro Ruivo
    • Constructor Summary

      Constructors 
      Constructor Description
      TotalOrderLatchImpl​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void awaitUntilUnBlock()
      It waits for this synchronization block to be unblocked.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean isBlocked()  
      java.lang.String toString()  
      void unBlock()
      Unblocks this synchronization block
      • Methods inherited from class java.lang.Object

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

      • TotalOrderLatchImpl

        public TotalOrderLatchImpl​(java.lang.String name)
    • Method Detail

      • isBlocked

        public boolean isBlocked()
        Specified by:
        isBlocked in interface TotalOrderLatch
        Returns:
        true if this synchronization block is blocked
      • awaitUntilUnBlock

        public void awaitUntilUnBlock()
                               throws java.lang.InterruptedException
        Description copied from interface: TotalOrderLatch
        It waits for this synchronization block to be unblocked.
        Specified by:
        awaitUntilUnBlock in interface TotalOrderLatch
        Throws:
        java.lang.InterruptedException - if interrupted while waiting.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object