Class WrappedSubscriptionControl
- All Implemented Interfaces:
SubscriptionControl
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedSubscriptionControl(com.here.platform.data.client.scaladsl.SubscriptionControl delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(Partition partition) Only with manual offsets.CompletionStage<org.apache.pekko.Done>Only with manual offsets.CompletionStage<scala.collection.immutable.Map<String,String>> getKafkaMetrics(scala.collection.immutable.List<String> metricNames) Exposes Kafka consumer metrics.CompletionStage<org.apache.pekko.Done>shutdown()Shutdown the stream.
-
Constructor Details
-
WrappedSubscriptionControl
public WrappedSubscriptionControl(com.here.platform.data.client.scaladsl.SubscriptionControl delegate)
-
-
Method Details
-
acknowledge
Description copied from interface:SubscriptionControlOnly with manual offsets.Notify the subscription that user already process the partition and can be include in next [checkpoint] call.
- Specified by:
acknowledgein interfaceSubscriptionControl
-
checkpoint
Description copied from interface:SubscriptionControlOnly with manual offsets.Persist in server the offset for all [acknowledge] partitions for current groupName
- Specified by:
checkpointin interfaceSubscriptionControl
-
getKafkaMetrics
public CompletionStage<scala.collection.immutable.Map<String,String>> getKafkaMetrics(scala.collection.immutable.List<String> metricNames) Description copied from interface:SubscriptionControlExposes Kafka consumer metrics.A specific list of Kafka metric name Strings can be specified in metricNames. If there is no argument passed (or the list is empty), then all available Kafka consumer metrics will be retrieved. Only the metric name should be specified (without including the group), for example "time-between-poll-avg" or "records-consumed-rate".
In the Kafka consumer metrics returned, the
client-idvalue will be taken from theconsumerIdfield inConsumerSettings, which can be set to a specified value (if it is not set, then by default a random UUID will be assigned asclient-id).- Specified by:
getKafkaMetricsin interfaceSubscriptionControl
-
shutdown
Description copied from interface:SubscriptionControlShutdown the stream. It will wait for outstanding processes to finish before shutting down.- Specified by:
shutdownin interfaceSubscriptionControl
-