private static synchronized ScheduledExecutorService getGlobalScheduledThreadPool() { if (globalScheduledThreadPool == null) { ThreadFactory factory = new HornetQThreadFactory("HornetQ-client-global-scheduled-threads", true, getThisClassLoader()); globalScheduledThreadPool = Executors.newScheduledThreadPool(HornetQClient.DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE, factory); } return globalScheduledThreadPool; }
public Thread newThread(final Runnable command) { // always create a thread in a privileged block if running with Security Manager if (acc != null && System.getSecurityManager() != null) { return AccessController.doPrivileged(new ThreadCreateAction(command), acc); } else { return createThread(command); } }
private static synchronized ExecutorService getGlobalThreadPool() { if (globalThreadPool == null) { ThreadFactory factory = new HornetQThreadFactory("HornetQ-client-global-threads", true, getThisClassLoader()); globalThreadPool = Executors.newCachedThreadPool(factory); } return globalThreadPool; }
private static synchronized ExecutorService getGlobalThreadPool() { if (globalThreadPool == null) { ThreadFactory factory = new HornetQThreadFactory("HornetQ-client-global-threads", true, getThisClassLoader()); globalThreadPool = Executors.newCachedThreadPool(factory); } return globalThreadPool; }
public static synchronized ScheduledExecutorService getGlobalScheduledThreadPool() { if (globalScheduledThreadPool == null) { ThreadFactory factory = new HornetQThreadFactory("HornetQ-client-global-scheduled-threads", true, getThisClassLoader()); globalScheduledThreadPool = Executors.newScheduledThreadPool(HornetQClient.DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE, factory); } return globalScheduledThreadPool; }
public static synchronized SharedNioEventLoopGroup getInstance(int numThreads) { if (instance != null) { ScheduledFuture f = instance.shutdown.getAndSet(null); if (f != null) { f.cancel(false); } } else { instance = new SharedNioEventLoopGroup(numThreads, new HornetQThreadFactory("HornetQ-client-netty-threads", true, getThisClassLoader())); } instance.nioChannelFactoryCount.incrementAndGet(); return instance; }
@Override public void start() { super.start(); pollerExecutor = Executors.newCachedThreadPool(new HornetQThreadFactory("HornetQ-AIO-poller-pool" + System.identityHashCode(this), true, AIOSequentialFileFactory.getThisClassLoader())); }
@Override public void start() { super.start(); pollerExecutor = Executors.newCachedThreadPool(new HornetQThreadFactory("HornetQ-AIO-poller-pool" + System.identityHashCode(this), true, AIOSequentialFileFactory.getThisClassLoader())); }
@Override public void start() { super.start(); pollerExecutor = Executors.newCachedThreadPool(new HornetQThreadFactory("HornetQ-AIO-poller-pool" + System.identityHashCode(this), true, AIOSequentialFileFactory.getThisClassLoader())); }
public void start() { if (timedBuffer != null) { timedBuffer.start(); } if (isSupportsCallbacks()) { writeExecutor = Executors.newSingleThreadExecutor(new HornetQThreadFactory("HornetQ-Asynchronous-Persistent-Writes" + System.identityHashCode(this), true, AbstractSequentialFileFactory.getThisClassLoader())); } }
public void start() { if (timedBuffer != null) { timedBuffer.start(); } if (isSupportsCallbacks()) { writeExecutor = Executors.newSingleThreadExecutor(new HornetQThreadFactory("HornetQ-Asynchronous-Persistent-Writes" + System.identityHashCode(this), true, AbstractSequentialFileFactory.getThisClassLoader())); } }
public void start() { if (timedBuffer != null) { timedBuffer.start(); } if (isSupportsCallbacks()) { writeExecutor = Executors.newSingleThreadExecutor(new HornetQThreadFactory("HornetQ-Asynchronous-Persistent-Writes" + System.identityHashCode(this), true, AbstractSequentialFileFactory.getThisClassLoader())); } }
ThreadFactory factory = new HornetQThreadFactory("HornetQ-client-factory-threads-" + System.identityHashCode(this), true, getThisClassLoader()); factory = new HornetQThreadFactory("HornetQ-client-factory-pinger-threads-" + System.identityHashCode(this), true, getThisClassLoader());
ThreadFactory factory = new HornetQThreadFactory("HornetQ-client-factory-threads-" + System.identityHashCode(this), true, getThisClassLoader()); factory = new HornetQThreadFactory("HornetQ-client-factory-pinger-threads-" + System.identityHashCode(this), true, getThisClassLoader());
public synchronized void start() throws Exception { if (started) { return; } checkAndCreateDir(bindingsDir, createBindingsDir); checkAndCreateDir(journalDir, createJournalDir); checkAndCreateDir(largeMessagesDirectory, createJournalDir); cleanupIncompleteFiles(); singleThreadExecutor = Executors.newSingleThreadExecutor(new HornetQThreadFactory("HornetQ-IO-SingleThread", true, getThisClassLoader())); bindingsJournal.start(); messageJournal.start(); started = true; }
eventLoopGroup = new NioEventLoopGroup(threadsToUse, new HornetQThreadFactory("hornetq-netty-threads", true, getThisClassLoader()));
public synchronized void start() throws Exception { if (started) { return; } checkAndCreateDir(bindingsDir, createBindingsDir); checkAndCreateDir(journalDir, createJournalDir); checkAndCreateDir(largeMessagesDirectory, createJournalDir); cleanupIncompleteFiles(); singleThreadExecutor = Executors.newSingleThreadExecutor(new HornetQThreadFactory("HornetQ-IO-SingleThread", true, getThisClassLoader())); bindingsJournal.start(); messageJournal.start(); started = true; }
ThreadFactory tFactory = new HornetQThreadFactory("HornetQ-remoting-threads-" + server.toString() + "-" + System.identityHashCode(this), false, tccl);
ThreadFactory tFactory = new HornetQThreadFactory("HornetQ-remoting-threads-" + server.toString() + "-" + System.identityHashCode(this), false, tccl);
ThreadFactory tFactory = new HornetQThreadFactory("HornetQ-server-" + this.toString(), false, getThisClassLoader()); new HornetQThreadFactory("HornetQ-scheduled-threads", false, getThisClassLoader()));