Exemplo n.º 1
0
 public ExecutionResult AddEvent(HystrixEventType eventType)
 {
     return(new ExecutionResult(
                Eventcounts.Plus(eventType),
                StartTimestamp,
                ExecutionLatency,
                UserThreadLatency,
                Exception,
                ExecutionException,
                ExecutionOccurred,
                IsExecutedInThread,
                CollapserKey));
 }
Exemplo n.º 2
0
 public ExecutionResult MarkCollapsed(IHystrixCollapserKey collapserKey, int sizeOfBatch)
 {
     return(new ExecutionResult(
                Eventcounts.Plus(HystrixEventType.COLLAPSED, sizeOfBatch),
                StartTimestamp,
                ExecutionLatency,
                UserThreadLatency,
                Exception,
                ExecutionException,
                ExecutionOccurred,
                IsExecutedInThread,
                collapserKey));
 }
Exemplo n.º 3
0
 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));
     }
 }