Java Code Examples for

The following are Jave code examples for showing how to use setUncaughtExceptionHandler() of the class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: ditb   File:   Source Code and License Vote up 6 votes
 * Run the bulk assign.
 * @param sync
 *          Whether to assign synchronously.
 * @throws InterruptedException
 * @return True if done.
 * @throws IOException
public boolean bulkAssign(boolean sync) throws InterruptedException,
    IOException {
  boolean result = false;
  ThreadFactoryBuilder builder = new ThreadFactoryBuilder();
  builder.setNameFormat(getThreadNamePrefix() + "-%1$d");
  int threadCount = getThreadCount();
  java.util.concurrent.ExecutorService pool =
  try {
    // How long to wait on empty regions-in-transition.  If we timeout, the
    // RIT monitor should do fixup.
    if (sync) result = waitUntilDone(getTimeoutOnRIT());
  } finally {
    // We're done with the pool.  It'll exit when its done all in queue.
  return result;