Class WatchCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<WatchCommand>
-
- de.caluga.morphium.driver.commands.WatchCommand
-
public class WatchCommand extends MongoCommand<WatchCommand>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWatchCommand.FullDocumentBeforeChangeEnumstatic classWatchCommand.FullDocumentEnum
-
Constructor Summary
Constructors Constructor Description WatchCommand(MongoConnection d)
-
Method Summary
-
Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
clear, getColl, getComment, getConnection, getDb, getMetaData, releaseConnection, setColl, setComment, setConnection, setDb, setMetaData, setMetaData
-
-
-
-
Constructor Detail
-
WatchCommand
public WatchCommand(MongoConnection d)
-
-
Method Detail
-
getShowExpandedEvents
public Boolean getShowExpandedEvents()
-
setShowExpandedEvents
public WatchCommand setShowExpandedEvents(Boolean showExpandedEvents)
-
getFullDocumentBeforeChange
public WatchCommand.FullDocumentBeforeChangeEnum getFullDocumentBeforeChange()
-
setFullDocumentBeforeChange
public WatchCommand setFullDocumentBeforeChange(WatchCommand.FullDocumentBeforeChangeEnum fullDocumentBeforeChange)
-
getFullDocument
public WatchCommand.FullDocumentEnum getFullDocument()
-
setFullDocument
public WatchCommand setFullDocument(WatchCommand.FullDocumentEnum fullDocument)
-
setPipeline
public WatchCommand setPipeline(List<Map<String,Object>> pipeline)
-
getExplain
public Boolean getExplain()
-
setExplain
public WatchCommand setExplain(Boolean explain)
-
getAllowDiskUse
public Boolean getAllowDiskUse()
-
setAllowDiskUse
public WatchCommand setAllowDiskUse(Boolean allowDiskUse)
-
getMaxTimeMS
public Integer getMaxTimeMS()
-
setMaxTimeMS
public WatchCommand setMaxTimeMS(Integer maxTimeMS)
-
getBypassDocumentValidation
public Boolean getBypassDocumentValidation()
-
setBypassDocumentValidation
public WatchCommand setBypassDocumentValidation(Boolean bypassDocumentValidation)
-
setReadConcern
public WatchCommand setReadConcern(Map<String,Object> readConcern)
-
setCollation
public WatchCommand setCollation(Map<String,Object> collation)
-
getHint
public Object getHint()
-
setHint
public WatchCommand setHint(Object hint)
-
getWriteConern
public Doc getWriteConern()
-
setWriteConern
public WatchCommand setWriteConern(Doc writeConern)
-
getLet
public Doc getLet()
-
setLet
public WatchCommand setLet(Doc let)
-
getCursor
public Doc getCursor()
-
setCursor
public WatchCommand setCursor(Doc cursor)
-
getCb
public DriverTailableIterationCallback getCb()
-
setCb
public WatchCommand setCb(DriverTailableIterationCallback cb)
-
getBatchSize
public Integer getBatchSize()
-
setBatchSize
public WatchCommand setBatchSize(Integer batchSize)
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<WatchCommand>
-
executeAsync
public int executeAsync() throws MorphiumDriverException- Overrides:
executeAsyncin classMongoCommand<WatchCommand>- Throws:
MorphiumDriverException
-
watch
public void watch() throws MorphiumDriverException- Throws:
MorphiumDriverException
-
asMap
public Map<String,Object> asMap()
- Overrides:
asMapin classMongoCommand<WatchCommand>
-
fromMap
public WatchCommand fromMap(Map<String,Object> m)
- Overrides:
fromMapin classMongoCommand<WatchCommand>
-
-