@Immutable
public abstract class Entry
extends java.lang.Object
EntryMetadata
.Modifier and Type | Field and Description |
---|---|
static int |
MAX_KEY_LENGTH
The maximum length for an entry key name.
|
static int |
MAX_VALUE_LENGTH
The maximum length for a entry value.
|
static EntryMetadata |
METADATA_UNLIMITED_PROPAGATION
Default propagation metadata - unlimited propagation.
|
Modifier and Type | Method and Description |
---|---|
static Entry |
create(java.lang.String key,
java.lang.String value,
EntryMetadata entryMetadata)
Creates an
Entry from the given key, value and metadata. |
abstract EntryMetadata |
getEntryMetadata()
Returns the
EntryMetadata associated with this Entry . |
abstract java.lang.String |
getKey()
Returns the entry's key.
|
abstract java.lang.String |
getValue()
Returns the entry's value.
|
public static final int MAX_KEY_LENGTH
public static final int MAX_VALUE_LENGTH
public static final EntryMetadata METADATA_UNLIMITED_PROPAGATION
public static Entry create(java.lang.String key, java.lang.String value, EntryMetadata entryMetadata)
Entry
from the given key, value and metadata.key
- the entry key.value
- the entry value.entryMetadata
- the entry metadata.Entry
.public abstract java.lang.String getKey()
public abstract java.lang.String getValue()
public abstract EntryMetadata getEntryMetadata()
EntryMetadata
associated with this Entry
.EntryMetadata
.