In general, you should be able to configure a queue component just by specifying a list of listeners, as shown in the previous example. There are, however, two additional properties you might want to change:


This property sets the initial size of the queue, specifying how many elements can be queued up before the queue must resize itself. The queue automatically resizes itself, so it is usually not necessary to set this property. Its default value is 16. For example:



This property specifies the number of threads that are to pull events from the queue. By default, this is set to 1. You might wish to increase this number if it makes sense to handle multiple events in parallel, and if you are not concerned with the order events are handled. This value should always be set to at least 1.