public class KinesisReceiver extends Receiver<byte[]> implements Logging
Constructor and Description |
---|
KinesisReceiver(String appName,
String streamName,
String endpointUrl,
Duration checkpointInterval,
com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitialPositionInStream initialPositionInStream,
StorageLevel storageLevel) |
Modifier and Type | Method and Description |
---|---|
com.amazonaws.auth.AWSCredentialsProvider |
credentialsProvider() |
com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisClientLibConfiguration |
kinesisClientLibConfiguration() |
void |
onStart()
This is called when the KinesisReceiver starts and must be non-blocking.
|
void |
onStop()
This is called when the KinesisReceiver stops.
|
com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory |
recordProcessorFactory() |
com.amazonaws.services.kinesis.clientlibrary.lib.worker.Worker |
worker() |
String |
workerId() |
attachExecutor, executor_, isStarted, isStopped, preferredLocation, reportError, restart, restart, restart, setReceiverId, stop, stop, storageLevel, store, store, store, store, store, store, store, store, store, streamId
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public KinesisReceiver(String appName, String streamName, String endpointUrl, Duration checkpointInterval, com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitialPositionInStream initialPositionInStream, StorageLevel storageLevel)
public String workerId()
public com.amazonaws.auth.AWSCredentialsProvider credentialsProvider()
public com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisClientLibConfiguration kinesisClientLibConfiguration()
public com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory recordProcessorFactory()
public com.amazonaws.services.kinesis.clientlibrary.lib.worker.Worker worker()
public void onStart()