public class KafkaEmitter extends AbstractEmitter implements Initializable
Constructor and Description |
---|
KafkaEmitter() |
Modifier and Type | Method and Description |
---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
void |
emit(String emitKey,
List<Metadata> metadataList) |
void |
initialize(Map<String,Param> params) |
void |
setAcks(String acks) |
void |
setBatchSize(int batchSize) |
void |
setBootstrapServers(String bootstrapServers) |
void |
setBufferMemory(int bufferMemory) |
void |
setClientId(String clientId) |
void |
setCompressionType(String compressionType) |
void |
setConnectionsMaxIdleMs(int connectionsMaxIdleMs) |
void |
setDeliveryTimeoutMs(int deliveryTimeoutMs) |
void |
setEnableIdempotence(boolean enableIdempotence) |
void |
setInterceptorClasses(String interceptorClasses) |
void |
setKeySerializer(String keySerializer) |
void |
setLingerMs(int lingerMs) |
void |
setMaxBlockMs(int maxBlockMs) |
void |
setMaxInFlightRequestsPerConnection(int maxInFlightRequestsPerConnection) |
void |
setMaxRequestSize(int maxRequestSize) |
void |
setMetadataMaxAgeMs(int metadataMaxAgeMs) |
void |
setRequestTimeoutMs(int requestTimeoutMs) |
void |
setRetries(int retries) |
void |
setRetryBackoffMs(int retryBackoffMs) |
void |
setTopic(String topic) |
void |
setTransactionalId(String transactionalId) |
void |
setTransactionTimeoutMs(int transactionTimeoutMs) |
void |
setValueSerializer(String valueSerializer) |
emit, getName, setName
@Field public void setLingerMs(int lingerMs)
public void setBatchSize(int batchSize)
@Field public void setBufferMemory(int bufferMemory)
@Field public void setConnectionsMaxIdleMs(int connectionsMaxIdleMs)
@Field public void setDeliveryTimeoutMs(int deliveryTimeoutMs)
@Field public void setEnableIdempotence(boolean enableIdempotence)
@Field public void setMaxBlockMs(int maxBlockMs)
@Field public void setMaxInFlightRequestsPerConnection(int maxInFlightRequestsPerConnection)
@Field public void setMaxRequestSize(int maxRequestSize)
@Field public void setMetadataMaxAgeMs(int metadataMaxAgeMs)
@Field public void setRequestTimeoutMs(int requestTimeoutMs)
@Field public void setRetries(int retries)
@Field public void setRetryBackoffMs(int retryBackoffMs)
@Field public void setTransactionTimeoutMs(int transactionTimeoutMs)
public void emit(String emitKey, List<Metadata> metadataList) throws IOException, TikaEmitterException
emit
in interface Emitter
IOException
TikaEmitterException
public void initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- params to use for initializationTikaConfigException
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.