-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
src/main/java/pl/amazingcode/threadscollider/exceptions/ThreadsColliderFailure.java
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
4 changes: 2 additions & 2 deletions
4
src/main/java/pl/amazingcode/threadscollider/multi/MandatoryActionBuilder.java
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,13 +1,13 @@ | ||
package pl.amazingcode.threadscollider.multi; | ||
|
||
/** Builder for mandatory action. */ | ||
/** Intermediary builder for {@link MultiThreadsCollider}. */ | ||
public interface MandatoryActionBuilder { | ||
|
||
/** | ||
* Set action to be executed. | ||
* | ||
* @param action action to be executed | ||
* @return builder | ||
* @return {@link TimesBuilder} | ||
*/ | ||
TimesBuilder withAction(Runnable action); | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/main/java/pl/amazingcode/threadscollider/multi/TimesBuilder.java
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,6 +1,13 @@ | ||
package pl.amazingcode.threadscollider.multi; | ||
|
||
/** Intermediary builder for {@link MultiThreadsCollider}. */ | ||
public interface TimesBuilder { | ||
|
||
/** | ||
* Sets number of times to repeat action. | ||
* | ||
* @param times number of times to repeat action | ||
* @return {@link OptionalActionBuilder} | ||
*/ | ||
OptionalActionBuilder times(int times); | ||
} |