AttributesMutatorSetRegionTimeToLive Method |
Sets the timeToLive duration for the region itself.
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic int SetRegionTimeToLive(
int timeToLive
)
Public Function SetRegionTimeToLive (
timeToLive As Integer
) As Integer
public:
int SetRegionTimeToLive(
int timeToLive
)
member SetRegionTimeToLive :
timeToLive : int -> int
Parameters
- timeToLive
- Type: SystemInt32
the timeToLive for this region, in seconds, or 0 to disable time-to-live
Return Value
Type:
Int32the previous value
ExceptionsException | Condition |
---|
IllegalStateException |
if the new timeToLive changes region expiration from
disabled to enabled or enabled to disabled.
|
See Also