public class Session extends Object implements Serializable
Describes the session. Session information is required on ALL events.
| Constructor and Description |
|---|
Session() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Long |
getDuration()
The duration of the session.
|
String |
getId()
A unique identifier for the session
|
String |
getStartTimestamp()
The time the event started in ISO 8601 standard date time format.
|
String |
getStopTimestamp()
The time the event terminated in ISO 8601 standard date time format.
|
int |
hashCode() |
void |
setDuration(Long duration)
The duration of the session.
|
void |
setId(String id)
A unique identifier for the session
|
void |
setStartTimestamp(String startTimestamp)
The time the event started in ISO 8601 standard date time format.
|
void |
setStopTimestamp(String stopTimestamp)
The time the event terminated in ISO 8601 standard date time format.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Session |
withDuration(Long duration)
The duration of the session.
|
Session |
withId(String id)
A unique identifier for the session
|
Session |
withStartTimestamp(String startTimestamp)
The time the event started in ISO 8601 standard date time format.
|
Session |
withStopTimestamp(String stopTimestamp)
The time the event terminated in ISO 8601 standard date time format.
|
public String getId()
A unique identifier for the session
Constraints:
Length: 1 - 50
A unique identifier for the session
public void setId(String id)
A unique identifier for the session
Constraints:
Length: 1 - 50
id - A unique identifier for the session
public Session withId(String id)
A unique identifier for the session
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
id - A unique identifier for the session
public Long getDuration()
The duration of the session.
The duration of the session.
public void setDuration(Long duration)
The duration of the session.
duration - The duration of the session.
public Session withDuration(Long duration)
The duration of the session.
Returns a reference to this object so that method calls can be chained together.
duration - The duration of the session.
public String getStartTimestamp()
The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public void setStartTimestamp(String startTimestamp)
The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
startTimestamp - The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public Session withStartTimestamp(String startTimestamp)
The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
Returns a reference to this object so that method calls can be chained together.
startTimestamp - The time the event started in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public String getStopTimestamp()
The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public void setStopTimestamp(String stopTimestamp)
The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
stopTimestamp - The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public Session withStopTimestamp(String stopTimestamp)
The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
Returns a reference to this object so that method calls can be chained together.
stopTimestamp - The time the event terminated in ISO 8601 standard date time format. For example, 2014-06-30T19:07:47.885Z
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.