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
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2016–2018. All rights reserved.