public interface HasExpirationTimeout
Modifier and Type | Method and Description |
---|---|
Optional<Duration> |
getExpirationTimeout()
Gets the optional expiration timeout of the data.
|
void |
setExpirationTimeout(Duration expirationTimeout)
Sets the expiration timeout of the data held by the implementing object.
|
Optional<Duration> getExpirationTimeout()
Optional
is returned if no timeout is set, which means data is
not cleared when there are no connected users to the related topic (this
is the default).void setExpirationTimeout(Duration expirationTimeout)
expirationTimeout
has passed after
the last connection to the related topic is closed. If set to
null
, the timeout is cancelled.expirationTimeout
- the expiration timeoutCopyright © 2021. All rights reserved.