Package org.apache.sshd.common.session
Interface SessionHeartbeatController
-
- All Superinterfaces:
PropertyResolver
- All Known Subinterfaces:
SessionContext
public interface SessionHeartbeatController extends PropertyResolver
- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSessionHeartbeatController.HeartbeatType
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.PropertyResolver
EMPTY
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voiddisableSessionHeartbeat()Disables the session heartbeat feature - Note: if heartbeat already in progress then it may be ignored.default DurationgetSessionHeartbeatInterval()default SessionHeartbeatController.HeartbeatTypegetSessionHeartbeatType()default voidsetSessionHeartbeat(SessionHeartbeatController.HeartbeatType type, Duration interval)Set the session heartbeatdefault voidsetSessionHeartbeat(SessionHeartbeatController.HeartbeatType type, TimeUnit unit, long count)-
Methods inherited from interface org.apache.sshd.common.PropertyResolver
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getParentPropertyResolver, getProperties, getString, getStringProperty, isEmpty
-
-
-
-
Method Detail
-
getSessionHeartbeatType
default SessionHeartbeatController.HeartbeatType getSessionHeartbeatType()
-
getSessionHeartbeatInterval
default Duration getSessionHeartbeatInterval()
-
disableSessionHeartbeat
default void disableSessionHeartbeat()
Disables the session heartbeat feature - Note: if heartbeat already in progress then it may be ignored.
-
setSessionHeartbeat
default void setSessionHeartbeat(SessionHeartbeatController.HeartbeatType type, TimeUnit unit, long count)
-
setSessionHeartbeat
default void setSessionHeartbeat(SessionHeartbeatController.HeartbeatType type, Duration interval)
Set the session heartbeat- Parameters:
type- The type ofheartbeatto useinterval- The (nevernull) heartbeat interval - its milliseconds value is used
-
-