Class MongoDistributedLockQueries


  • public final class MongoDistributedLockQueries
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.bson.conversions.Bson queryAcquired​(com.coditory.sherlock.common.LockId lockId, com.coditory.sherlock.common.OwnerId ownerId)  
      static org.bson.conversions.Bson queryAcquiredOrReleased​(com.coditory.sherlock.common.LockId lockId, com.coditory.sherlock.common.OwnerId ownerId, java.time.Instant now)  
      static org.bson.conversions.Bson queryById​(com.coditory.sherlock.common.LockId lockId)  
      static org.bson.conversions.Bson queryReleased​(com.coditory.sherlock.common.LockId lockId, java.time.Instant now)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • queryReleased

        public static org.bson.conversions.Bson queryReleased​(com.coditory.sherlock.common.LockId lockId,
                                                              java.time.Instant now)
      • queryAcquired

        public static org.bson.conversions.Bson queryAcquired​(com.coditory.sherlock.common.LockId lockId,
                                                              com.coditory.sherlock.common.OwnerId ownerId)
      • queryAcquiredOrReleased

        public static org.bson.conversions.Bson queryAcquiredOrReleased​(com.coditory.sherlock.common.LockId lockId,
                                                                        com.coditory.sherlock.common.OwnerId ownerId,
                                                                        java.time.Instant now)
      • queryById

        public static org.bson.conversions.Bson queryById​(com.coditory.sherlock.common.LockId lockId)