Package io.confluent.ksql.api.client
Interface AcksPublisher
-
- All Superinterfaces:
org.reactivestreams.Publisher<InsertAck>
public interface AcksPublisher extends org.reactivestreams.Publisher<InsertAck>
A Reactive Streams Publisher that publishes server acknowledgments for rows inserted into an existing ksqlDB stream viaClient.streamInserts(String, Publisher).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisComplete()Returns whether theAcksPublisheris complete.booleanisFailed()Returns whether theAcksPublisheris failed.
-
-
-
Method Detail
-
isComplete
boolean isComplete()
Returns whether theAcksPublisheris complete.An
AcksPublisheris complete if the HTTP connection associated with thisClient.streamInserts(java.lang.String, org.reactivestreams.Publisher<io.confluent.ksql.api.client.KsqlObject>)request has been ended gracefully. Once complete, theAcksPublisherwill continue to deliver any remaining rows, then callonComplete()on the subscriber, if present.- Returns:
- whether the
AcksPublisheris complete.
-
isFailed
boolean isFailed()
Returns whether theAcksPublisheris failed.An
AcksPublisheris failed if an error is received from the server. Once failed,onError()is called on the subscriber, if present, and new calls tosubscribe()will be rejected.- Returns:
- whether the
AcksPublisheris failed.
-
-