BatchSize - DataDog/dd-sdk-android GitHub Wiki

enum BatchSize : Enum<BatchSize>

Defines the policy when batching data together. Smaller batches will means smaller but more network requests, whereas larger batches will mean fewer but larger network requests.

Entries

SMALL

SMALL

Prefer small batches.

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

MEDIUM

MEDIUM

Prefer medium sized batches.

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

LARGE

LARGE

Prefer large batches.

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

Functions

valueOf

fun valueOf(value: String): BatchSize

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
IllegalArgumentException if this enum type has no constant with the specified name

values

fun values(): Array<BatchSize>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.