public static enum WALEntryStream.HasNext extends Enum<WALEntryStream.HasNext>
Enum Constant and Description |
---|
NO
means there is no new entry and stream is end, the upper layer should close this stream and
release other resources as well
|
RETRY
means there are something wrong or we have reached EOF of the current file but it is not
closed yet and there is no new file in the replication queue yet, you should sleep a while
and try to call hasNext again
|
RETRY_IMMEDIATELY
Usually this means we have finished reading a WAL file, and for simplify the implementation
of this class, we just let the upper layer issue a new hasNext call again to open the next
WAL file.
|
YES
means there is a new entry and you could use peek or next to get current entry
|
Modifier and Type | Method and Description |
---|---|
static WALEntryStream.HasNext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WALEntryStream.HasNext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WALEntryStream.HasNext YES
public static final WALEntryStream.HasNext RETRY
public static final WALEntryStream.HasNext RETRY_IMMEDIATELY
public static final WALEntryStream.HasNext NO
public static WALEntryStream.HasNext[] values()
for (WALEntryStream.HasNext c : WALEntryStream.HasNext.values()) System.out.println(c);
public static WALEntryStream.HasNext 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 nullCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.