s243a

ClientContext.start

Jun 7th, 2015
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1.  line 231 of https://github.com/freenet/fred/blob/next/src/freenet/client/async/ClientContext.java
  2. 231     public void start(final BaseManifestPutter inserter) throws InsertException, PersistenceDisabledException {
  3. 232         if(inserter.persistent()) {
  4. 233             jobRunner.queue(new PersistentJob() {
  5. 234                  
  6. 235                 @Override
  7. 236                 public boolean run(ClientContext context) {
  8. 237                     try {
  9. 238                         inserter.start(context);
  10. 239                     } catch (InsertException e) {
  11. 240                         inserter.cb.onFailure(e, inserter);
  12. 241                     }
  13. 242                     return true;
  14. 243                 }
  15. 244                  
  16. 245             }, NativeThread.NORM_PRIORITY);
  17. 246         } else {
  18. 247             inserter.start(this);
  19. 248         }
  20. 249     }
Advertisement
Add Comment
Please, Sign In to add comment