Class MongoMatchLock

java.lang.Object
dev.getelements.elements.dao.mongo.model.match.MongoMatchLock

@Embedded public class MongoMatchLock extends Object
A document type which locks a MongoMatch instance. The ObjectId used with instance is acquired from the MongoMatch.getObjectId(), however stored in a separate collection. Additionally this contains a randomly assigned UUID and a timestamp. The UUID guarantees that only the creator of the MongoMatchLock can destroy it Created by patricktwohig on 7/27/17.
  • Field Details

    • PENDING_MATCH_TIMEOUT_SECONDS

      public static final int PENDING_MATCH_TIMEOUT_SECONDS
      See Also:
  • Constructor Details

    • MongoMatchLock

      public MongoMatchLock()
  • Method Details

    • getTimestamp

      public Date getTimestamp()
    • setTimestamp

      public void setTimestamp(Date timestamp)
    • getUuid

      public String getUuid()
    • setUuid

      public void setUuid(String uuid)