this(path, serverId, Thread.currentThread().getContextClassLoader(), false);
}
public static FileQueueStore create()
{
Server server = Server.getCurrent();
if (server == null)
throw new IllegalStateException(L.l("FileQueueStore requires an active Resin instance"));
ClassLoader loader = server.getClassLoader();
synchronized (_localStore) {
FileQueueStore store = _localStore.getLevel(loader);
if (store == null) {
Path path = RootDirectorySystem.getCurrentDataDirectory();
String serverId = server.getServerId();
store = new FileQueueStore(path, serverId, loader, true);
_localStore.set(store, loader);
}