Class TimeoutIndicator
- java.lang.Object
-
- org.apache.sshd.common.session.helpers.TimeoutIndicator
-
public class TimeoutIndicator extends java.lang.Object
Used to convey information about an expired timeout
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeoutIndicator.TimeoutStatus
Timeout status.
-
Field Summary
Fields Modifier and Type Field Description private java.time.Duration
expiredValue
static TimeoutIndicator
NONE
private TimeoutIndicator.TimeoutStatus
status
private java.time.Duration
thresholdValue
-
Constructor Summary
Constructors Constructor Description TimeoutIndicator(TimeoutIndicator.TimeoutStatus status, java.time.Duration thresholdValue, java.time.Duration expiredValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
getExpiredValue()
TimeoutIndicator.TimeoutStatus
getStatus()
java.time.Duration
getThresholdValue()
java.lang.String
toString()
-
-
-
Field Detail
-
NONE
public static final TimeoutIndicator NONE
-
status
private final TimeoutIndicator.TimeoutStatus status
-
thresholdValue
private final java.time.Duration thresholdValue
-
expiredValue
private final java.time.Duration expiredValue
-
-
Constructor Detail
-
TimeoutIndicator
public TimeoutIndicator(TimeoutIndicator.TimeoutStatus status, java.time.Duration thresholdValue, java.time.Duration expiredValue)
- Parameters:
status
- The expired timeout type (if any)thresholdValue
- The configured timeout valueexpiredValue
- The actual value that cause the timeout
-
-
Method Detail
-
getStatus
public TimeoutIndicator.TimeoutStatus getStatus()
-
getThresholdValue
public java.time.Duration getThresholdValue()
-
getExpiredValue
public java.time.Duration getExpiredValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-