T
- the document typepublic abstract class BaseFindAndModifyOperation<T> extends java.lang.Object implements AsyncWriteOperation<T>, WriteOperation<T>
Modifier and Type | Method and Description |
---|---|
T |
execute(WriteBinding binding)
General execute which can return anything of type T
|
void |
executeAsync(AsyncWriteBinding binding,
SingleResultCallback<T> callback)
General execute which can return anything of type T
|
Decoder<T> |
getDecoder()
Gets the decoder used to decode the result documents.
|
MongoNamespace |
getNamespace()
Gets the namespace.
|
WriteConcern |
getWriteConcern()
Get the write concern for this operation
|
boolean |
isRetryWrites()
Returns true if the operation should be retried.
|
public T execute(WriteBinding binding)
WriteOperation
execute
in interface WriteOperation<T>
binding
- the binding to execute in the context ofpublic void executeAsync(AsyncWriteBinding binding, SingleResultCallback<T> callback)
AsyncWriteOperation
executeAsync
in interface AsyncWriteOperation<T>
binding
- the binding to execute in the context ofcallback
- the callback to be called when the operation has been executedpublic MongoNamespace getNamespace()
public WriteConcern getWriteConcern()
WriteConcern
public Decoder<T> getDecoder()
public boolean isRetryWrites()
Copyright © 2010 - 2020 Adobe. All Rights Reserved