Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/Lifecycle.java @ 241:d3ab16739736
Some javadoc
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> | 
|---|---|
| date | Thu, 23 Jun 2011 15:16:34 +0200 | 
| parents | e39cf474ef94 | 
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 240:29231022fec8 | 241:d3ab16739736 | 
|---|---|
| 21 * Mix-in for RevlogStream.Inspector to get informed about start and end of the iteration | 21 * Mix-in for RevlogStream.Inspector to get informed about start and end of the iteration | 
| 22 * | 22 * | 
| 23 * @author Artem Tikhomirov | 23 * @author Artem Tikhomirov | 
| 24 * @author TMate Software Ltd. | 24 * @author TMate Software Ltd. | 
| 25 */ | 25 */ | 
| 26 @Experimental(reason="Experimenting whether such approach pays off") | |
| 26 public interface Lifecycle { | 27 public interface Lifecycle { | 
| 27 | 28 | 
| 29 /** | |
| 30 * @param count approximate number of iterations. | |
| 31 * @param callback callback to communicate with RevlogStream (now to stop iteration only) | |
| 32 * @param token identifier of the process | |
| 33 */ | |
| 28 public void start(int count, Callback callback, Object token); | 34 public void start(int count, Callback callback, Object token); | 
| 35 | |
| 36 /** | |
| 37 * @param token identifier of the process, identical to the one passed in {@link #start(int, Callback, Object)} of this iteration | |
| 38 */ | |
| 29 public void finish(Object token); | 39 public void finish(Object token); | 
| 30 | 40 | 
| 41 /** | |
| 42 * Access to RevlogStream facilities. | |
| 43 */ | |
| 31 interface Callback { | 44 interface Callback { | 
| 32 void stop(); | 45 void stop(); | 
| 33 } | 46 } | 
| 34 | 47 | 
| 35 class BasicCallback implements Callback { | 48 class BasicCallback implements Callback { | 
