Skip to content

Commit

Permalink
[BACKLOG-14634] Restoring CompletableFuture to API now that RSA has f…
Browse files Browse the repository at this point in the history
…ixed compatability
  • Loading branch information
pentaho-nbaker committed Feb 22, 2017
1 parent 574c7c6 commit 9fc788b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -17,7 +17,7 @@
*
* @param <T> Serialized event type
*/
public interface Execution<T extends Serializable> extends Serializable {
public interface Execution<T extends Serializable> extends Serializable, AutoCloseable {
/**
* @return original request for this execution
*/
Expand Down
Expand Up @@ -2,6 +2,7 @@

import java.io.Serializable;
import java.util.Map;
import java.util.concurrent.CompletableFuture;

/**
* A service (usually running on a remote daemon) that can accept Execution Requests
Expand Down Expand Up @@ -33,5 +34,5 @@ public interface ExecutionManager extends Serializable {
* @param request {@link ExecutionRequest}
* @return endpointId used to locate an {@link Execution}
*/
String submit( ExecutionRequest request );
CompletableFuture<String> submit( ExecutionRequest request );
}

0 comments on commit 9fc788b

Please sign in to comment.