Class ObjectLockManager

    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectLockManager()
      Constructor
      ObjectLockManager​(java.lang.Integer lockSize, java.lang.Long unlockTimeout)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanup()
      Cleanup too old unlock elements
      void cleanupAfterUnlock​(boolean cleanupAfterUnlock)
      Define if the cleanup of unlock timeout should be forced after an unlock
      StatisticCounter getIgnoreLockStatistic()
      Get the statistics of locks that could not be obtained because they are already locked.
      StatisticCounter getLockStatistic()
      Get the object lock statistic (the number of lock elements)
      long getNumberOfLockSizeReached()
      Get the count of how many times the max lock size was reached
      StatisticCounter getUnlockStatistic()
      Get the statistics of locks that could not be obtained because of the unlock timeout.
      protected void init()
      Initialize
      <L extends java.io.Serializable>
      java.util.List<L>
      lock​(java.util.List<L> theObjectLockList)
      Locks a list of objects inside the same JVM.
      void releaseResource()
      Release all object locks and resources
      IObjectLockManager setObjectLockSize​(java.lang.Integer lockSize)
      Sets the size of the object lock
      IObjectLockManager setUnlockTimeout​(java.lang.Long unlockTimeout)
      Sets the unlock timeout which defines how long an element can't be locked again after an unlock
      java.lang.String toString()  
      <L extends java.io.Serializable>
      java.util.List<L>
      unlock​(java.util.List<L> theObjectLockList)
      Unlock a list of objects inside the same JVM.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait