StatsManager.OperationStats.Event

public static interface StatsManager.OperationStats.Event

Counter for single operation to wrap Stopwatch

Public Method Summary

abstract void
end(boolean success)
Stops the stopwatch and stores stats for the operation in the related component.
abstract void
failure()
same as end(false).
abstract StatsManager.OperationStats.Event
start()
Starts the stopwatch.
abstract void
success()
Same as end(true).

Public Methods

public abstract void end (boolean success)

Stops the stopwatch and stores stats for the operation in the related component.

Parameters
success - results of operation that is stored

public abstract void failure ()

same as end(false).

public abstract StatsManager.OperationStats.Event start ()

Starts the stopwatch.

Returns
  • a reference to this object.

public abstract void success ()

Same as end(true).

Send feedback about...

Cloud Search
Cloud Search