Class ResponseAttributesImpl.Builder

  • Enclosing class:
    ResponseAttributesImpl

    public static class ResponseAttributesImpl.Builder
    extends java.lang.Object
    • Method Detail

      • withMaxBeaconSizeInBytes

        public ResponseAttributesImpl.Builder withMaxBeaconSizeInBytes​(int maxBeaconSizeInBytes)
        Sets the maximum beacon size in bytes
        Parameters:
        maxBeaconSizeInBytes - the maximum size in bytes when sending beacon data.
        Returns:
        this
      • withMaxSessionDurationInMilliseconds

        public ResponseAttributesImpl.Builder withMaxSessionDurationInMilliseconds​(int maxSessionDurationInMilliseconds)
        Sets the maximum duration after which a session is to be split.
        Parameters:
        maxSessionDurationInMilliseconds - maximum duration of a session in milliseconds.
        Returns:
        this
      • withMaxEventsPerSession

        public ResponseAttributesImpl.Builder withMaxEventsPerSession​(int maxEventsPerSession)
        Sets the maximum number of top level actions after which a session is to be split.
        Parameters:
        maxEventsPerSession - maximum number of top level actions
        Returns:
        this
      • withSessionTimeoutInMilliseconds

        public ResponseAttributesImpl.Builder withSessionTimeoutInMilliseconds​(int sessionTimeoutInMilliseconds)
        Sets the idle timeout after which a session is to be split.
        Parameters:
        sessionTimeoutInMilliseconds - the maximum idle timeout of a session in milliseconds
        Returns:
        this
      • withSendIntervalInMilliseconds

        public ResponseAttributesImpl.Builder withSendIntervalInMilliseconds​(int sendIntervalInMilliseconds)
        Sets the send interval in milliseconds.
        Parameters:
        sendIntervalInMilliseconds - send interval in milliseconds.
        Returns:
        this
      • withVisitStoreVersion

        public ResponseAttributesImpl.Builder withVisitStoreVersion​(int visitStoreVersion)
        Sets the version of the visit store that should be used.
        Parameters:
        visitStoreVersion - version of the visit store
        Returns:
        this
      • withCapture

        public ResponseAttributesImpl.Builder withCapture​(boolean isCapture)
        Sets whether capturing is enabled/disabled.
        Parameters:
        isCapture - capture state
        Returns:
        this
      • withCaptureCrashes

        public ResponseAttributesImpl.Builder withCaptureCrashes​(boolean isCaptureCrashes)
        Sets whether capturing of crashes is enabled/disabled.
        Parameters:
        isCaptureCrashes - crash capture state
        Returns:
        this
      • withCaptureErrors

        public ResponseAttributesImpl.Builder withCaptureErrors​(boolean isCaptureErrors)
        Sets whether capturing of errors is enabled/disabled.
        Parameters:
        isCaptureErrors - error capture state.
        Returns:
        this
      • withTrafficControlPercentage

        public ResponseAttributesImpl.Builder withTrafficControlPercentage​(int trafficControlPercentage)
        Sets a session sampling percentage (known as Cost Control).
        Parameters:
        trafficControlPercentage - Percentage of sessions to capture
        Returns:
        this
      • withApplicationId

        public ResponseAttributesImpl.Builder withApplicationId​(java.lang.String applicationId)
        Set application UUID to which this configuration belongs to.
        Parameters:
        applicationId - application's UUID
        Returns:
        this
      • withMultiplicity

        public ResponseAttributesImpl.Builder withMultiplicity​(int multiplicity)
        Sets the multiplicity
        Parameters:
        multiplicity - multiplicity
        Returns:
        this
      • withServerId

        public ResponseAttributesImpl.Builder withServerId​(int serverId)
        Sets the ID of the server to which data should be sent to.
        Parameters:
        serverId - the ID of the server to communicate with.
        Returns:
        this
      • withStatus

        public ResponseAttributesImpl.Builder withStatus​(java.lang.String status)
        Sets the response status received for a new session request.
        Parameters:
        status - the status received for new session request.
        Returns:
        this
      • withTimestampInMilliseconds

        public ResponseAttributesImpl.Builder withTimestampInMilliseconds​(long timestampInMilliseconds)
        Sets the timestamp of the configuration sent by the sever.
        Parameters:
        timestampInMilliseconds - the timestamp of the configuration in milliseconds.
        Returns:
        this