public interface SessionHeartbeatController extends PropertyResolver
| Modifier and Type | Interface and Description |
|---|---|
static class |
SessionHeartbeatController.HeartbeatType |
EMPTY| Modifier and Type | Method and Description |
|---|---|
default void |
disableSessionHeartbeat()
Disables the session heartbeat feature - Note: if heartbeat already in progress then it may be ignored.
|
default Duration |
getSessionHeartbeatInterval() |
default SessionHeartbeatController.HeartbeatType |
getSessionHeartbeatType() |
default void |
setSessionHeartbeat(SessionHeartbeatController.HeartbeatType type,
Duration interval)
Set the session heartbeat
|
default void |
setSessionHeartbeat(SessionHeartbeatController.HeartbeatType type,
TimeUnit unit,
long count) |
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getParentPropertyResolver, getProperties, getString, getStringProperty, isEmpty, isEmptydefault SessionHeartbeatController.HeartbeatType getSessionHeartbeatType()
default Duration getSessionHeartbeatInterval()
default void disableSessionHeartbeat()
default void setSessionHeartbeat(SessionHeartbeatController.HeartbeatType type, TimeUnit unit, long count)
default void setSessionHeartbeat(SessionHeartbeatController.HeartbeatType type, Duration interval)
type - The type of heartbeat to useinterval - The (never null) heartbeat interval - its milliseconds value is usedCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.