/** * Set the name to be used by this bucket's processing thread * * @param name thread name * @throws ExistingRunningThreadException if this bucket is already started */ public void setThreadName(final String name) throws ExistingRunningThreadException { stateWriteLock.lock(); try { ensureNonExistingThread(); threadName = name; } finally { stateWriteLock.unlock(); } }
/** * Set the name to be used by this bucket's processing thread * * @param name thread name * @throws ExistingRunningThreadException if this bucket is already started */ public void setThreadName(final String name) throws ExistingRunningThreadException { stateWriteLock.lock(); try { ensureNonExistingThread(); threadName = name; } finally { stateWriteLock.unlock(); } }
/** * Set the name to be used by this bucket's processing thread * * @param name thread name * @throws ExistingRunningThreadException if this bucket is already started */ public void setThreadName(final String name) throws ExistingRunningThreadException { stateWriteLock.lock(); try { ensureNonExistingThread(); threadName = name; } finally { stateWriteLock.unlock(); } }
void start(final String genericThreadName) throws ExistingRunningThreadException { String name; if (threadName != null) { name = threadName; } else { name = genericThreadName; } bucketWriteLock.lock(); try { ensureNonExistingThread(); processingThread = new Thread(group.getThreadGroup(), new ProcessingThread(), name + " - processing"); processingThread.setDaemon(true); processingThread.start(); } finally { bucketWriteLock.unlock(); } }
void start(final String genericThreadName) throws ExistingRunningThreadException { String name; if (threadName != null) { name = threadName; } else { name = genericThreadName; } bucketWriteLock.lock(); try { ensureNonExistingThread(); processingThread = new Thread(group.getThreadGroup(), new ProcessingThread(), name + " - processing"); processingThread.setDaemon(true); processingThread.start(); } finally { bucketWriteLock.unlock(); } }
void start(final String genericThreadName) throws ExistingRunningThreadException { String name; if (threadName != null) { name = threadName; } else { name = genericThreadName; } bucketWriteLock.lock(); try { ensureNonExistingThread(); processingThread = new Thread(group.getThreadGroup(), new ProcessingThread(), name + " - processing"); processingThread.setDaemon(true); processingThread.start(); } finally { bucketWriteLock.unlock(); } }