public enum BufferState extends Enum<BufferState>
Enum Constant and Description |
---|
FAILED
Buffer has failed.
|
FINISHED
No more buffers can be added and all pages have been consumed.
|
FLUSHING
No more pages or buffers can be added, and buffer is waiting
for the final pages to be consumed.
|
NO_MORE_BUFFERS
No more buffers can be added.
|
NO_MORE_PAGES
No more pages can be added.
|
OPEN
Additional buffers can be added.
|
Modifier and Type | Field and Description |
---|---|
static Set<BufferState> |
TERMINAL_BUFFER_STATES |
Modifier and Type | Method and Description |
---|---|
boolean |
canAddBuffers() |
boolean |
canAddPages() |
boolean |
isTerminal() |
static BufferState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BufferState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BufferState OPEN
public static final BufferState NO_MORE_BUFFERS
FLUSHING
.public static final BufferState NO_MORE_PAGES
FLUSHING
.public static final BufferState FLUSHING
FINISHED
.public static final BufferState FINISHED
public static final BufferState FAILED
public static final Set<BufferState> TERMINAL_BUFFER_STATES
public static BufferState[] values()
for (BufferState c : BufferState.values()) System.out.println(c);
public static BufferState 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 boolean canAddPages()
public boolean canAddBuffers()
public boolean isTerminal()
Copyright © 2012–2019. All rights reserved.