Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2012, Inc. or its affiliates. All Rights Reserved.
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
 * or in the "license" file accompanying this file. This file is distributed
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.

Used to complete or fail an external task initiated through ExternalTask.doExecute(

Flow framework is not thread safe and expects that all asynchronous code is executed in a single thread. Currently ExternalTaskCompletionHandle is the only exception as it allows complete() and fail(java.lang.Throwable) be called from other threads.

public interface ExternalTaskCompletionHandle {
    public void complete();
    public void fail(Throwable e);
New to GrepCode? Check out our FAQ X