Class EventedOpImpl<D>
- java.lang.Object
-
- io.engineblock.activityapi.core.ops.fluent.opfacets.OpImpl<D>
-
- io.engineblock.activityapi.core.ops.fluent.opfacets.EventedOpImpl<D>
-
- All Implemented Interfaces:
CompletedOp<D>,FailedOp<D>,OpFacets<D>,Payload<D>,SkippedOp<D>,StartedOp<D>,SucceededOp<D>,TrackedOp<D>,CycleMutable,CycleReadable,CycleResult,ResultReadable,java.lang.Comparable<CycleResult>
public class EventedOpImpl<D> extends OpImpl<D>
-
-
Constructor Summary
Constructors Constructor Description EventedOpImpl(OpEvents<D> opTracker)EventedOpImpl(OpEvents<D> opTracker, OpEvents<D> strideTracker)
-
Method Summary
Modifier and Type Method Description FailedOp<D>fail(int status)Mark this op as failed as of the time it is called, and record the resulting status code.StartedOp<D>start()Signify to EngineBlock that the associated operation is known to have started processing in some specific way according to the implementing activity type.SucceededOp<D>succeed(int status)Mark this op as successful as of the time it is called, and record the resulting status code.-
Methods inherited from class io.engineblock.activityapi.core.ops.fluent.opfacets.OpImpl
getCurrentResponseTimeNanos, getCurrentServiceTimeNanos, getCycle, getData, getResponseTimeNanos, getResult, getServiceTimeNanos, getSkippedReason, getStartedAtNanos, getTries, retry, setCycle, setData, setWaitTime, skip, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.CycleResult
compareTo
-
-
-
-
Method Detail
-
start
public StartedOp<D> start()
Description copied from interface:TrackedOpSignify to EngineBlock that the associated operation is known to have started processing in some specific way according to the implementing activity type. This should be called after any operational setup work that would not occur in a typical application client scenario. The moment this is called, the start time for the operation is marked.
-
succeed
public SucceededOp<D> succeed(int status)
Description copied from interface:StartedOpMark this op as successful as of the time it is called, and record the resulting status code.
-
-