Package org.hornetq.core.client.impl

Examples of org.hornetq.core.client.impl.FailoverManagerImpl


      TransportConfiguration config = new TransportConfiguration(InVMConnectorFactory.class.getName());
      ClientSessionFactory csf = HornetQClient.createClientSessionFactory(config);
      ExecutorService executorService = Executors.newFixedThreadPool(1);
      ScheduledExecutorService scheduledexecutorService = Executors.newScheduledThreadPool(1);
      FailoverManagerImpl failoverManager = new FailoverManagerImpl(csf,
                                                                    config,
                                                                    null,
                                                                    HornetQClient.DEFAULT_FAILOVER_ON_SERVER_SHUTDOWN,
                                                                    HornetQClient.DEFAULT_CALL_TIMEOUT,
                                                                    HornetQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD,
                                                                    500,
                                                                    HornetQClient.DEFAULT_RETRY_INTERVAL,
                                                                    HornetQClient.DEFAULT_RETRY_INTERVAL_MULTIPLIER,
                                                                    HornetQClient.DEFAULT_MAX_RETRY_INTERVAL,
                                                                    HornetQClient.DEFAULT_RECONNECT_ATTEMPTS,
                                                                    HornetQClient.DEFAULT_FAILOVER_ON_INITIAL_CONNECTION,
                                                                    executorService,
                                                                    scheduledexecutorService,
                                                                    null);
      connection = failoverManager.getConnection();
   }
View Full Code Here


   {
      TransportConfiguration connectorConfig = new TransportConfiguration(InVMConnectorFactory.class.getName(),
                                                                          new HashMap<String, Object>(),
                                                                          RandomUtil.randomString());

      return new FailoverManagerImpl((ClientSessionFactory)null,
                                     connectorConfig,
                                     null,
                                     false,
                                     HornetQClient.DEFAULT_CALL_TIMEOUT,
                                     HornetQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD,
View Full Code Here

    */
   protected FailoverManagerImpl createBackupConnectionFailoverManager(final TransportConfiguration backupConnector,
                                                                       final ExecutorService threadPool,
                                                                       final ScheduledExecutorService scheduledPool)
   {
      return new FailoverManagerImpl((ClientSessionFactory)null,
                                     backupConnector,
                                     null,
                                     false,
                                     HornetQClient.DEFAULT_CALL_TIMEOUT,
                                     HornetQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD,
View Full Code Here

    */
   protected FailoverManagerImpl createBackupConnectionFailoverManager(final TransportConfiguration backupConnector,
                                                                       final ExecutorService threadPool,
                                                                       final ScheduledExecutorService scheduledPool)
   {
      return new FailoverManagerImpl((ClientSessionFactory)null,
                                     backupConnector,
                                     null,
                                     false,
                                     HornetQClient.DEFAULT_CALL_TIMEOUT,
                                     HornetQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD,
View Full Code Here

    */
   protected FailoverManagerImpl createBackupConnectionFailoverManager(final TransportConfiguration backupConnector,
                                                                       final ExecutorService threadPool,
                                                                       final ScheduledExecutorService scheduledPool)
   {
      return new FailoverManagerImpl((ClientSessionFactory)null,
                                     backupConnector,
                                     null,
                                     false,
                                     HornetQClient.DEFAULT_CALL_TIMEOUT,
                                     HornetQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD,
View Full Code Here

TOP

Related Classes of org.hornetq.core.client.impl.FailoverManagerImpl

Copyright © 2018 www.massapicom. 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.