Package com.segment.analytics.messages
Class TrackMessage.Builder
java.lang.Object
com.segment.analytics.messages.MessageBuilder<TrackMessage,TrackMessage.Builder>
com.segment.analytics.messages.TrackMessage.Builder
- Enclosing class:
- TrackMessage
public static class TrackMessage.Builder extends MessageBuilder<TrackMessage,TrackMessage.Builder>
Fluent API for creating
TrackMessage
instances.-
Method Summary
Modifier and Type Method Description TrackMessage.Builder
properties(Map<String,?> properties)
Set a map of information that describe the event.protected TrackMessage
realBuild(Message.Type type, String messageId, Date timestamp, Map<String,?> context, String anonymousId, String userId, Map<String,Object> integrations)
Methods inherited from class com.segment.analytics.messages.MessageBuilder
anonymousId, anonymousId, build, context, enableIntegration, integrationOptions, messageId, messageId, timestamp, type, userId
-
Method Details
-
properties
Set a map of information that describe the event. These can be anything you want.- See Also:
- Properties
-
realBuild
protected TrackMessage realBuild(Message.Type type, String messageId, Date timestamp, Map<String,?> context, String anonymousId, String userId, Map<String,Object> integrations)- Specified by:
realBuild
in classMessageBuilder<TrackMessage,TrackMessage.Builder>
-