public class ReplyResultCallback extends AbstractReplyCallback<List<Document>>
ERROR_CODE_FIELD, ERROR_MESSAGE_FIELDS
Constructor and Description |
---|
ReplyResultCallback(Callback<List<Document>> forwardCallback)
Create a new ReplyResultCallback.
|
ReplyResultCallback(String field,
Callback<List<Document>> forwardCallback)
Create a new ReplyResultCallback.
|
Modifier and Type | Method and Description |
---|---|
protected List<Document> |
convert(Reply reply)
Converts the
Reply into the final response type. |
exception, getForwardCallback, handle
asError, asError, asError, asString, callback, checkForError, toInt, verify
public ReplyResultCallback(Callback<List<Document>> forwardCallback)
forwardCallback
- The callback to forward the result documents to.protected List<Document> convert(Reply reply) throws MongoDbException
Reply
into the final response type.
Overridden to extract the 'results' elements from the reply.
convert
in class AbstractReplyCallback<List<Document>>
reply
- The reply to convert.MongoDbException
- On a failure converting the reply. Generally, the
AbstractValidatingReplyCallback.verify(Reply)
method should be used to report
errors.AbstractReplyCallback.convert(com.allanbank.mongodb.connection.message.Reply)
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.