public class CreateInfo extends CreatePolicy
Modifier and Type | Class and Description |
---|---|
static class |
CreateInfo.BackingStoreMode
Deprecated.
|
MaxDependencies
Constructor and Description |
---|
CreateInfo()
Deprecated.
Create a new CreateInfo object with default values.
|
CreateInfo(int timeoutMinutes)
Deprecated.
Create a new CreateInfo object with an object timeout value of timeoutMinutes.
|
CreateInfo(int timeoutMinutes,
boolean isAbsoluteTimeout,
ObjectPreemptionPriority preemptionPriority,
StateServerKey[] dependencies)
Deprecated.
Create a new CreateInfo object with the specified parameter values.
|
CreateInfo(int timeoutMinutes,
boolean isAbsoluteTimeout,
ObjectPreemptionPriority preemptionPriority,
StateServerKey[] dependencies,
boolean allowReplication)
Deprecated.
Create a new CreateInfo object with the specified parameter values.
|
Modifier and Type | Method and Description |
---|---|
int |
getBackingStoreIntervalSeconds()
Deprecated.
|
int |
getTimeoutMinutes()
Deprecated.
|
int |
getTimeoutSeconds()
Deprecated.
|
boolean |
isReplicationAllowed()
Deprecated.
|
void |
setBackingStoreIntervalSeconds(int _backingStoreIntervalSeconds)
Deprecated.
|
void |
setReplicationAllowed(boolean isReplicationAllowed)
Deprecated.
|
void |
setTimeoutMinutes(int minutes)
Deprecated.
|
void |
setTimeoutSeconds(int seconds)
Deprecated.
|
getAbsoluteTimeout, getAbsoluteTimeoutOnRead, getAllowRemoteAccess, getAllowReplication, getBackingStoreAsyncPolicy, getBackingStoreInterval, getBackingStoreMode, getDefaultCoherencyPolicy, getDependencies, getParents, getPreemptionPriority, getTimeout, isAbsoluteTimeout, isAllowReplication, setAbsoluteTimeout, setAbsoluteTimeoutOnRead, setAllowRemoteAccess, setAllowReplication, setBackingStoreAsyncPolicy, setBackingStoreInterval, setBackingStoreMode, setDefaultCoherencyPolicy, setDependencies, setParents, setPreemptionPriority, setTimeout
public CreateInfo()
Create a new CreateInfo object with default values.
By default, the number of minutes before object expiration (see
getTimeoutMinutes()
is set to 20, the timeout policy is set to sliding
expiration (see CreatePolicy.isAbsoluteTimeout()
), the object preemption policy (see
CreatePolicy.getPreemptionPriority()
) is set to
ObjectPreemptionPriority.NotRemovable
, no dependencies are created, and
replication is allowed (see isReplicationAllowed()
.
CreateInfo
instance with default values and then selectively
change those values with various instance methods.public CreateInfo(int timeoutMinutes)
CreateInfo()
.timeoutMinutes
- the number of minutes before object expiration (see getTimeoutMinutes()
).public CreateInfo(int timeoutMinutes, boolean isAbsoluteTimeout, ObjectPreemptionPriority preemptionPriority, StateServerKey[] dependencies)
Create a new CreateInfo object with the specified parameter values.
By default, replication is allowed (seeisReplicationAllowed()
.timeoutMinutes
- the number of minutes before object expiration (see getTimeoutMinutes()
).isAbsoluteTimeout
- if true
, object expiration uses an absolute expiration policy:
the object will expire at the end of the timeout period. If false
,
object expiration uses a sliding expiration: the object will expire after no
accesses for the timeout period.preemptionPriority
- an ObjectPreemptionPriority
indicating whether the object is preemptible
or not due to memory pressure.dependencies
- establishes the set of objects on which this object depends. If set, when any of
the dependencies are removed from the store, this object will also be removed
from the store. If there are no object dependencies, this value may be specified
as null
.public CreateInfo(int timeoutMinutes, boolean isAbsoluteTimeout, ObjectPreemptionPriority preemptionPriority, StateServerKey[] dependencies, boolean allowReplication)
timeoutMinutes
- the number of minutes before object expiration (see getTimeoutMinutes()
).isAbsoluteTimeout
- if true
, object expiration uses an absolute expiration policy:
the object will expire at the end of the timeout period. If false
,
object expiration uses a sliding expiration: the object will expire after no
accesses for the timeout period.preemptionPriority
- an ObjectPreemptionPriority
indicating whether the object is preemptible
or not due to memory pressure.dependencies
- establishes the set of objects on which this object depends. If set, when any of
the dependencies are removed from the store, this object will also be removed
from the store. If there are no object dependencies, this value may be specified
as null
.allowReplication
- if true
, the GeoServer feature may replicate the associated
object to a remote store. If replication should not be performed, this value
should be set to false
.public boolean isReplicationAllowed()
public void setReplicationAllowed(boolean isReplicationAllowed)
public int getTimeoutMinutes()
public void setTimeoutMinutes(int minutes)
public int getTimeoutSeconds()
public void setTimeoutSeconds(int seconds)
public int getBackingStoreIntervalSeconds()
public void setBackingStoreIntervalSeconds(int _backingStoreIntervalSeconds)