1 package org.glassbox.executor;
2
3 /***
4 The executor pattern was published by Eric Crahen.
5 Take a look at his <a href="http://www.cse.buffalo.edu/~crahen/papers/Executor.Pattern.pdf">paper</a>
6 to learn more about it.
7 */
8 public interface Handler {
9 void beforeRun(Runnable task);
10 void afterRun(Runnable task);
11 void afterFailure(Runnable task, RuntimeException failure);
12 }