public final class AWSLogsBuffer extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
static int |
AWS_LOG_EVENT_OVERHEAD |
static int |
AWS_LOGS_MAX_BATCH_SIZE |
| Constructor and Description |
|---|
AWSLogsBuffer(BufferedReader reader,
com.amazonaws.services.logs.AWSLogs awsLogsClient,
String logGroupName,
String logStreamName,
PrintStream logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String msg,
Long timestamp) |
void |
close() |
String |
readLine() |
public static final int AWS_LOGS_MAX_BATCH_SIZE
public static final int AWS_LOG_EVENT_OVERHEAD
public AWSLogsBuffer(BufferedReader reader, com.amazonaws.services.logs.AWSLogs awsLogsClient, String logGroupName, String logStreamName, PrintStream logger)
public String readLine() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016–2018. All rights reserved.