factory.setTopologyRecoveryEnabled(this.topologyRecovery);
/** * Set to true to enable amqp-client topology recovery. Note: if there is a * Rabbit admin in the application context, Spring AMQP * implements its own recovery and this is generally not needed. * @param topologyRecoveryEnabled true to enable. * @since 1.7.1 */ public void setTopologyRecoveryEnabled(boolean topologyRecoveryEnabled) { this.connectionFactory.setTopologyRecoveryEnabled(topologyRecoveryEnabled); }
/** * Set to true to enable amqp-client topology recovery. Note: if there is a * Rabbit admin in the application context, Spring AMQP * implements its own recovery and this is generally not needed. * @param topologyRecoveryEnabled true to enable. * @since 1.7.1 */ public void setTopologyRecoveryEnabled(boolean topologyRecoveryEnabled) { this.connectionFactory.setTopologyRecoveryEnabled(topologyRecoveryEnabled); }
connectionFactory.setTopologyRecoveryEnabled( Boolean.valueOf(configMap.get(RABBITMQ_CONFIG_KEY_TOPOLOGY_RECOVERY_ENABLED).toString()));
connectionFactory.setTopologyRecoveryEnabled(true); connectionFactory.setConnectionTimeout(60000); connectionFactory.setRequestedHeartbeat(10);
connectionFactory.setTopologyRecoveryEnabled(true); connectionFactory.setConnectionTimeout(60000); connectionFactory.setRequestedHeartbeat(10);
connectionFactory.setTopologyRecoveryEnabled(false);
this.factory.setRequestedHeartbeat(5000); this.factory.setAutomaticRecoveryEnabled(true); this.factory.setTopologyRecoveryEnabled(true); this.factory.setNetworkRecoveryInterval(5000); if (username != null) this.factory.setUsername(username);
public RabbitConnectionProvider( String host, int port, String username, String password, String vhost ) { this.connectionFactory = new ConnectionFactory(); this.connectionFactory.setConnectionTimeout( 2000 ); this.connectionFactory.setVirtualHost( vhost ); this.connectionFactory.setHost( host ); this.connectionFactory.setPort( port ); this.connectionFactory.setUsername( username ); this.connectionFactory.setPassword( password ); this.connectionFactory.setAutomaticRecoveryEnabled( true ); this.connectionFactory.setTopologyRecoveryEnabled( true ); }
cf.setTopologyRecoveryEnabled(false);//Hard coded ..
factory.setTopologyRecoveryEnabled(endpoint.getTopologyRecoveryEnabled());
connectionFactory.setSocketFactory(rabbitMQConfiguration.getFactory()); connectionFactory.setThreadFactory(rabbitMQConfiguration.getThreadFactory()); connectionFactory.setTopologyRecoveryEnabled(rabbitMQConfiguration.isTopologyRecovery()); try { connectionFactory.setUri(rabbitMQConfiguration.getUri());