public class ReplyResultCallback extends AbstractReplyCallback<MongoIterator<Document>>
ERROR_CODE_FIELD, ERROR_MESSAGE_FIELDS| Constructor and Description | 
|---|
| ReplyResultCallback(Callback<MongoIterator<Document>> forwardCallback)Create a new ReplyResultCallback. | 
| ReplyResultCallback(String field,
                   Callback<MongoIterator<Document>> forwardCallback)Create a new ReplyResultCallback. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected MongoIterator<Document> | convert(Reply reply)Converts the  Replyinto the final response type. | 
exception, getForwardCallback, handle, isLightWeightasError, asError, asError, asError, asString, callback, checkForError, toInt, verifypublic ReplyResultCallback(Callback<MongoIterator<Document>> forwardCallback)
forwardCallback - The callback to forward the result documents to.public ReplyResultCallback(String field, Callback<MongoIterator<Document>> forwardCallback)
field - The field in the reply holding the results.forwardCallback - The callback to forward the result documents to.protected MongoIterator<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<MongoIterator<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.client.message.Reply)Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.