Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface Callback {
- void onResult();
- void onError(IntegrationException e);
- }
- public interface TaskExecutor {
- /**
- * Enqueue task for execution and asynchronously pass result or error to specified callback.
- */
- void submitTask(String taskName, Callback c);
- }
- Please implement following method that have to execute task synchronously:
- public void executeTaskSynchronously(String taskName, TaskExecutor taskExecutor) throws IntegrationException {
- ...
- }
Add Comment
Please, Sign In to add comment