-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LotteryConfig as a parameter to the Executable#execute method, re…
…solves #26
- Loading branch information
1 parent
c6e5d55
commit d784a33
Showing
4 changed files
with
13 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package org.jboss.processing; | ||
|
||
import org.jboss.config.LotteryConfig; | ||
|
||
/** | ||
* Even if it is basically the same as {@code java.lang.Runnable} interface, | ||
* due to interference we need a separate interface mimicking it. | ||
*/ | ||
public interface Executable<T> { | ||
T execute() throws Exception; | ||
public interface Executable { | ||
void execute(LotteryConfig lotteryConfig) 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
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