public synchronized void setInitialConnectAttempts(final int reconnectAttempts) { checkWrite(); serverLocator.setInitialConnectAttempts(reconnectAttempts); }
public synchronized void setInitialConnectAttempts(final int reconnectAttempts) { checkWrite(); serverLocator.setInitialConnectAttempts(reconnectAttempts); }
public synchronized void setInitialConnectAttempts(final int reconnectAttempts) { checkWrite(); serverLocator.setInitialConnectAttempts(reconnectAttempts); }
public synchronized void setInitialConnectAttempts(final int reconnectAttempts) { checkWrite(); serverLocator.setInitialConnectAttempts(reconnectAttempts); }
public synchronized void setInitialConnectAttempts(final int reconnectAttempts) { checkWrite(); serverLocator.setInitialConnectAttempts(reconnectAttempts); }
protected ServerLocatorInternal getBackupServerLocator(int node) throws Exception { return (ServerLocatorInternal) addServerLocator(ActiveMQClient.createServerLocatorWithHA(getConnectorTransportConfiguration(false, node))).setRetryInterval(100).setReconnectAttempts(300).setInitialConnectAttempts(300); }
protected ServerLocatorInternal getServerLocator(int node) throws Exception { return (ServerLocatorInternal) addServerLocator(ActiveMQClient.createServerLocatorWithHA(getConnectorTransportConfiguration(true, node))).setRetryInterval(100).setReconnectAttempts(300).setInitialConnectAttempts(300); }
String messageText = RandomUtil.randomString(); ServerLocator locator = ActiveMQClient.createServerLocatorWithoutHA(new TransportConfiguration(connectorFactoryClassName)).setReconnectAttempts(1).setInitialConnectAttempts(1); try { ClientSessionFactory sf = locator.createSessionFactory();
ServerLocator locator = SpawnedServerSupport.createLocator(PORT2).setInitialConnectAttempts(100).setRetryInterval(100); ClientSessionFactory factory = locator.createSessionFactory(); ClientSession session = factory.createSession();
ServerLocator locator = factory.getServerLocator(); locator.setConfirmationWindowSize(0).setInitialConnectAttempts(100).setRetryInterval(100).setBlockOnDurableSend(false).setReconnectAttempts(0);
startLive(); ServerLocator locator = SpawnedServerSupport.createLocator(PORT1).setInitialConnectAttempts(300).setReconnectAttempts(300).setRetryInterval(100);
locator = createNettyNonHALocator().setReconnectAttempts(0).setInitialConnectAttempts(10).setRetryInterval(500).setBlockOnDurableSend(false);
public void verifyServer() throws Exception { ServerLocator locator; ClientSessionFactory factory; ClientSession session; ActiveMQServer server = PagingWithFailoverServer.createServer(getTestDir(), PORT1, PORT2, false); server.start(); waitForServerToStart(server); Queue queue = server.locateQueue(SimpleString.toSimpleString("cons2")); int messageCount = getMessageCount(queue); assertTrue(messageCount >= 0); locator = SpawnedServerSupport.createLocator(PORT1).setInitialConnectAttempts(100).setReconnectAttempts(300).setRetryInterval(100); factory = locator.createSessionFactory(); session = factory.createSession(); session.start(); try { drainConsumer(session.createConsumer("cons2"), "cons2", messageCount); } finally { session.close(); factory.close(); locator.close(); server.stop(); } }