Interface PartitionSubscriberFactory (1.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
public interface PartitionSubscriberFactory extends Serializable
Methods
newSubscriber(Partition partition, Offset offset, Consumer<List<SequencedMessage>> message_consumer)
public abstract Subscriber newSubscriber(Partition partition, Offset offset, Consumer<List<SequencedMessage>> message_consumer)
Parameters |
Name |
Description |
partition |
com.google.cloud.pubsublite.Partition
|
offset |
com.google.cloud.pubsublite.Offset
|
message_consumer |
Consumer<List<com.google.cloud.pubsublite.SequencedMessage>>
|
Returns |
Type |
Description |
com.google.cloud.pubsublite.internal.wire.Subscriber |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface PartitionSubscriberFactory (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/java/docs/reference/pubsublite-spark-sql-streaming/latest/com.google.cloud.pubsublite.spark.internal.PartitionSubscriberFactory)\n- [0.4.5](/java/docs/reference/pubsublite-spark-sql-streaming/0.4.5/com.google.cloud.pubsublite.spark.internal.PartitionSubscriberFactory)\n- [0.3.4](/java/docs/reference/pubsublite-spark-sql-streaming/0.3.4/com.google.cloud.pubsublite.spark.internal.PartitionSubscriberFactory) \n\n public interface PartitionSubscriberFactory extends Serializable\n\nImplements\n----------\n\n[Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html)\n\nMethods\n-------\n\n### newSubscriber(Partition partition, Offset offset, Consumer\\\u003cList\\\u003cSequencedMessage\\\u003e\\\u003e message_consumer)\n\n public abstract Subscriber newSubscriber(Partition partition, Offset offset, Consumer\u003cList\u003cSequencedMessage\u003e\u003e message_consumer)"]]