public void run() {
   try {
     runnable.run();
   } catch (Throwable e) {
     DebuggableThreadPoolExecutor.handleOrLog(e);
   }
 }
Пример #2
0
 public long getMessagingReceiverTaskCount() {
   DebuggableThreadPoolExecutor dstp =
       (DebuggableThreadPoolExecutor) messageDeserializationExecutor_;
   return dstp.getTaskCount() - dstp.getCompletedTaskCount();
 }
 // We need this as well as the wrapper for the benefit of non-repeating tasks
 @Override
 public void afterExecute(Runnable r, Throwable t) {
   super.afterExecute(r, t);
   DebuggableThreadPoolExecutor.logExceptionsAfterExecute(r, t);
 }
Пример #4
0
 public long getMessagingSerializerTaskCount() {
   DebuggableThreadPoolExecutor dstp = (DebuggableThreadPoolExecutor) messageSerializerExecutor_;
   return dstp.getTaskCount() - dstp.getCompletedTaskCount();
 }