@InterfaceAudience.Public public class TimeoutException extends Exception
TimeoutExceptionInjector
,
Serialized FormModifier and Type | Field and Description |
---|---|
private long |
end |
private long |
expected |
private String |
sourceName |
private long |
start |
Constructor and Description |
---|
TimeoutException(String sourceName,
long start,
long end,
long expected)
Exception indicating that an operation attempt has timed out
|
Modifier and Type | Method and Description |
---|---|
long |
getEnd() |
long |
getMaxAllowedOperationTime() |
String |
getSourceName() |
long |
getStart() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private final String sourceName
private final long start
private final long end
private final long expected
public TimeoutException(String sourceName, long start, long end, long expected)
start
- time the operation started (ms since epoch)end
- time the timeout was triggered (ms since epoch)expected
- expected amount of time for the operation to complete (ms)
(ideally, expected <= end-start)public long getStart()
public long getEnd()
public long getMaxAllowedOperationTime()
public String getSourceName()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.