Class FlinkKafkaPublisher
java.lang.Object
com.here.platform.data.client.flink.javadsl.FlinkKafkaPublisher
- All Implemented Interfaces:
Serializable
Use this class for manually managing publishing to a stream layer.
Requires call
terminate() method after multiple usage of publish(java.util.Iterator<com.here.platform.data.client.model.PendingPartition>) method.
param: hrn catalog identifier.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapply(HRN hrn, Iterator<PendingPartition> partitions) Publish new partitions to a stream layer.voidpublish(Iterator<PendingPartition> partitions) Publish new partitions to a stream layer without closing publisher.voidClose publisher.
-
Constructor Details
-
FlinkKafkaPublisher
-
-
Method Details
-
apply
Publish new partitions to a stream layer.- Parameters:
hrn- catalog identifier.partitions- partitions to publish.- Throws:
DataClientNonRetriableException- in case of non-retriable errorDataClientRetriableException- in case of retriable error
-
publish
Publish new partitions to a stream layer without closing publisher.- Parameters:
partitions- partitions to publish.- Throws:
DataClientNonRetriableException- in case of non-retriable errorDataClientRetriableException- in case of retriable error
-
terminate
public void terminate()Close publisher.
-