public void CollapserBatchExecuted(IHystrixCollapserKey collapserKey, int batchSize) { HystrixCollapserEvent batchExecution = HystrixCollapserEvent.From(collapserKey, CollapserEventType.BATCH_EXECUTED, 1); HystrixCollapserEvent batchAdditions = HystrixCollapserEvent.From(collapserKey, CollapserEventType.ADDED_TO_BATCH, batchSize); _writeOnlyCollapserSubject.OnNext(batchExecution); _writeOnlyCollapserSubject.OnNext(batchAdditions); }
public void CollapserResponseFromCache(IHystrixCollapserKey collapserKey) { HystrixCollapserEvent collapserEvent = HystrixCollapserEvent.From(collapserKey, CollapserEventType.RESPONSE_FROM_CACHE, 1); _writeOnlyCollapserSubject.OnNext(collapserEvent); }