public final class NoOpCallback extends Object implements ReplyCallback
Modifier and Type | Field and Description |
---|---|
static NoOpCallback |
NO_OP
A no-op callback.
|
Constructor and Description |
---|
NoOpCallback() |
Modifier and Type | Method and Description |
---|---|
void |
callback(Reply result)
Called when the MongoDB operation has completed with the result of the
operation.
|
void |
exception(Throwable thrown)
Called when the operation fails due to an exception.
|
boolean |
isLightWeight()
Returns true if the callback is lightweight and can be safely performed
in the receive thread.
|
public static final NoOpCallback NO_OP
public void callback(Reply result)
Overridden to do nothing.
public void exception(Throwable thrown)
Overridden to do nothing.
public boolean isLightWeight()
Overridden to return true.
isLightWeight
in interface ReplyCallback
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.