This factory will allow clients of whoas to build different queues like in memory, persistent etc and runners like sequential.
Type | Name and description |
---|---|
WhoasQueueConfig |
queueConfig Queue configuration |
java.lang.String |
runnerType Type of runner to create in whoas. |
Type | Name and description |
---|---|
AbstractHookQueue |
buildQueue() Allocate and return the queue based on stored queue type. |
AbstractHookRunner |
buildRunner(AbstractHookQueue hookQueue) Allocate and return runner based on stored runner type |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Queue configuration
Type of runner to create in whoas. Default runner in whoas is SequentialHookRunner
Allocate and return the queue based on stored queue type. If the queue cannot be created, then this throws ClassNotFoundException - if the class is not found IllegalAccessException - if the class or its nullary constructor is not accessible. InstantiationException - if this Class represents an abstract class, an interface, an array class, a primitive type, or void or if the class has no nullary constructor or if the instantiation fails for some other reason.
Allocate and return runner based on stored runner type If the runner cannot be created, then this throws ClassNotFoundException - if the class is not found IllegalAccessException - if the class or its nullary constructor is not accessible. InstantiationException - if this Class represents an abstract class, an interface, an array class, a primitive type, or void or if the class has no nullary constructor or if the instantiation fails for some other reason.
hookQueue
- queue to associate with allocated runner