@Immutable public abstract class Entry extends 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(String key,
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 String |
getKey()
Returns the entry's key.
|
abstract 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(String key, 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 String getKey()
public abstract String getValue()
public abstract EntryMetadata getEntryMetadata()
EntryMetadata associated with this Entry.EntryMetadata.