T - type of MetaParam instance, implementations should assign it to
the implementation's type.public interface MetaParam<T>
MetaParam.Writable. Examples of writable metadata
parameters are version information, lifespan of the cached value...etc.
Those metadata parameters not extending MetaParam.Writable are
created by internal logic and hence can only be queried, for example:
time when value was added into the functional map, or last time value
was accessed or modified.
What makes MetaParam different from Param is that MetaParam
values are designed to be stored along with key/value pairs in the functional map,
to provide extra information. On the other hand, Param instances
merely act as ways to tweak how operations are executed, and their contents
are never stored permanently.| Modifier and Type | Interface and Description |
|---|---|
static interface |
MetaParam.Lookup
Provides metadata parameter lookup capabilities using
Class as
lookup key. |
static class |
MetaParam.MetaCreated
Read only metadata parameter representing a cached entry's created time
in milliseconds.
|
static class |
MetaParam.MetaEntryVersion<T>
Writable metadata parameter representing a cached entry's generic version.
|
static class |
MetaParam.MetaLastUsed
Read only metadata parameter representing a cached entry's last used time
in milliseconds.
|
static class |
MetaParam.MetaLifespan
Writable metadata parameter representing a cached entry's millisecond lifespan.
|
static class |
MetaParam.MetaLong |
static class |
MetaParam.MetaMaxIdle
Writable metadata parameter representing a cached entry's millisecond
max idle time.
|
static interface |
MetaParam.Writable<T>
Writable
MetaParam instances are those that the user can provide
to be stored as part of the cache entry. |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the value of the meta parameter.
|
T get()
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.