public class AwsGCJournalFile extends java.lang.Object implements GCJournalFile
Constructor and Description |
---|
AwsGCJournalFile(DynamoDBClient dynamoDBClient,
java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
readLines()
Return the list of all written records in the same order as they were
written.
|
void |
truncate()
Removes the content of the gc.log
|
void |
writeLine(java.lang.String line)
Write the new line to the GC journal file.
|
public AwsGCJournalFile(DynamoDBClient dynamoDBClient, java.lang.String fileName)
public void writeLine(java.lang.String line) throws java.io.IOException
GCJournalFile
writeLine
in interface GCJournalFile
line
- the line to write. It should contain neither special characters
nor the newline \n
.java.io.IOException
public java.util.List<java.lang.String> readLines() throws java.io.IOException
GCJournalFile
readLines
in interface GCJournalFile
java.io.IOException
public void truncate() throws java.io.IOException
GCJournalFile
truncate
in interface GCJournalFile
java.io.IOException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.