s243a

ArchiveExtractCallback.java (freenet.client)

Oct 22nd, 2014
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.99 KB | None | 0 0
  1. //s243a pearltree node: http://www.pearltrees.com/s243a/java/id12827366
  2. package freenet.client;
  3.  
  4. import com.db4o.ObjectContainer;
  5.  
  6. import freenet.client.async.ClientContext;
  7. import freenet.support.api.Bucket;
  8.  
  9. /** Called when we have extracted an archive, and a specified file either is
  10.  * or isn't in it. */
  11. public interface ArchiveExtractCallback {
  12.  
  13.     /** Got the data.
  14.      * Note that the bucket will be persistent if the caller asked for an off-thread extraction. */
  15.     public void gotBucket(Bucket data, ObjectContainer container, ClientContext context);
  16.    
  17.     /** Not in the archive */
  18.     public void notInArchive(ObjectContainer container, ClientContext context);
  19.    
  20.     /** Failed: restart */
  21.     public void onFailed(ArchiveRestartException e, ObjectContainer container, ClientContext context);
  22.    
  23.     /** Failed for some other reason */
  24.     public void onFailed(ArchiveFailureException e, ObjectContainer container, ClientContext context);
  25.  
  26.     public void removeFrom(ObjectContainer container);
  27.    
  28. }
Add Comment
Please, Sign In to add comment