# HG changeset patch # User Artem Tikhomirov # Date 1308834994 -7200 # Node ID d3ab16739736749d6920b259b546029fc9b13171 # Parent 29231022fec81e7c6f9d3149d93348b7d9c27fe0 Some javadoc diff -r 29231022fec8 -r d3ab16739736 src/org/tmatesoft/hg/internal/Lifecycle.java --- a/src/org/tmatesoft/hg/internal/Lifecycle.java Thu Jun 23 13:32:23 2011 +0200 +++ b/src/org/tmatesoft/hg/internal/Lifecycle.java Thu Jun 23 15:16:34 2011 +0200 @@ -23,11 +23,24 @@ * @author Artem Tikhomirov * @author TMate Software Ltd. */ +@Experimental(reason="Experimenting whether such approach pays off") public interface Lifecycle { + /** + * @param count approximate number of iterations. + * @param callback callback to communicate with RevlogStream (now to stop iteration only) + * @param token identifier of the process + */ public void start(int count, Callback callback, Object token); + + /** + * @param token identifier of the process, identical to the one passed in {@link #start(int, Callback, Object)} of this iteration + */ public void finish(Object token); + /** + * Access to RevlogStream facilities. + */ interface Callback { void stop(); }