public static final class ServerConfiguration.Builder
extends java.lang.Object
ServerConfiguration.| Constructor and Description |
|---|
Builder(ResponseAttributes responseAttributes)
Construct and initialize fields from given
ResponseAttributes. |
Builder(ServerConfiguration serverConfiguration)
Construct and initialize fields from given
ServerConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
ServerConfiguration |
build()
Build the
ServerConfiguration and return the new instance. |
ServerConfiguration.Builder |
withBeaconSizeInBytes(int beaconSizeInBytes)
Configures the beacon size in Bytes.
|
ServerConfiguration.Builder |
withCapture(boolean captureState)
Enables/disables capturing by setting
ServerConfiguration.isCaptureEnabled() to the corresponding value. |
ServerConfiguration.Builder |
withCrashReporting(boolean crashReportingState)
Enables/disables crash reporting by setting
ServerConfiguration.isCrashReportingEnabled() to the corresponding value. |
ServerConfiguration.Builder |
withErrorReporting(boolean errorReportingState)
Enables/disables error reporting by setting
ServerConfiguration.isErrorReportingEnabled() to the corresponding value. |
ServerConfiguration.Builder |
withMaxEventsPerSession(int maxEventsPerSession)
Configures the maximum number of events per session, after which the session gets split.
|
ServerConfiguration.Builder |
withMaxSessionDurationInMilliseconds(int maxSessionDurationInMillis)
Configures the maximum duration of a session, after which the session gets split.
|
ServerConfiguration.Builder |
withMultiplicity(int multiplicity)
Configures the multiplicity factor.
|
ServerConfiguration.Builder |
withSendIntervalInMilliseconds(int sendIntervalInMilliseconds)
Configure the send interval in milliseconds.
|
ServerConfiguration.Builder |
withServerID(int serverID)
Configures the server ID.
|
ServerConfiguration.Builder |
withSessionTimeoutInMilliseconds(int sessionTimeoutInMilliseconds)
Configures the idle timeout after which a session gets split.
|
ServerConfiguration.Builder |
withTrafficControlPercentage(int trafficControlPercentage)
Configures the traffic control/cost control percentage.
|
ServerConfiguration.Builder |
withVisitStoreVersion(int visitStoreVersion)
Configures the version of the visit store that should be used.
|
public Builder(ResponseAttributes responseAttributes)
ResponseAttributes.responseAttributes - the attributes received as a response from the server.public Builder(ServerConfiguration serverConfiguration)
ServerConfiguration.public ServerConfiguration.Builder withCapture(boolean captureState)
ServerConfiguration.isCaptureEnabled() to the corresponding value.thispublic ServerConfiguration.Builder withCrashReporting(boolean crashReportingState)
ServerConfiguration.isCrashReportingEnabled() to the corresponding value.thispublic ServerConfiguration.Builder withErrorReporting(boolean errorReportingState)
ServerConfiguration.isErrorReportingEnabled() to the corresponding value.thispublic ServerConfiguration.Builder withServerID(int serverID)
serverID - The server ID to communicate with.thispublic ServerConfiguration.Builder withBeaconSizeInBytes(int beaconSizeInBytes)
beaconSizeInBytes - Maximum allowed beacon size in bytes.thispublic ServerConfiguration.Builder withMultiplicity(int multiplicity)
multiplicity - Multiplicity factor.thispublic ServerConfiguration.Builder withSendIntervalInMilliseconds(int sendIntervalInMilliseconds)
sendIntervalInMilliseconds - Send interval in millisecondsthispublic ServerConfiguration.Builder withMaxSessionDurationInMilliseconds(int maxSessionDurationInMillis)
maxSessionDurationInMillis - the maximum duration of a session in millisecondsthispublic ServerConfiguration.Builder withMaxEventsPerSession(int maxEventsPerSession)
maxEventsPerSession - the maximum number of top level actions after which a session gets split.thispublic ServerConfiguration.Builder withSessionTimeoutInMilliseconds(int sessionTimeoutInMilliseconds)
sessionTimeoutInMilliseconds - the idle timeout in milliseconds after which a session gets split.thispublic ServerConfiguration.Builder withVisitStoreVersion(int visitStoreVersion)
visitStoreVersion - the version of the visit store to be used.thispublic ServerConfiguration.Builder withTrafficControlPercentage(int trafficControlPercentage)
This value is used as rate limit to limit the number of sessions being captured.
trafficControlPercentage - Percentage of sessions being captured.thispublic ServerConfiguration build()
ServerConfiguration and return the new instance.ServerConfiguration instance.