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, isEmpty
default 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 © 2008–2024 The Apache Software Foundation. All rights reserved.