Package io.quarkus.analytics.dto.config
Class Identity
- java.lang.Object
-
- io.quarkus.analytics.dto.config.Identity
-
- All Implemented Interfaces:
SegmentContext,Serializable
public class Identity extends Object implements Serializable, SegmentContext
Identity of the user at the upstream collection tool.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdentity.IdentityBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Identity.IdentityBuilderbuilder()Map<String,Object>getContext()The context of the user.InstantgetTimestamp()StringgetUserId()The UUID of the user.voidsetContext(Map<String,Object> context)voidsetTimestamp(Instant timestamp)voidsetUserId(String userId)
-
-
-
Method Detail
-
builder
public static Identity.IdentityBuilder builder()
-
getUserId
public String getUserId()
The UUID of the user.- Returns:
-
setUserId
public void setUserId(String userId)
-
getContext
public Map<String,Object> getContext()
The context of the user. See: AnalyticsService.createContextMap() (package friendly) for details.- Specified by:
getContextin interfaceSegmentContext- Returns:
-
getTimestamp
public Instant getTimestamp()
-
setTimestamp
public void setTimestamp(Instant timestamp)
-
-