Interface DocumentCallbackHandler


public interface DocumentCallbackHandler
An interface used by MongoTemplate for processing documents returned from a MongoDB query on a per-document basis. Implementations of this interface perform the actual work of processing each document but don't need to worry about exception handling. MongoExceptions will be caught and translated by the calling MongoTemplate An DocumentCallbackHandler is typically stateful: It keeps the result state within the object, to be available later for later inspection.
Since:
1.0
Author:
Mark Pollack, Grame Rocher, Oliver Gierke, John Brisbin, Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    processDocument(org.bson.Document document)
     
  • Method Details