public class HashWheelTimerFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<reactor.core.HashWheelTimer>
FactoryBean implementation that provides HashWheelTimers in a round-robin fashion. The default is to create a single timer but
using the HashWheelTimerFactoryBean(int, int) constructor, one can create a "pool" of timers which will be
handed out to requestors in a round-robin fashion.| Constructor and Description |
|---|
HashWheelTimerFactoryBean()
Create a single
HashWheelTimer with a default resolution of 50 milliseconds. |
HashWheelTimerFactoryBean(int numOfTimers,
int resolution)
Create
numOfTimers number of HashWheelTimers. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.HashWheelTimer |
getObject() |
java.lang.Class<?> |
getObjectType() |
boolean |
isSingleton() |
public HashWheelTimerFactoryBean()
HashWheelTimer with a default resolution of 50 milliseconds.public HashWheelTimerFactoryBean(int numOfTimers,
int resolution)
numOfTimers number of HashWheelTimers.numOfTimers - the number of timers to createresolution - the resolution of the timers, in millisecondspublic reactor.core.HashWheelTimer getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<reactor.core.HashWheelTimer>java.lang.Exceptionpublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<reactor.core.HashWheelTimer>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<reactor.core.HashWheelTimer>