Interface OperationObserver<T extends java.lang.Enum<T>>
-
- Type Parameters:
T- Enum type representing the possible operations 'results'
- All Known Subinterfaces:
OperationStatistic<T>
- All Known Implementing Classes:
AbstractOperationStatistic,GeneralOperationStatistic,MappedOperationStatistic,StatisticMapper,ZeroOperationStatistic
public interface OperationObserver<T extends java.lang.Enum<T>>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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbegin()Called immediately prior to the operation beginning.voidend(T result)Called immediately after the operation completes with no interesting parameters, and with the same thread the called {begin()} before.
-