public static final class EventSender.Result
extends java.lang.Object
EventSender.sendEventData(EventDataKind, String, int, URI)
.Constructor and Description |
---|
Result(boolean success,
boolean mustShutDown,
java.util.Date timeFromServer)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getTimeFromServer()
Returns the parsed value of an HTTP Date header received from the remote server, if any.
|
boolean |
isMustShutDown()
Returns true if an unrecoverable error (such as an HTTP 401 error, implying that the
SDK key is invalid) means the SDK should permanently stop trying to send events
|
boolean |
isSuccess()
Returns true if the events were delivered.
|
public Result(boolean success, boolean mustShutDown, java.util.Date timeFromServer)
success
- true if the events were deliveredmustShutDown
- true if an unrecoverable error (such as an HTTP 401 error, implying that the
SDK key is invalid) means the SDK should permanently stop trying to send eventstimeFromServer
- the parsed value of an HTTP Date header received from the remote server,
if any; this is used to compensate for differences between the application's time and server timepublic boolean isSuccess()
public boolean isMustShutDown()
public java.util.Date getTimeFromServer()