public static class CacheDirectiveInfo.Builder
extends java.lang.Object
| Constructor | Description |
|---|---|
Builder() |
Creates an empty builder.
|
Builder(CacheDirectiveInfo directive) |
Creates a builder with all elements set to the same values as the
given CacheDirectiveInfo.
|
| Modifier and Type | Method | Description |
|---|---|---|
CacheDirectiveInfo |
build() |
Builds a new CacheDirectiveInfo populated with the set properties.
|
CacheDirectiveInfo.Builder |
setExpiration(CacheDirectiveInfo.Expiration expiration) |
Sets when the CacheDirective should expire.
|
CacheDirectiveInfo.Builder |
setId(java.lang.Long id) |
Sets the id used in this request.
|
CacheDirectiveInfo.Builder |
setPath(org.apache.hadoop.fs.Path path) |
Sets the path used in this request.
|
CacheDirectiveInfo.Builder |
setPool(java.lang.String pool) |
Sets the pool used in this request.
|
CacheDirectiveInfo.Builder |
setReplication(java.lang.Short replication) |
Sets the replication used in this request.
|
public Builder()
public Builder(CacheDirectiveInfo directive)
public CacheDirectiveInfo build()
public CacheDirectiveInfo.Builder setId(java.lang.Long id)
id - The id used in this request.public CacheDirectiveInfo.Builder setPath(org.apache.hadoop.fs.Path path)
path - The path used in this request.public CacheDirectiveInfo.Builder setReplication(java.lang.Short replication)
replication - The replication used in this request.public CacheDirectiveInfo.Builder setPool(java.lang.String pool)
pool - The pool used in this request.public CacheDirectiveInfo.Builder setExpiration(CacheDirectiveInfo.Expiration expiration)
CacheDirectiveInfo.Expiration can specify either an absolute or
relative expiration time.expiration - when this CacheDirective should expireCopyright © 2008–2025 Apache Software Foundation. All rights reserved.