Commit 9a1ecbdf authored by guus's avatar guus

Capping queue size (OF-77)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11382 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1411086d
......@@ -41,7 +41,7 @@ import java.util.concurrent.LinkedBlockingQueue;
public class ClusterManager {
public static String CLUSTER_PROPERTY_NAME = "clustering.enabled";
private static Queue<ClusterEventListener> listeners = new ConcurrentLinkedQueue<ClusterEventListener>();
private static BlockingQueue<Event> events = new LinkedBlockingQueue<Event>();
private static BlockingQueue<Event> events = new LinkedBlockingQueue<Event>(10000);
static {
Thread thread = new Thread("ClusterManager events dispatcher") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment