Package org.apache.activemq.transport

Examples of org.apache.activemq.transport.Transport.stop()


                        } catch (Exception e) {
                            failure = e;
                            LOG.debug("Connect fail to: " + uri + ", reason: " + e);
                            if (t != null) {
                                try {
                                    t.stop();
                                } catch (Exception ee) {
                                    LOG.debug("Stop of failed transport: " + t + " failed with reason: " + ee);
                                }
                            }
                        } finally {
View Full Code Here


        synchronized (sleepMutex) {
            sleepMutex.notifyAll();
        }
        reconnectTask.shutdown();
        if( transportToStop!=null ) {
            transportToStop.stop();
        }
    }

    public long getInitialReconnectDelay() {
        return initialReconnectDelay;
View Full Code Here

                        } catch (Exception e) {
                            failure = e;
                            LOG.debug("Connect fail to: " + uri + ", reason: " + e);
                            if (t!=null) {
                                try {
                                    t.stop();      
                                } catch (Exception ee) {
                                    LOG.debug("Stop of failed transport: " + t + " failed with reason: " + ee);
                                }
                            }
                        }
View Full Code Here

          .getVmConnectorURI());
      localTransport.setTransportListener(new TransportListener() {
        public void onCommand(Object command) {
          if (command instanceof ShutdownInfo) {
            try {
              localTransport.stop();
            } catch (Exception ex) {
              throw new RuntimeException(ex);
            }
          }
        }
View Full Code Here

          // ignore
        }
      });

      localTransport.start();
      localTransport.stop();

      // Ensure that the persistent connection is still usable.
      producer.send(session.createMessage());
      session.rollback();
    }
View Full Code Here

        synchronized (sleepMutex) {
            sleepMutex.notifyAll();
        }
        reconnectTask.shutdown();
        if (transportToStop != null) {
            transportToStop.stop();
        }
    }

    public long getInitialReconnectDelay() {
        return initialReconnectDelay;
View Full Code Here

            if (started) {
                if (rebalance) {
                    Transport transport = this.connectedTransport.getAndSet(null);
                    if (transport != null) {
                        try {
                            transport.stop();
                        } catch (Exception e) {
                            LOG.debug("Caught an exception stopping existing transport", e);
                        }
                    }
View Full Code Here

                        } catch (Exception e) {
                            failure = e;
                            LOG.debug("Connect fail to: " + uri + ", reason: " + e);
                            if (t != null) {
                                try {
                                    t.stop();
                                } catch (Exception ee) {
                                    LOG.debug("Stop of failed transport: " + t + " failed with reason: " + ee);
                                }
                            }
                        } finally {
View Full Code Here

        synchronized (sleepMutex) {
            sleepMutex.notifyAll();
        }
        reconnectTask.shutdown();
        if( transportToStop!=null ) {
            transportToStop.stop();
        }
    }

    public long getInitialReconnectDelay() {
        return initialReconnectDelay;
View Full Code Here

        synchronized (sleepMutex) {
            sleepMutex.notifyAll();
        }
        reconnectTask.shutdown();
        if( transportToStop!=null ) {
            transportToStop.stop();
        }
    }

    public long getInitialReconnectDelay() {
        return initialReconnectDelay;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.