LongAdder getAdder(HystrixRollingNumberEvent type) { if (!type.isCounter()) { throw new IllegalStateException("Type is not a Counter: " + type.name()); } return adderForCounterType[type.ordinal()]; }
LongMaxUpdater getMaxUpdater(HystrixRollingNumberEvent type) { if (!type.isMaxUpdater()) { throw new IllegalStateException("Type is not a MaxUpdater: " + type.name()); } return updaterForCounterType[type.ordinal()]; }
LongMaxUpdater getMaxUpdater(HystrixRollingNumberEvent type) { if (!type.isMaxUpdater()) { throw new IllegalStateException("Type is not a MaxUpdater: " + type.name()); } return updaterForCounterType[type.ordinal()]; }
LongAdder getAdder(HystrixRollingNumberEvent type) { if (!type.isCounter()) { throw new IllegalStateException("Type is not a Counter: " + type.name()); } return adderForCounterType[type.ordinal()]; }
long get(HystrixRollingNumberEvent type) { if (type.isCounter()) { return adderForCounterType[type.ordinal()].sum(); } if (type.isMaxUpdater()) { return updaterForCounterType[type.ordinal()].max(); } throw new IllegalStateException("Unknown type of event: " + type.name()); }
long get(HystrixRollingNumberEvent type) { if (type.isCounter()) { return adderForCounterType[type.ordinal()].sum(); } if (type.isMaxUpdater()) { return updaterForCounterType[type.ordinal()].max(); } throw new IllegalStateException("Unknown type of event: " + type.name()); }
LongAdder getAdder(HystrixRollingNumberEvent type) { if (!type.isCounter()) { throw new IllegalStateException("Type is not a Counter: " + type.name()); } return adderForCounterType[type.ordinal()]; }
LongMaxUpdater getMaxUpdater(HystrixRollingNumberEvent type) { if (!type.isMaxUpdater()) { throw new IllegalStateException("Type is not a MaxUpdater: " + type.name()); } return updaterForCounterType[type.ordinal()]; }
LongMaxUpdater getMaxUpdater(HystrixRollingNumberEvent type) { if (!type.isMaxUpdater()) { throw new IllegalStateException("Type is not a MaxUpdater: " + type.name()); } return updaterForCounterType[type.ordinal()]; }
LongAdder getAdder(HystrixRollingNumberEvent type) { if (!type.isCounter()) { throw new IllegalStateException("Type is not a Counter: " + type.name()); } return adderForCounterType[type.ordinal()]; }
long get(HystrixRollingNumberEvent type) { if (type.isCounter()) { return adderForCounterType[type.ordinal()].sum(); } if (type.isMaxUpdater()) { return updaterForCounterType[type.ordinal()].max(); } throw new IllegalStateException("Unknown type of event: " + type.name()); }
long get(HystrixRollingNumberEvent type) { if (type.isCounter()) { return adderForCounterType[type.ordinal()].sum(); } if (type.isMaxUpdater()) { return updaterForCounterType[type.ordinal()].max(); } throw new IllegalStateException("Unknown type of event: " + type.name()); }