@InterfaceAudience.Public public class TimeoutException extends Exception
TimeoutExceptionInjector, 
Serialized Form| 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, toStringpublic 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–2019 The Apache Software Foundation. All rights reserved.