| Modifier and Type | Method and Description |
|---|---|
protected boolean |
CloudWatchAppender.isMessageTooLarge(LogMessage message) |
protected boolean |
KinesisAppender.isMessageTooLarge(LogMessage message) |
protected boolean |
SNSAppender.isMessageTooLarge(LogMessage message) |
| Modifier and Type | Method and Description |
|---|---|
protected List<LogMessage> |
CloudWatchLogWriter.processBatch(List<LogMessage> currentBatch) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
CloudWatchLogWriter.effectiveSize(LogMessage message) |
| Modifier and Type | Method and Description |
|---|---|
protected List<LogMessage> |
CloudWatchLogWriter.processBatch(List<LogMessage> currentBatch) |
| Modifier and Type | Method and Description |
|---|---|
protected List<LogMessage> |
KinesisLogWriter.processBatch(List<LogMessage> currentBatch) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
KinesisLogWriter.effectiveSize(LogMessage message) |
| Modifier and Type | Method and Description |
|---|---|
protected List<LogMessage> |
KinesisLogWriter.processBatch(List<LogMessage> currentBatch) |
| Modifier and Type | Method and Description |
|---|---|
LogMessage |
MessageQueue.dequeue()
Removes a message from the front of the queue.
|
LogMessage |
MessageQueue.dequeue(long waitTime)
Removes a message from the front of the queue, waiting for a specified number of
milliseconds if the queue is empty.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<LogMessage> |
AbstractLogWriter.buildBatch()
Attempts to read a list of messages from the queue.
|
protected abstract List<LogMessage> |
AbstractLogWriter.processBatch(List<LogMessage> currentBatch)
Processes a batch of messages.
|
List<LogMessage> |
MessageQueue.toList()
Copies the current queue contents into a List.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LogWriter.addMessage(LogMessage message)
Adds a message to the writer waiting for batch.
|
void |
AbstractLogWriter.addMessage(LogMessage message) |
int |
LogMessage.compareTo(LogMessage that)
Compares instances based on their timestamp.
|
protected abstract int |
AbstractLogWriter.effectiveSize(LogMessage message)
Calculates the effective size of the message.
|
void |
MessageQueue.enqueue(LogMessage message)
Adds a message to the end of the queue.
|
protected abstract boolean |
AbstractAppender.isMessageTooLarge(LogMessage message)
Called
AbstractAppender.append(org.apache.log4j.spi.LoggingEvent) to ensure that we don't have a single message
that violates AWS batching rules. |
void |
MessageQueue.requeue(LogMessage message)
Adds a message to the start of the queue.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<LogMessage> |
AbstractLogWriter.processBatch(List<LogMessage> currentBatch)
Processes a batch of messages.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<LogMessage> |
SNSLogWriter.processBatch(List<LogMessage> currentBatch) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
SNSLogWriter.effectiveSize(LogMessage message) |
| Modifier and Type | Method and Description |
|---|---|
protected List<LogMessage> |
SNSLogWriter.processBatch(List<LogMessage> currentBatch) |
Copyright © 2018. All rights reserved.