public class Hit
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Hit.HitParam
Enum with different hit parameter keys
|
static class |
Hit.HitType
Enum with different hit types
|
Constructor and Description |
---|
Hit(java.lang.String url)
Default constructor
|
Hit(java.lang.String url,
java.util.Date date,
int retry,
boolean isOffline,
int id)
Constructor with parameters
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Get the hit date
|
Hit.HitType |
getHitType()
Get the hit type
|
int |
getRetry()
Get the sending retry count
|
java.lang.String |
getUrl()
Get the hit
|
boolean |
isOffline()
Get the "isOffline" property value
|
public Hit(java.lang.String url)
url
- the complete hitpublic Hit(java.lang.String url, java.util.Date date, int retry, boolean isOffline, int id)
url
- the complete hitdate
- hit building dateretry
- sending retry countisOffline
- true if hit come from storageid
- offline id entrypublic java.lang.String getUrl()
public java.util.Date getDate()
public int getRetry()
public boolean isOffline()
public Hit.HitType getHitType()