1) Better class-level javadoc for Firehose

This commit is contained in:
Eric Tschetter 2012-11-26 12:29:59 -06:00
parent c929153a6c
commit 0da9075ff2
1 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,9 @@ import java.io.Closeable;
* Closeable and it is very important that the close() method doesn't get forgotten, which is easy to do if this
* gets passed around as an Iterator.
* <p>
* The implementation of this interface only needs to be minimally thread-safe. There is one callback provided
* by ##commit() which will be called on another thread. But ##hasMore() and ##nextRow() will always only be called
* by a single thread.
* The implementation of this interface only needs to be minimally thread-safe. The three methods ##hasMore(),
* ##nextRow() and ##commit() are all called from the same thread. ##commit(), however, returns a callback
* which will be called on another thread, so the operations inside of that callback must be thread-safe.
* </p>
*/
public interface Firehose extends Closeable