Interface OpFacets<D>
-
- Type Parameters:
D- The data carrier parameter type. Any OpFacets implementation can be used to carry any state which is needed to support a specific type of operation.
- All Superinterfaces:
java.lang.Comparable<CycleResult>,CompletedOp<D>,CycleMutable,CycleReadable,CycleResult,FailedOp<D>,Payload<D>,ResultReadable,SkippedOp<D>,StartedOp<D>,SucceededOp<D>,TrackedOp<D>
- All Known Implementing Classes:
EventedOpImpl,OpImpl
public interface OpFacets<D> extends TrackedOp<D>, StartedOp<D>, SucceededOp<D>, FailedOp<D>, SkippedOp<D>
This interface represents the union of interfaces needed for all of the behavioral facets of a useful Op implementation. By implementing these faceted interfaces by way of the OpFacets interface, an implementation can be a state carrier that exposes a contextual interface by declaration. While this not a secure method of enforcing type and interface over shared state, it does provide a high degree of simplification for developers who wish to constrain the operational view of an object according to an implied state machine.
-
-
Method Summary
-
Methods inherited from interface io.engineblock.activityapi.core.ops.fluent.opfacets.CompletedOp
getResponseTimeNanos, getServiceTimeNanos, getStartedAtNanos
-
Methods inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.CycleMutable
setCycle
-
Methods inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.CycleReadable
getCycle
-
Methods inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.CycleResult
compareTo
-
Methods inherited from interface io.engineblock.activityapi.core.ops.fluent.opfacets.FailedOp
getTries
-
Methods inherited from interface io.engineblock.activityapi.core.ops.fluent.opfacets.Payload
getData, setData
-
Methods inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.ResultReadable
getResult
-
Methods inherited from interface io.engineblock.activityapi.core.ops.fluent.opfacets.SkippedOp
getSkippedReason
-
Methods inherited from interface io.engineblock.activityapi.core.ops.fluent.opfacets.StartedOp
fail, getCurrentResponseTimeNanos, getCurrentServiceTimeNanos, getStartedAtNanos, retry, succeed
-
Methods inherited from interface io.engineblock.activityapi.core.ops.fluent.opfacets.SucceededOp
getTries
-
Methods inherited from interface io.engineblock.activityapi.core.ops.fluent.opfacets.TrackedOp
setWaitTime, skip, start
-
-