-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nathan Marz
committed
Dec 8, 2011
1 parent
1f39064
commit 720901f
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,18 @@ | |||
package backtype.storm.utils; | |||
|
|||
import clojure.lang.IFn; | |||
import java.util.TimerTask; | |||
|
|||
public class ClojureTimerTask extends TimerTask { | |||
IFn _afn; | |||
|
|||
public ClojureTimerTask(IFn afn) { | |||
super(); | |||
_afn = afn; | |||
} | |||
|
|||
@Override | |||
public void run() { | |||
_afn.run(); | |||
} | |||
} |