Package com.linkedin.venice.pulsar.sink
Class VenicePulsarSinkConfig
- java.lang.Object
-
- com.linkedin.venice.pulsar.sink.VenicePulsarSinkConfig
-
- All Implemented Interfaces:
java.io.Serializable
public class VenicePulsarSinkConfig extends java.lang.Object implements java.io.Serializable
Configuration class for the Sink Connector.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VenicePulsarSinkConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
long
getFlushIntervalMs()
java.lang.String
getKafkaSaslConfig()
java.lang.String
getKafkaSaslMechanism()
java.lang.String
getKafkaSecurityProtocol()
int
getMaxNumberUnflushedRecords()
java.lang.String
getStoreName()
java.lang.String
getVeniceDiscoveryUrl()
java.lang.String
getVeniceRouterUrl()
java.util.Map<java.lang.String,java.lang.String>
getWriterConfig()
int
hashCode()
static VenicePulsarSinkConfig
load(java.util.Map<java.lang.String,java.lang.Object> map, org.apache.pulsar.io.core.SinkContext sinkContext)
VenicePulsarSinkConfig
setFlushIntervalMs(long flushIntervalMs)
VenicePulsarSinkConfig
setKafkaSaslConfig(java.lang.String kafkaSaslConfig)
VenicePulsarSinkConfig
setKafkaSaslMechanism(java.lang.String kafkaSaslMechanism)
VenicePulsarSinkConfig
setKafkaSecurityProtocol(java.lang.String kafkaSecurityProtocol)
VenicePulsarSinkConfig
setMaxNumberUnflushedRecords(int maxNumberUnflushedRecords)
VenicePulsarSinkConfig
setStoreName(java.lang.String storeName)
VenicePulsarSinkConfig
setVeniceDiscoveryUrl(java.lang.String veniceDiscoveryUrl)
VenicePulsarSinkConfig
setVeniceRouterUrl(java.lang.String veniceRouterUrl)
void
setWriterConfig(java.util.Map<java.lang.String,java.lang.String> writerConfig)
java.lang.String
toString()
-
-
-
Method Detail
-
load
public static VenicePulsarSinkConfig load(java.util.Map<java.lang.String,java.lang.Object> map, org.apache.pulsar.io.core.SinkContext sinkContext) throws java.io.IOException
- Throws:
java.io.IOException
-
getVeniceDiscoveryUrl
public java.lang.String getVeniceDiscoveryUrl()
-
getVeniceRouterUrl
public java.lang.String getVeniceRouterUrl()
-
getKafkaSaslConfig
public java.lang.String getKafkaSaslConfig()
-
getKafkaSaslMechanism
public java.lang.String getKafkaSaslMechanism()
-
getKafkaSecurityProtocol
public java.lang.String getKafkaSecurityProtocol()
-
getStoreName
public java.lang.String getStoreName()
-
getFlushIntervalMs
public long getFlushIntervalMs()
-
getMaxNumberUnflushedRecords
public int getMaxNumberUnflushedRecords()
-
getWriterConfig
public java.util.Map<java.lang.String,java.lang.String> getWriterConfig()
-
setVeniceDiscoveryUrl
public VenicePulsarSinkConfig setVeniceDiscoveryUrl(java.lang.String veniceDiscoveryUrl)
- Returns:
this
.
-
setVeniceRouterUrl
public VenicePulsarSinkConfig setVeniceRouterUrl(java.lang.String veniceRouterUrl)
- Returns:
this
.
-
setKafkaSaslConfig
public VenicePulsarSinkConfig setKafkaSaslConfig(java.lang.String kafkaSaslConfig)
- Returns:
this
.
-
setKafkaSaslMechanism
public VenicePulsarSinkConfig setKafkaSaslMechanism(java.lang.String kafkaSaslMechanism)
- Returns:
this
.
-
setKafkaSecurityProtocol
public VenicePulsarSinkConfig setKafkaSecurityProtocol(java.lang.String kafkaSecurityProtocol)
- Returns:
this
.
-
setStoreName
public VenicePulsarSinkConfig setStoreName(java.lang.String storeName)
- Returns:
this
.
-
setFlushIntervalMs
public VenicePulsarSinkConfig setFlushIntervalMs(long flushIntervalMs)
- Returns:
this
.
-
setMaxNumberUnflushedRecords
public VenicePulsarSinkConfig setMaxNumberUnflushedRecords(int maxNumberUnflushedRecords)
- Returns:
this
.
-
setWriterConfig
public void setWriterConfig(java.util.Map<java.lang.String,java.lang.String> writerConfig)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-