Class ClientParameters (1.1.1)

public final class ClientParameters

A class providing the correct parameters for connecting a Kafka client to Pub/Sub Lite.

Inheritance

java.lang.Object > ClientParameters

Static Methods

getProducerParams(ProjectId project, CloudRegion region)

public static Map<String,Object> getProducerParams(ProjectId project, CloudRegion region)
Parameters
NameDescription
projectcom.google.cloud.pubsublite.ProjectId
regioncom.google.cloud.pubsublite.CloudRegion
Returns
TypeDescription
Map<java.lang.String,java.lang.Object>

getProducerParams(ProjectIdOrNumber project, CloudRegion region)

public static Map<String,Object> getProducerParams(ProjectIdOrNumber project, CloudRegion region)
Parameters
NameDescription
projectcom.google.cloud.pubsublite.ProjectIdOrNumber
regioncom.google.cloud.pubsublite.CloudRegion
Returns
TypeDescription
Map<java.lang.String,java.lang.Object>

getProducerParams(ProjectNumber project, CloudRegion region)

public static Map<String,Object> getProducerParams(ProjectNumber project, CloudRegion region)
Parameters
NameDescription
projectcom.google.cloud.pubsublite.ProjectNumber
regioncom.google.cloud.pubsublite.CloudRegion
Returns
TypeDescription
Map<java.lang.String,java.lang.Object>