Package com.dynatrace.openkit.protocol
Class ResponseAttributesImpl.Builder
- java.lang.Object
-
- com.dynatrace.openkit.protocol.ResponseAttributesImpl.Builder
-
- Enclosing class:
- ResponseAttributesImpl
public static class ResponseAttributesImpl.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseAttributesbuild()Creates a newResponseAttributesinstance with all the attributes set in this builder.ResponseAttributesImpl.BuilderwithApplicationId(java.lang.String applicationId)Set application UUID to which this configuration belongs to.ResponseAttributesImpl.BuilderwithCapture(boolean isCapture)Sets whether capturing is enabled/disabled.ResponseAttributesImpl.BuilderwithCaptureCrashes(boolean isCaptureCrashes)Sets whether capturing of crashes is enabled/disabled.ResponseAttributesImpl.BuilderwithCaptureErrors(boolean isCaptureErrors)Sets whether capturing of errors is enabled/disabled.ResponseAttributesImpl.BuilderwithMaxBeaconSizeInBytes(int maxBeaconSizeInBytes)Sets the maximum beacon size in bytesResponseAttributesImpl.BuilderwithMaxEventsPerSession(int maxEventsPerSession)Sets the maximum number of top level actions after which a session is to be split.ResponseAttributesImpl.BuilderwithMaxSessionDurationInMilliseconds(int maxSessionDurationInMilliseconds)Sets the maximum duration after which a session is to be split.ResponseAttributesImpl.BuilderwithMultiplicity(int multiplicity)Sets the multiplicityResponseAttributesImpl.BuilderwithSendIntervalInMilliseconds(int sendIntervalInMilliseconds)Sets the send interval in milliseconds.ResponseAttributesImpl.BuilderwithServerId(int serverId)Sets the ID of the server to which data should be sent to.ResponseAttributesImpl.BuilderwithSessionTimeoutInMilliseconds(int sessionTimeoutInMilliseconds)Sets the idle timeout after which a session is to be split.ResponseAttributesImpl.BuilderwithStatus(java.lang.String status)Sets the response status received for a new session request.ResponseAttributesImpl.BuilderwithTimestampInMilliseconds(long timestampInMilliseconds)Sets the timestamp of the configuration sent by the sever.ResponseAttributesImpl.BuilderwithTrafficControlPercentage(int trafficControlPercentage)Sets a session sampling percentage (known as Cost Control).ResponseAttributesImpl.BuilderwithVisitStoreVersion(int visitStoreVersion)Sets the version of the visit store that should be used.
-
-
-
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
-
build
public ResponseAttributes build()
Creates a newResponseAttributesinstance with all the attributes set in this builder.
-
-