public static enum Result.FetchMode extends java.lang.Enum<Result.FetchMode>
| Enum Constant and Description |
|---|
AGGRESSIVE
Fetches all parts of the sequence as fast as possible.
WARNING: This can end up throwing OutOfMemoryErrors in case of giant sequences. |
LAZY
Fetches the next part of the sequence once the buffer becomes empty.
|
PREEMPTIVE_EIGHTH
Fetches the next part of the sequence once the buffer reaches an eight of the original size.
|
PREEMPTIVE_FIFTH
Fetches the next part of the sequence once the buffer reaches a fifth of the original size.
|
PREEMPTIVE_FOURTH
Fetches the next part of the sequence once the buffer reaches a fourth of the original size.
|
PREEMPTIVE_HALF
Fetches the next part of the sequence once the buffer reaches half of the original size.
|
PREEMPTIVE_SEVENTH
Fetches the next part of the sequence once the buffer reaches a seventh of the original size.
|
PREEMPTIVE_SIXTH
Fetches the next part of the sequence once the buffer reaches a sixth of the original size.
|
PREEMPTIVE_THIRD
Fetches the next part of the sequence once the buffer reaches a third of the original size.
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable Result.FetchMode |
fromString(java.lang.String s) |
abstract boolean |
shouldContinue(int size,
int requestSize) |
static Result.FetchMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Result.FetchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Result.FetchMode AGGRESSIVE
OutOfMemoryErrors in case of giant sequences.public static final Result.FetchMode PREEMPTIVE_HALF
public static final Result.FetchMode PREEMPTIVE_THIRD
public static final Result.FetchMode PREEMPTIVE_FOURTH
public static final Result.FetchMode PREEMPTIVE_FIFTH
public static final Result.FetchMode PREEMPTIVE_SIXTH
public static final Result.FetchMode PREEMPTIVE_SEVENTH
public static final Result.FetchMode PREEMPTIVE_EIGHTH
public static final Result.FetchMode LAZY
public static Result.FetchMode[] values()
for (Result.FetchMode c : Result.FetchMode.values()) System.out.println(c);
public static Result.FetchMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract boolean shouldContinue(int size,
int requestSize)
@Nullable public static @Nullable Result.FetchMode fromString(java.lang.String s)