Top Description Methods
org.terracotta.statistics.observer

public Interface OperationObserver<T extends java.lang.Enum<T>>

Known Direct Subinterfaces
org.terracotta.statistics.OperationStatistic
Type Parameters
<T>
Enum type representing the possible operations 'results'

Operation observers track the occurrence of processes which take a finite time and can potential terminate in different ways.

Operations must have an associated enum type that represents their possible outcomes. An example of such an enum type would be:

enum PlaneFlight {
  LAND, CRASH;
}

Method Summary

Modifier and TypeMethod and Description
public void
begin()

Called immediately prior to the operation beginning.

public void
end(T
the operation result
result
)

Called immediately after the operation completes with no interesting parameters, and with the same thread the called {begin()} before.

Method Detail

beginback to summary
public void begin()

Called immediately prior to the operation beginning.

endback to summary
public void end(T result)

Called immediately after the operation completes with no interesting parameters, and with the same thread the called {begin()} before.

Parameters
result:T

the operation result