public class SinglePingResponseCallback extends Object implements PingResponseCallback
SinglePingResponseCallback class.
Constructor and Description |
---|
SinglePingResponseCallback(String phoneNumber)
Constructor for SinglePingResponseCallback.
|
Modifier and Type | Method and Description |
---|---|
Long |
getResponseTime()
Getter for the field
responseTime . |
void |
handleError(PingRequest request,
org.smslib.Message pr,
Throwable t)
handleError
|
void |
handleResponse(PingRequest request,
org.smslib.Message packet)
handleResponse
|
void |
handleTimeout(PingRequest request,
org.smslib.Message packet)
handleTimeout
|
void |
info(String msg)
info
|
void |
info(String msg,
Throwable t)
info
|
void |
waitFor()
waitFor
|
void |
waitFor(long timeout)
waitFor
|
public void handleResponse(PingRequest request, org.smslib.Message packet)
handleResponse
handleResponse
in interface PingResponseCallback
request
- a PingRequest
object.packet
- a Message
object.public void handleTimeout(PingRequest request, org.smslib.Message packet)
handleTimeout
handleTimeout
in interface PingResponseCallback
request
- a PingRequest
object.packet
- a Message
object.public void handleError(PingRequest request, org.smslib.Message pr, Throwable t)
handleError
handleError
in interface PingResponseCallback
request
- a PingRequest
object.pr
- a Message
object.t
- a Throwable
object.public void waitFor(long timeout) throws InterruptedException
waitFor
timeout
- a long.InterruptedException
- if any.public void waitFor() throws InterruptedException
waitFor
InterruptedException
- if any.public Long getResponseTime()
Getter for the field responseTime
.
Long
object.Copyright © 2015. All Rights Reserved.