public class

SetSchemaStats.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.localstorage.stats.SetSchemaStats.Builder

Overview

Builder for SetSchemaStats.

Summary

Constructors
publicBuilder(java.lang.String packageName, java.lang.String database)

Constructor for the SetSchemaStats.Builder.

Methods
public SetSchemaStatsbuild()

Builds a new SetSchemaStats from the SetSchemaStats.Builder.

public SetSchemaStats.BuildersetBackwardsIncompatibleTypeChangeCount(int backwardsIncompatibleTypeChangeCount)

Sets number of backwards-incompatible type changes.

public SetSchemaStats.BuildersetCompatibleTypeChangeCount(int compatibleTypeChangeCount)

Sets number of compatible type changes.

public SetSchemaStats.BuildersetConvertToResponseLatencyMillis(int convertToResponseLatencyMillis)

Sets latency for converting to SetSchemaResponseInternal object in milliseconds.

public SetSchemaStats.BuildersetDeletedTypeCount(int deletedTypeCount)

Sets number of deleted types.

public SetSchemaStats.BuildersetDispatchChangeNotificationsLatencyMillis(int dispatchChangeNotificationsLatencyMillis)

Sets latency for the dispatch change notification action in milliseconds.

public SetSchemaStats.BuildersetExecutorAcquisitionLatencyMillis(int executorAcquisitionLatencyMillis)

Sets total latency for the SetSchema in native action in milliseconds.

public SetSchemaStats.BuildersetGetObserverLatencyMillis(int getObserverLatencyMillis)

Sets latency for the registered observer action in milliseconds.

public SetSchemaStats.BuildersetGetOldSchemaLatencyMillis(int getOldSchemaLatencyMillis)

Sets latency for the old schema action in milliseconds.

public SetSchemaStats.BuildersetIndexIncompatibleTypeChangeCount(int indexIncompatibleTypeChangeCount)

Sets number of index-incompatible type changes.

public SetSchemaStats.BuildersetIsPackageObserved(boolean isPackageObserved)

Sets whether this package is observed and we should prepare change notifications.

public SetSchemaStats.BuildersetJavaLockAcquisitionLatencyMillis(int javaLockAcquisitionLatencyMillis)

Sets latency for waiting to acquire the lock during Java function calls in milliseconds.

public SetSchemaStats.BuildersetNewTypeCount(int newTypeCount)

Sets number of new types.

public SetSchemaStats.BuildersetOptimizeLatencyMillis(int optimizeLatencyMillis)

Sets latency for the optimization action in milliseconds.

public SetSchemaStats.BuildersetPreparingChangeNotificationLatencyMillis(int preparingChangeNotificationLatencyMillis)

Sets latency for the preparing change notification action in milliseconds.

public SetSchemaStats.BuildersetRebuildFromBundleLatencyMillis(int rebuildFromBundleLatencyMillis)

Sets latency for the rebuild schema object from bundle action in milliseconds.

public SetSchemaStats.BuildersetRewriteSchemaLatencyMillis(int rewriteSchemaLatencyMillis)

Sets latency for the rewrite the schema proto action in milliseconds.

public SetSchemaStats.BuildersetSchemaMigrationCallType(int schemaMigrationCallType)

Sets the type indicate how this set schema call relative to schema migration cases

public SetSchemaStats.BuildersetStatusCode(int statusCode)

Sets the status of the SetSchema action.

public SetSchemaStats.BuildersetTotalLatencyMillis(int totalLatencyMillis)

Sets total latency for the SetSchema action in milliseconds.

public SetSchemaStats.BuildersetTotalNativeLatencyMillis(int totalNativeLatencyMillis)

Sets total latency for a single set schema in native action in milliseconds.

public SetSchemaStats.BuildersetVerifyIncomingCallLatencyMillis(int verifyIncomingCallLatencyMillis)

Sets total latency for the SetSchema in native action in milliseconds.

public SetSchemaStats.BuildersetVisibilitySettingLatencyMillis(int visibilitySettingLatencyMillis)

Sets latency for the apply visibility settings action in milliseconds.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.String packageName, java.lang.String database)

Constructor for the SetSchemaStats.Builder.

Methods

public SetSchemaStats.Builder setStatusCode(int statusCode)

Sets the status of the SetSchema action.

public SetSchemaStats.Builder setTotalLatencyMillis(int totalLatencyMillis)

Sets total latency for the SetSchema action in milliseconds.

public SetSchemaStats.Builder setNewTypeCount(int newTypeCount)

Sets number of new types.

public SetSchemaStats.Builder setDeletedTypeCount(int deletedTypeCount)

Sets number of deleted types.

public SetSchemaStats.Builder setCompatibleTypeChangeCount(int compatibleTypeChangeCount)

Sets number of compatible type changes.

public SetSchemaStats.Builder setIndexIncompatibleTypeChangeCount(int indexIncompatibleTypeChangeCount)

Sets number of index-incompatible type changes.

public SetSchemaStats.Builder setBackwardsIncompatibleTypeChangeCount(int backwardsIncompatibleTypeChangeCount)

Sets number of backwards-incompatible type changes.

public SetSchemaStats.Builder setVerifyIncomingCallLatencyMillis(int verifyIncomingCallLatencyMillis)

Sets total latency for the SetSchema in native action in milliseconds.

public SetSchemaStats.Builder setExecutorAcquisitionLatencyMillis(int executorAcquisitionLatencyMillis)

Sets total latency for the SetSchema in native action in milliseconds.

public SetSchemaStats.Builder setRebuildFromBundleLatencyMillis(int rebuildFromBundleLatencyMillis)

Sets latency for the rebuild schema object from bundle action in milliseconds.

public SetSchemaStats.Builder setJavaLockAcquisitionLatencyMillis(int javaLockAcquisitionLatencyMillis)

Sets latency for waiting to acquire the lock during Java function calls in milliseconds.

public SetSchemaStats.Builder setRewriteSchemaLatencyMillis(int rewriteSchemaLatencyMillis)

Sets latency for the rewrite the schema proto action in milliseconds.

public SetSchemaStats.Builder setTotalNativeLatencyMillis(int totalNativeLatencyMillis)

Sets total latency for a single set schema in native action in milliseconds.

public SetSchemaStats.Builder setVisibilitySettingLatencyMillis(int visibilitySettingLatencyMillis)

Sets latency for the apply visibility settings action in milliseconds.

public SetSchemaStats.Builder setConvertToResponseLatencyMillis(int convertToResponseLatencyMillis)

Sets latency for converting to SetSchemaResponseInternal object in milliseconds.

public SetSchemaStats.Builder setDispatchChangeNotificationsLatencyMillis(int dispatchChangeNotificationsLatencyMillis)

Sets latency for the dispatch change notification action in milliseconds.

public SetSchemaStats.Builder setOptimizeLatencyMillis(int optimizeLatencyMillis)

Sets latency for the optimization action in milliseconds.

public SetSchemaStats.Builder setIsPackageObserved(boolean isPackageObserved)

Sets whether this package is observed and we should prepare change notifications.

public SetSchemaStats.Builder setGetOldSchemaLatencyMillis(int getOldSchemaLatencyMillis)

Sets latency for the old schema action in milliseconds.

public SetSchemaStats.Builder setGetObserverLatencyMillis(int getObserverLatencyMillis)

Sets latency for the registered observer action in milliseconds.

public SetSchemaStats.Builder setPreparingChangeNotificationLatencyMillis(int preparingChangeNotificationLatencyMillis)

Sets latency for the preparing change notification action in milliseconds.

public SetSchemaStats.Builder setSchemaMigrationCallType(int schemaMigrationCallType)

Sets the type indicate how this set schema call relative to schema migration cases

public SetSchemaStats build()

Builds a new SetSchemaStats from the SetSchemaStats.Builder.