public static class ResponseAttributesImpl.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ResponseAttributes |
build()
Creates a new
ResponseAttributes instance with all the attributes set in this builder. |
ResponseAttributesImpl.Builder |
withApplicationId(java.lang.String applicationId)
Set application UUID to which this configuration belongs to.
|
ResponseAttributesImpl.Builder |
withCapture(boolean isCapture)
Sets whether capturing is enabled/disabled.
|
ResponseAttributesImpl.Builder |
withCaptureCrashes(boolean isCaptureCrashes)
Sets whether capturing of crashes is enabled/disabled.
|
ResponseAttributesImpl.Builder |
withCaptureErrors(boolean isCaptureErrors)
Sets whether capturing of errors is enabled/disabled.
|
ResponseAttributesImpl.Builder |
withMaxBeaconSizeInBytes(int maxBeaconSizeInBytes)
Sets the maximum beacon size in bytes
|
ResponseAttributesImpl.Builder |
withMaxEventsPerSession(int maxEventsPerSession)
Sets the maximum number of top level actions after which a session is to be split.
|
ResponseAttributesImpl.Builder |
withMaxSessionDurationInMilliseconds(int maxSessionDurationInMilliseconds)
Sets the maximum duration after which a session is to be split.
|
ResponseAttributesImpl.Builder |
withMultiplicity(int multiplicity)
Sets the multiplicity
|
ResponseAttributesImpl.Builder |
withSendIntervalInMilliseconds(int sendIntervalInMilliseconds)
Sets the send interval in milliseconds.
|
ResponseAttributesImpl.Builder |
withServerId(int serverId)
Sets the ID of the server to which data should be sent to.
|
ResponseAttributesImpl.Builder |
withSessionTimeoutInMilliseconds(int sessionTimeoutInMilliseconds)
Sets the idle timeout after which a session is to be split.
|
ResponseAttributesImpl.Builder |
withStatus(java.lang.String status)
Sets the response status received for a new session request.
|
ResponseAttributesImpl.Builder |
withTimestampInMilliseconds(long timestampInMilliseconds)
Sets the timestamp of the configuration sent by the sever.
|
ResponseAttributesImpl.Builder |
withVisitStoreVersion(int visitStoreVersion)
Sets the version of the visit store that should be used.
|
public ResponseAttributesImpl.Builder withMaxBeaconSizeInBytes(int maxBeaconSizeInBytes)
maxBeaconSizeInBytes - the maximum size in bytes when sending beacon data.thispublic ResponseAttributesImpl.Builder withMaxSessionDurationInMilliseconds(int maxSessionDurationInMilliseconds)
maxSessionDurationInMilliseconds - maximum duration of a session in milliseconds.thispublic ResponseAttributesImpl.Builder withMaxEventsPerSession(int maxEventsPerSession)
maxEventsPerSession - maximum number of top level actionsthispublic ResponseAttributesImpl.Builder withSessionTimeoutInMilliseconds(int sessionTimeoutInMilliseconds)
sessionTimeoutInMilliseconds - the maximum idle timeout of a session in millisecondsthispublic ResponseAttributesImpl.Builder withSendIntervalInMilliseconds(int sendIntervalInMilliseconds)
sendIntervalInMilliseconds - send interval in milliseconds.thispublic ResponseAttributesImpl.Builder withVisitStoreVersion(int visitStoreVersion)
visitStoreVersion - version of the visit storethispublic ResponseAttributesImpl.Builder withCapture(boolean isCapture)
isCapture - capture statethispublic ResponseAttributesImpl.Builder withCaptureCrashes(boolean isCaptureCrashes)
isCaptureCrashes - crash capture statethispublic ResponseAttributesImpl.Builder withCaptureErrors(boolean isCaptureErrors)
isCaptureErrors - error capture state.thispublic ResponseAttributesImpl.Builder withApplicationId(java.lang.String applicationId)
applicationId - application's UUIDthispublic ResponseAttributesImpl.Builder withMultiplicity(int multiplicity)
multiplicity - multiplicitythispublic ResponseAttributesImpl.Builder withServerId(int serverId)
serverId - the ID of the server to communicate with.thispublic ResponseAttributesImpl.Builder withStatus(java.lang.String status)
status - the status received for new session request.thispublic ResponseAttributesImpl.Builder withTimestampInMilliseconds(long timestampInMilliseconds)
timestampInMilliseconds - the timestamp of the configuration in milliseconds.thispublic ResponseAttributes build()
ResponseAttributes instance with all the attributes set in this builder.