public interface AsyncResultHandler<T> extends Serializable
Default handler for batch asynchronous execution.
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)
This method is responsible for failing specified inputs.
t
- The cause the failure.inputs
- The input tuple proceed.void success(T inputs)
This method is responsible for acknowledging specified inputs.
inputs
- The input tuple proceed.void flush(OutputCollector collector)
Copyright © 2019 The Apache Software Foundation. All rights reserved.