public class ThrottleCounterHazelcastImpl extends AbstractThrottleCounter
ThrottleCounter
interface
by Hazelcast' map
and EntryProcessor
.
Suitable for running OpenHub in the cluster environment.
Implementation prerequisites Hazelcast's map definition with the name ''.HazelcastThrottleScope
Constructor and Description |
---|
ThrottleCounterHazelcastImpl(com.hazelcast.core.HazelcastInstance hazelcast) |
Modifier and Type | Method and Description |
---|---|
protected int |
doCount(ThrottleScope throttleScope,
int intervalSec)
Counts requests for specified throttle scope and time interval.
|
count
public ThrottleCounterHazelcastImpl(com.hazelcast.core.HazelcastInstance hazelcast)
protected int doCount(ThrottleScope throttleScope, int intervalSec)
AbstractThrottleCounter
doCount
in class AbstractThrottleCounter
throttleScope
- the throttle scopeintervalSec
- the time interval in secondsCopyright © 2018 Pivotal Software, Inc.. All rights reserved.