AsyncMongoCollection.streamingFind(Callback, com.allanbank.mongodb.bson.DocumentAssignable)
             and
             AsyncMongoCollection.streamingFind(Callback, com.allanbank.mongodb.builder.Find)
             methods.@Deprecated public final class LegacyStreamCallbackAdapter extends Object implements StreamCallback<Document>
Callback to a
 StreamCallback. This adapter simulates the old behaviour specified in
 the
 AsyncMongoCollection.streamingFind(Callback, com.allanbank.mongodb.bson.DocumentAssignable)
 and
 AsyncMongoCollection.streamingFind(Callback, com.allanbank.mongodb.builder.Find)
 using the new interface.| Constructor and Description | 
|---|
| LegacyStreamCallbackAdapter(Callback<Document> delegate)Deprecated.  Creates a new LegacyStreamCallbackAdapter. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | callback(Document result)Deprecated.  Called when the MongoDB operation has completed with the result of the
 operation. | 
| void | done()Deprecated.  Called when the stream of MongoDB documents has been exhausted. | 
| void | exception(Throwable thrown)Deprecated.  Called when the operation fails due to an exception. | 
public void callback(Document result)
 Overridden to forward to the legacy Callback.callback(V).
 
public void done()
 Overridden to forward to callback(null).
 
done in interface StreamCallback<Document>public void exception(Throwable thrown)
 Overridden to forward to the legacy Callback.exception(java.lang.Throwable).
 
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.