@PublicEvolving public abstract class AsyncSinkBase<InputT,RequestEntryT extends Serializable> extends Object implements StatefulSink<InputT,BufferedRequestState<RequestEntryT>>
The design of the sink focuses on extensibility and a broad support of destinations. The core of the sink is kept generic and free of any connector specific dependencies. The sink is designed to participate in checkpointing to provide at-least once semantics, but it is limited to destinations that provide a client that supports async requests.
Limitations:
StatefulSink.StatefulSinkWriter<InputT,WriterStateT>, StatefulSink.WithCompatibleState
Sink.InitContext
Modifier | Constructor and Description |
---|---|
protected |
AsyncSinkBase(ElementConverter<InputT,RequestEntryT> elementConverter,
int maxBatchSize,
int maxInFlightRequests,
int maxBufferedRequests,
long maxBatchSizeInBytes,
long maxTimeInBufferMS,
long maxRecordSizeInBytes) |
Modifier and Type | Method and Description |
---|---|
protected ElementConverter<InputT,RequestEntryT> |
getElementConverter() |
protected int |
getMaxBatchSize() |
protected long |
getMaxBatchSizeInBytes() |
protected int |
getMaxBufferedRequests() |
protected int |
getMaxInFlightRequests() |
protected long |
getMaxRecordSizeInBytes() |
protected long |
getMaxTimeInBufferMS() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createWriter, getWriterStateSerializer, restoreWriter
protected AsyncSinkBase(ElementConverter<InputT,RequestEntryT> elementConverter, int maxBatchSize, int maxInFlightRequests, int maxBufferedRequests, long maxBatchSizeInBytes, long maxTimeInBufferMS, long maxRecordSizeInBytes)
protected ElementConverter<InputT,RequestEntryT> getElementConverter()
protected int getMaxBatchSize()
protected int getMaxInFlightRequests()
protected int getMaxBufferedRequests()
protected long getMaxBatchSizeInBytes()
protected long getMaxTimeInBufferMS()
protected long getMaxRecordSizeInBytes()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.