public ExecutionResult AddEvent(HystrixEventType eventType) { return(new ExecutionResult( Eventcounts.Plus(eventType), StartTimestamp, ExecutionLatency, UserThreadLatency, Exception, ExecutionException, ExecutionOccurred, IsExecutedInThread, CollapserKey)); }
public ExecutionResult MarkCollapsed(IHystrixCollapserKey collapserKey, int sizeOfBatch) { return(new ExecutionResult( Eventcounts.Plus(HystrixEventType.COLLAPSED, sizeOfBatch), StartTimestamp, ExecutionLatency, UserThreadLatency, Exception, ExecutionException, ExecutionOccurred, IsExecutedInThread, collapserKey)); }
public ExecutionResult AddEvent(int executionLatency, HystrixEventType eventType) { if (StartTimestamp >= 0 && !IsResponseRejected) { return(new ExecutionResult( Eventcounts.Plus(eventType), StartTimestamp, executionLatency, UserThreadLatency, Exception, ExecutionException, ExecutionOccurred, IsExecutedInThread, CollapserKey)); } else { return(AddEvent(eventType)); } }