Class CoreDocumentSynchronizationConfig
- java.lang.Object
-
- com.mongodb.stitch.core.services.mongodb.remote.sync.internal.CoreDocumentSynchronizationConfig
-
public class CoreDocumentSynchronizationConfig extends Object
-
-
Method Summary
Modifier and Type Method Description boolean
equals(Object object)
BsonValue
getDocumentId()
long
getLastKnownHash()
BsonDocument
getLastKnownRemoteVersion()
ChangeEvent<BsonDocument>
getLastUncommittedChangeEvent()
ReadWriteLock
getLock()
MongoNamespace
getNamespace()
int
hashCode()
boolean
hasUncommittedWrites()
boolean
isStale()
void
setSomePendingWritesAndSave(long atTime, ChangeEvent<BsonDocument> changeEvent)
Sets that there are some pending writes that occurred at a time for an associated locally emitted change event.void
setStale(boolean stale)
-
-
-
Method Detail
-
isStale
public boolean isStale()
-
setStale
public void setStale(boolean stale)
-
setSomePendingWritesAndSave
public void setSomePendingWritesAndSave(long atTime, ChangeEvent<BsonDocument> changeEvent)
Sets that there are some pending writes that occurred at a time for an associated locally emitted change event. This variant maintains the last version set.- Parameters:
atTime
- the time at which the write occurred.changeEvent
- the description of the write/change.
-
getDocumentId
public BsonValue getDocumentId()
-
getNamespace
public MongoNamespace getNamespace()
-
hasUncommittedWrites
public boolean hasUncommittedWrites()
-
getLastUncommittedChangeEvent
public ChangeEvent<BsonDocument> getLastUncommittedChangeEvent()
-
getLastKnownRemoteVersion
public BsonDocument getLastKnownRemoteVersion()
-
getLastKnownHash
public long getLastKnownHash()
-
getLock
public ReadWriteLock getLock()
-
-