public class FlightEndpointListener extends Object implements FlightProducer.StreamListener<FlightEndpoint>
Modifier and Type | Method and Description |
---|---|
void |
onCompleted()
Indicate that the transmission is finished.
|
void |
onError(Throwable t)
Indicate an error to the client.
|
void |
onNext(FlightEndpoint val)
Send the next value to the client.
|
public void onNext(FlightEndpoint val)
FlightProducer.StreamListener
onNext
in interface FlightProducer.StreamListener<FlightEndpoint>
public void onError(Throwable t)
FlightProducer.StreamListener
Terminates the stream; do not call FlightProducer.StreamListener.onCompleted()
.
onError
in interface FlightProducer.StreamListener<FlightEndpoint>
public void onCompleted()
FlightProducer.StreamListener
onCompleted
in interface FlightProducer.StreamListener<FlightEndpoint>
Copyright © 2024 The Apache Software Foundation. All rights reserved.