Class MongoMatchLock
java.lang.Object
dev.getelements.elements.dao.mongo.model.match.MongoMatchLock
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PENDING_MATCH_TIMEOUT_SECONDS
public static final int PENDING_MATCH_TIMEOUT_SECONDS- See Also:
-
-
Constructor Details
-
MongoMatchLock
public MongoMatchLock()
-
-
Method Details
-
getTimestamp
-
setTimestamp
-
getUuid
-
setUuid
-