mirror of
https://github.com/deavmi/doap
synced 2024-07-04 16:10:15 +02:00
RequestTimeoutException
- Added method `getFuture()` and `getTimeout()`
This commit is contained in:
parent
f78993ad22
commit
b240250611
|
@ -41,4 +41,27 @@ public final class RequestTimeoutException : CoapClientException
|
||||||
this.future = future;
|
this.future = future;
|
||||||
this.timeout = timeout;
|
this.timeout = timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the future request which timed
|
||||||
|
* out and cause dthis exception to throw
|
||||||
|
* in the first place
|
||||||
|
*
|
||||||
|
* Returns: the `CoapRequestFuture`
|
||||||
|
*/
|
||||||
|
public CoapRequestFuture getFuture()
|
||||||
|
{
|
||||||
|
return this.future;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the timeout period which
|
||||||
|
* was exceeded
|
||||||
|
*
|
||||||
|
* Returns: the `Duration`
|
||||||
|
*/
|
||||||
|
public Duration getTimeout()
|
||||||
|
{
|
||||||
|
return this.timeout;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user