Пример #1
0
 @Override
 public void onException(Message message, Exception exception) {
   context.getThreadAwareContext().setCurrentThread(true);
   try {
     wrapped.onException(message, exception);
   } finally {
     context.getThreadAwareContext().clearCurrentThread(true);
   }
 }
Пример #2
0
 @Override
 public void onCompletion(Message message) {
   context.setCurrentThread(true);
   try {
     wrapped.onCompletion(message);
   } finally {
     context.clearCurrentThread(true);
   }
 }