コード例 #1
0
 /* (non-Javadoc)
  * @see org.hornetq.core.remoting.FailureListener#connectionFailed(org.hornetq.api.core.HornetQException, boolean)
  */
 public void connectionFailed(HornetQException exception, boolean failedOver) {
   if (exception.getType() == HornetQExceptionType.DISCONNECTED) {
     HornetQJMSLogger.LOGGER.warn("being disconnected for server shutdown", exception);
   } else {
     HornetQJMSLogger.LOGGER.warn(
         "Notified of connection failure in xa discovery, we will retry on the next recovery",
         exception);
   }
   internalStop();
   HornetQRecoveryRegistry.getInstance().failedDiscovery(this);
 }
コード例 #2
0
 @Override
 protected void finalize() {
   // I don't think it's a good thing to synchronize a method on a finalize,
   // hence the internalStop (no sync) call here
   internalStop();
 }
コード例 #3
0
 public synchronized void stop() {
   internalStop();
 }