public interface AsyncResultHandler<T> extends Serializable
Modifier and Type | Field and Description |
---|---|
static AsyncResultHandler |
NO_OP_HANDLER |
Modifier and Type | Method and Description |
---|---|
void |
failure(Throwable t,
T inputs)
This method is responsible for failing specified inputs.
|
void |
flush(OutputCollector collector) |
void |
success(T inputs)
This method is responsible for acknowledging specified inputs.
|
static final AsyncResultHandler NO_OP_HANDLER
void failure(Throwable t, T inputs)
t
- The cause the failure.inputs
- The input tuple proceed.void success(T inputs)
inputs
- The input tuple proceed.void flush(OutputCollector collector)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.