@Test public void testMarkUnavailable() throws InterruptedException, ExecutionException, TimeoutException{ final AddressContext context = addr.getContext(); Assert.assertTrue(context.isAavailable()); context.markUnavailable(); Assert.assertFalse(context.isAavailable()); final AddressContext newContext = addr.getContext(); Assert.assertFalse(context == newContext); Assert.assertNotNull(newContext.getHttpUrl()); }
public AddressContext getContext() { AddressContext context = _addressContext.get(); if (!context.isAavailable() || context.isExpired()) { context = newAddressContext(); _addressContext.set(context); } return context; }
AddressManager { public AddressContext getContext() { AddressContext context = _addressContext.get(); if (!context.isAavailable() || context.isExpired()) { context = newAddressContext(); _addressContext.set(context); } return context; } }
AddressManager { public AddressContext getContext() { AddressContext context = _addressContext.get(); if (!context.isAavailable() || context.isExpired()) { context = newAddressContext(); _addressContext.set(context); } return context; } AddressManager(final ArtemisClientManagerConfig managerConfig, final AddressRepository addressRepository); }
AddressManager { public AddressContext getContext() { AddressContext context = _addressContext.get(); if (!context.isAavailable() || context.isExpired()) { context = newAddressContext(); _addressContext.set(context); } return context; } AddressManager(final ArtemisClientManagerConfig managerConfig, final AddressRepository addressRepository); AddressContext getContext(); static AddressManager getDiscoveryAddressManager(final String clientId, final ArtemisClientManagerConfig managerConfig); static AddressManager getRegistryAddressManager(final String clientId, final ArtemisClientManagerConfig managerConfig); }
AddressManager { public AddressContext getContext() { AddressContext context = _addressContext.get(); if (!context.isAavailable() || context.isExpired()) { context = newAddressContext(); _addressContext.set(context); } return context; } AddressManager(final ArtemisClientManagerConfig managerConfig, final AddressRepository addressRepository); AddressContext getContext(); static AddressManager getDiscoveryAddressManager(final String clientId, final ArtemisClientManagerConfig managerConfig); static AddressManager getRegistryAddressManager(final String clientId, final ArtemisClientManagerConfig managerConfig);  }