Class ServerConfiguration.Builder

    • Method Detail

      • withServerID

        public ServerConfiguration.Builder withServerID​(int serverID)
        Configures the server ID.
        Parameters:
        serverID - The server ID to communicate with.
        Returns:
        this
      • withBeaconSizeInBytes

        public ServerConfiguration.Builder withBeaconSizeInBytes​(int beaconSizeInBytes)
        Configures the beacon size in Bytes.
        Parameters:
        beaconSizeInBytes - Maximum allowed beacon size in bytes.
        Returns:
        this
      • withMultiplicity

        public ServerConfiguration.Builder withMultiplicity​(int multiplicity)
        Configures the multiplicity factor.
        Parameters:
        multiplicity - Multiplicity factor.
        Returns:
        this
      • withSendIntervalInMilliseconds

        public ServerConfiguration.Builder withSendIntervalInMilliseconds​(int sendIntervalInMilliseconds)
        Configure the send interval in milliseconds.
        Parameters:
        sendIntervalInMilliseconds - Send interval in milliseconds
        Returns:
        this
      • withMaxSessionDurationInMilliseconds

        public ServerConfiguration.Builder withMaxSessionDurationInMilliseconds​(int maxSessionDurationInMillis)
        Configures the maximum duration of a session, after which the session gets split.
        Parameters:
        maxSessionDurationInMillis - the maximum duration of a session in milliseconds
        Returns:
        this
      • withMaxEventsPerSession

        public ServerConfiguration.Builder withMaxEventsPerSession​(int maxEventsPerSession)
        Configures the maximum number of events per session, after which the session gets split.
        Parameters:
        maxEventsPerSession - the maximum number of top level actions after which a session gets split.
        Returns:
        this
      • withSessionTimeoutInMilliseconds

        public ServerConfiguration.Builder withSessionTimeoutInMilliseconds​(int sessionTimeoutInMilliseconds)
        Configures the idle timeout after which a session gets split.
        Parameters:
        sessionTimeoutInMilliseconds - the idle timeout in milliseconds after which a session gets split.
        Returns:
        this
      • withVisitStoreVersion

        public ServerConfiguration.Builder withVisitStoreVersion​(int visitStoreVersion)
        Configures the version of the visit store that should be used.
        Parameters:
        visitStoreVersion - the version of the visit store to be used.
        Returns:
        this
      • withTrafficControlPercentage

        public ServerConfiguration.Builder withTrafficControlPercentage​(int trafficControlPercentage)
        Configures the traffic control/cost control percentage.

        This value is used as rate limit to limit the number of sessions being captured.

        Parameters:
        trafficControlPercentage - Percentage of sessions being captured.
        Returns:
        this