Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contextual callable and runnable invocations must be manually retried…
… and manually completed on non-failures.
- Loading branch information
1 parent
7d6936e
commit 6f30621
Showing
11 changed files
with
342 additions
and
178 deletions.
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package net.jodah.recurrent; | ||
|
||
/** | ||
* A callable that can manually trigger retries or completion for an invocation. | ||
* | ||
* @author Jonathan Halterman | ||
* @param <T> result type | ||
*/ | ||
public interface ContextualCallable<T> { | ||
T call(Invocation invocation) throws Exception; | ||
} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
package net.jodah.recurrent; | ||
|
||
/** | ||
* A runnable that can manually trigger retries or completion for an invocation. | ||
* | ||
* @author Jonathan Halterman | ||
*/ | ||
public interface ContextualRunnable { | ||
void run(Invocation invocation) throws Exception; | ||
} |
Oops, something went wrong.