Ejemplo n.º 1
0
 /**
  * Asynchronous exception handling.
  *
  * @param block <code>true</code> => block until an exception is available, <code>false</code =>
  *     return <code>null</code> if no exception is available.
  * @return The exception, or <code>null</code> if no exception is available or this Acceptor has
  *     been shut down.
  */
 public Exception getPendingException(boolean block) {
   try {
     return (Exception) m_exceptionQueue.dequeue(block);
   } catch (ThreadSafeQueue.ShutdownException e) {
     return null;
   }
 }