public abstract class DeleteResult extends Object
wasAcknowledged
will return false and all other methods
will throw UnsupportedOperationException
.WriteConcern.UNACKNOWLEDGED
Constructor and Description |
---|
DeleteResult() |
Modifier and Type | Method and Description |
---|---|
static DeleteResult |
acknowledged(long deletedCount)
Create an acknowledged DeleteResult
|
abstract long |
getDeletedCount()
Gets the number of documents deleted.
|
static DeleteResult |
unacknowledged()
Create an unacknowledged DeleteResult
|
abstract boolean |
wasAcknowledged()
Returns true if the write was acknowledged.
|
public abstract boolean wasAcknowledged()
public abstract long getDeletedCount()
public static DeleteResult acknowledged(long deletedCount)
deletedCount
- the number of documents deletedpublic static DeleteResult unacknowledged()