public abstract class AbstractOpenKitBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
OpenKit |
build()
Builds a new
OpenKit instance |
protected static long |
deviceIdFromString(java.lang.String deviceId) |
AbstractOpenKitBuilder |
enableVerbose()
Enables verbose mode.
|
AbstractOpenKitBuilder |
withApplicationVersion(java.lang.String applicationVersion)
Defines the version of the application.
|
AbstractOpenKitBuilder |
withBeaconCacheLowerMemoryBoundary(long lowerMemoryBoundaryInBytes)
Sets the lower memory boundary of the beacon cache.
|
AbstractOpenKitBuilder |
withBeaconCacheMaxRecordAge(long maxRecordAgeInMilliseconds)
Sets the maximum beacon record age of beacon data in cache.
|
AbstractOpenKitBuilder |
withBeaconCacheUpperMemoryBoundary(long upperMemoryBoundaryInBytes)
Sets the upper memory boundary of the beacon cache.
|
AbstractOpenKitBuilder |
withCrashReportingLevel(CrashReportingLevel crashReportLevel)
Sets the flag if crash reporting is enabled
|
AbstractOpenKitBuilder |
withDataCollectionLevel(DataCollectionLevel dataCollectionLevel)
Sets the data collection level.
|
AbstractOpenKitBuilder |
withLogger(Logger logger)
Sets the logger.
|
AbstractOpenKitBuilder |
withManufacturer(java.lang.String manufacturer)
Sets the manufacturer information.
|
AbstractOpenKitBuilder |
withModelID(java.lang.String modelID)
Sets the model id.
|
AbstractOpenKitBuilder |
withOperatingSystem(java.lang.String operatingSystem)
Sets the operating system information.
|
AbstractOpenKitBuilder |
withTrustManager(SSLTrustManager trustManager)
Sets the trust manager.
|
protected static long deviceIdFromString(java.lang.String deviceId)
public AbstractOpenKitBuilder enableVerbose()
withLogger debug and info log output
depends on the values returned by isDebugEnabled and isInfoEnabled.thispublic AbstractOpenKitBuilder withLogger(Logger logger)
enableVerbose.logger - the loggerthispublic AbstractOpenKitBuilder withApplicationVersion(java.lang.String applicationVersion)
applicationVersion - the application versionthispublic AbstractOpenKitBuilder withTrustManager(SSLTrustManager trustManager)
SSLStrictTrustmanager by default-trustManager - trust manager implementationthispublic AbstractOpenKitBuilder withOperatingSystem(java.lang.String operatingSystem)
operatingSystem - the operating systemthispublic AbstractOpenKitBuilder withManufacturer(java.lang.String manufacturer)
manufacturer - the manufacturerthispublic AbstractOpenKitBuilder withModelID(java.lang.String modelID)
modelID - the model idthispublic AbstractOpenKitBuilder withBeaconCacheMaxRecordAge(long maxRecordAgeInMilliseconds)
maxRecordAgeInMilliseconds - The maximum beacon record age in milliseconds, or unbounded if negative.thispublic AbstractOpenKitBuilder withBeaconCacheLowerMemoryBoundary(long lowerMemoryBoundaryInBytes)
When this is set to a positive value the memory based eviction strategy clears the collected data, until the data size in the cache falls below the configured limit.
lowerMemoryBoundaryInBytes - The lower boundary of the beacon cache or negative if unlimited.thispublic AbstractOpenKitBuilder withBeaconCacheUpperMemoryBoundary(long upperMemoryBoundaryInBytes)
When this is set to a positive value the memory based eviction strategy starts to clear data from the beacon cache when the cache size exceeds this setting.
upperMemoryBoundaryInBytes - The lower boundary of the beacon cache or negative if unlimited.thispublic AbstractOpenKitBuilder withDataCollectionLevel(DataCollectionLevel dataCollectionLevel)
Depending on the chosen level the amount and granularity of data sent is controlled. OFF (0) - no data collected PERFORMANCE (1) - only performance related data is collected USER_BEHAVIOR (2) - all available RUM data including performance related data is collected default value is OFF(0)
dataCollectionLevel - Data collection level to apply.thispublic AbstractOpenKitBuilder withCrashReportingLevel(CrashReportingLevel crashReportLevel)
default value is false
crashReportLevel - Flag if crash reporting is enabledthispublic OpenKit build()
OpenKit instanceOpenKit instance