Constructs a new CoapRequestFuture
Cancels this future such that all calls to get() will unblock and throw an exception
Blocks until the response is received
Blocks until the response is received but will unbllock if the timeout given is exceeded
Returns the state of this future
Called when a matching (by token) CoAP packet is received. This will store the received response and also wake up anyone blocking on the get() call to this future.
This is returned to the user when he does a finalizing call on a CoapRequestBuilder such as calling post(). The client will then creating the underlying request such that the messaging layer can match a future response to it. The client then sends the CoAP packet and then returns this so-called "future" as a handle to it which can be waited on via a call to get().