T - The type of the callback object.public class NoOpStreamListener<T> extends Object implements FlightProducer.StreamListener<T>
FlightProducer.StreamListener that does nothing for all callbacks.| Constructor and Description |
|---|
NoOpStreamListener() |
| Modifier and Type | Method and Description |
|---|---|
static <T> FlightProducer.StreamListener<T> |
getInstance() |
void |
onCompleted()
Ignores the stream completion event.
|
void |
onError(Throwable t)
Ignores the error received.
|
void |
onNext(T val)
Ignores the value received.
|
public void onNext(T val)
onNext in interface FlightProducer.StreamListener<T>public void onError(Throwable t)
onError in interface FlightProducer.StreamListener<T>public void onCompleted()
onCompleted in interface FlightProducer.StreamListener<T>public static <T> FlightProducer.StreamListener<T> getInstance()
Copyright © 2021 The Apache Software Foundation. All rights reserved.