public static interface Metadata.Builder
Modifier and Type | Method and Description |
---|---|
Metadata |
build()
Build a metadata instance.
|
Metadata.Builder |
lifespan(long time)
Set lifespan time assuming that the time unit is milliseconds.
|
Metadata.Builder |
lifespan(long time,
TimeUnit unit)
Set lifespan time with a given time unit.
|
Metadata.Builder |
maxIdle(long time)
Set max idle time assuming that the time unit is milliseconds.
|
Metadata.Builder |
maxIdle(long time,
TimeUnit unit)
Set max idle time with a given time unit.
|
Metadata.Builder |
merge(Metadata metadata)
Merges the given metadata information into the given builder.
|
Metadata.Builder |
version(EntryVersion version)
Set version.
|
Metadata.Builder lifespan(long time, TimeUnit unit)
time
- of lifespanunit
- unit of time for lifespan timeMetadata.Builder lifespan(long time)
time
- of lifespan, in millisecondsMetadata.Builder maxIdle(long time, TimeUnit unit)
time
- of max idleunit
- of max idle timeMetadata.Builder maxIdle(long time)
time
- of max idle, in millisecondsMetadata.Builder version(EntryVersion version)
version
- of the metadataMetadata build()
Metadata.Builder merge(Metadata metadata)
metadata
- to merge into this builderCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.