public enum OffsetManager extends Enum<OffsetManager>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
String |
getReadFileName() |
long |
getReadFileOffset() |
String |
getWriteFileName() |
long |
getWriteFileOffset() |
void |
initialize() |
void |
setReadOffset(long readFileOffset) |
void |
setReadOffset(String readFileName,
long readFileOffset) |
void |
setWriteOffset(long writeFileOffset) |
void |
setWriteOffset(String writeFileName,
long writeFileOffset) |
static OffsetManager |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OffsetManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OffsetManager INSTANCE
public static OffsetManager[] values()
for (OffsetManager c : OffsetManager.values()) System.out.println(c);
public static OffsetManager valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void initialize()
throws IOException
IOExceptionpublic void flush()
public String getReadFileName()
public long getReadFileOffset()
public void setReadOffset(long readFileOffset)
public void setReadOffset(String readFileName, long readFileOffset)
public String getWriteFileName()
public long getWriteFileOffset()
public void setWriteOffset(String writeFileName, long writeFileOffset)
public void setWriteOffset(long writeFileOffset)
Copyright © 2018 The Apache Software Foundation. All rights reserved.