Interface ResponseFuture<T extends Response>
-
public interface ResponseFuture<T extends Response>
A future for services to wait for and get responses from.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get()
Block until the response is available, then return it.T
get(int timeout, TimeUnit units)
Block with timeout until the response is available, then return it.
-
-
-
Method Detail
-
get
T get() throws SmppException
Block until the response is available, then return it.- Returns:
- the response PDU, or null if no response is received within the response timeout configured in the resource adaptor
- Throws:
SmppException
-
get
T get(int timeout, TimeUnit units) throws SmppException
Block with timeout until the response is available, then return it.- Parameters:
timeout
- length of timeoutunits
- units for timeout value- Returns:
- the response PDU, or null if no response is received within the response timeout configured in the resource adaptor, or within the given timeout, whichever is less
- Throws:
SmppException
-
-