public interface KinesisFacade
KinesisLogWriter.
Instances are created by FacadeFactory, and are tied to a single
writer's configuration.
All operations may throw KinesisFacadeException. Callers are expected
to catch this exception (it's checked), and take action based on the reason code
that it exposes.
| Modifier and Type | Method and Description |
|---|---|
void |
createStream()
Creates the stream.
|
List<LogMessage> |
putRecords(List<LogMessage> batch)
Attempts to send records to the stream.
|
KinesisConstants.StreamStatus |
retrieveStreamStatus()
Returns the current status of the stream, null if the status cannot be
determined due to a retryable condition.
|
void |
setRetentionPeriod()
Sets the stream's retention period, iff configuration specifies a non-null
period.
|
void |
shutdown()
Shuts down the underlying client.
|
KinesisConstants.StreamStatus retrieveStreamStatus()
void createStream()
void setRetentionPeriod()
List<LogMessage> putRecords(List<LogMessage> batch)
void shutdown()
Copyright © 2023. All rights reserved.