Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.emory.mathcs.util.concurrent
Interface Callback

public interface Callback

Abstraction of a callback, to be invoked by a middleware upon completion of some asynchronously scheduled action.

Version:
  1.0
Author:
  Dawid Kurzyniec

Method Summary
`void` | `completed(java.lang.Object result)` Called when action completed successfully.
`void` | `failed(java.lang.Throwable cause)` Called when action failed.

Method Detail

### completed

    public void completed(java.lang.Object result)

  Called when action completed successfully.

  Parameters:
    `result` - the result of an action

### failed

    public void failed(java.lang.Throwable cause)

  Called when action failed.

  Parameters:
    `cause` - the cause of the failure

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD