All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.swingfrog.summer.concurrent.SessionQueueMgr Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package com.swingfrog.summer.concurrent;

import com.swingfrog.summer.server.SessionContext;

import java.util.concurrent.Executor;

public class SessionQueueMgr extends AbstractKeyQueue {

	private static class SingleCase {
		public static final SessionQueueMgr INSTANCE = new SessionQueueMgr();
	}
	
	private SessionQueueMgr() {

	}
	
	public static SessionQueueMgr get() {
		return SingleCase.INSTANCE;
	}

	public void execute(SessionContext sctx, Runnable runnable) {
		super.execute(sctx, runnable);
	}

	public void clear(SessionContext sctx) {
		super.clear(sctx);
	}

	public int getQueueSize(SessionContext sctx) {
		return super.getQueueSize(sctx);
	}

	public Executor getExecutor(SessionContext sctx) {
		return super.getOrCreateQueue(sctx);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy