Skip to content

Commit 2cb5d38

Browse files
committed
+ pulled back to be Java 8 compatible
1 parent 7c6d742 commit 2cb5d38

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

src/main/java/conseq4j/execute/SequentialExecutor.java

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,18 @@ public interface SequentialExecutor {
4646
/**
4747
* Asynchronously executes specified command in sequence regulated by specified key
4848
*
49-
* @param command
50-
* the Runnable task to run sequentially with others under the same sequence key
51-
* @param sequenceKey
52-
* the key under which all tasks are executed sequentially
49+
* @param command the Runnable task to run sequentially with others under the same sequence key
50+
* @param sequenceKey the key under which all tasks are executed sequentially
5351
* @return future holding run status of the submitted command
5452
*/
5553
Future<Void> execute(Runnable command, Object sequenceKey);
5654

5755
/**
5856
* Asynchronously executes specified task in sequence regulated by specified key
5957
*
60-
* @param <T>
61-
* the type of the task's result
62-
* @param task
63-
* the Callable task to run sequentially with others under the same sequence key
64-
* @param sequenceKey
65-
* the key under which all tasks are executed sequentially
58+
* @param <T> the type of the task's result
59+
* @param task the Callable task to run sequentially with others under the same sequence key
60+
* @param sequenceKey the key under which all tasks are executed sequentially
6661
* @return a Future representing pending completion of the submitted task
6762
*/
6863
<T> Future<T> submit(Callable<T> task, Object sequenceKey);

src/main/java/conseq4j/summon/SequentialExecutorServiceFactory.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ public interface SequentialExecutorServiceFactory {
3939
* Produces sequential executor for the specified sequence key. All calls passing in the same sequence key return
4040
* the same executor.
4141
*
42-
* @param sequenceKey
43-
* an {@link Object} instance whose hash code is used to summon the corresponding executor.
42+
* @param sequenceKey an {@link Object} instance whose hash code is used to summon the corresponding executor.
4443
* @return the sequential executor of type {@link java.util.concurrent.ExecutorService} that executes all tasks of
45-
* this sequence key in the same order as they are submitted.
44+
* this sequence key in the same order as they are submitted.
4645
*/
4746
ExecutorService getExecutorService(Object sequenceKey);
4847
}

0 commit comments

Comments
 (0)