public static enum Buffer.DataType extends Enum<Buffer.DataType>
Buffer
so that we can get the
information without deserializing the serialized data.
Notes: Currently, one byte is used to serialize the ordinal of Buffer.DataType
in NettyMessage.BufferResponse
, so the maximum number
of supported data types is 128.
Enum Constant and Description |
---|
ALIGNED_EXACTLY_ONCE_CHECKPOINT_BARRIER
ALIGNED_EXACTLY_ONCE_CHECKPOINT_BARRIER indicates that this buffer represents a
serialized checkpoint barrier of aligned exactly-once checkpoint mode.
|
DATA_BUFFER
DATA_BUFFER indicates that this buffer represents a non-event data buffer.
|
EVENT_BUFFER
EVENT_BUFFER indicates that this buffer represents serialized data of an event.
|
Modifier and Type | Method and Description |
---|---|
static Buffer.DataType |
getDataType(AbstractEvent event) |
boolean |
isBlockingUpstream() |
boolean |
isBuffer() |
static Buffer.DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Buffer.DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Buffer.DataType DATA_BUFFER
public static final Buffer.DataType EVENT_BUFFER
ALIGNED_EXACTLY_ONCE_CHECKPOINT_BARRIER
and etc.public static final Buffer.DataType ALIGNED_EXACTLY_ONCE_CHECKPOINT_BARRIER
public static Buffer.DataType[] values()
for (Buffer.DataType c : Buffer.DataType.values()) System.out.println(c);
public static Buffer.DataType 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 isBuffer()
public boolean isBlockingUpstream()
public static Buffer.DataType getDataType(AbstractEvent event)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.