Guest User

Untitled

a guest
Dec 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public interface Callback {
  2. void onResult();
  3.  
  4. void onError(IntegrationException e);
  5. }
  6.  
  7. public interface TaskExecutor {
  8.  
  9. /**
  10. * Enqueue task for execution and asynchronously pass result or error to specified callback.
  11. */
  12. void submitTask(String taskName, Callback c);
  13. }
  14.  
  15. Please implement following method that have to execute task synchronously:
  16.  
  17. public void executeTaskSynchronously(String taskName, TaskExecutor taskExecutor) throws IntegrationException {
  18. ...
  19. }
Add Comment
Please, Sign In to add comment