/** * Unregisters the message consumer of the {@link Queryable} * service proxy implementation. * <p> * You do not have to invoke it yourself, if you are using the * {@link GraphQLService}, or the schema publisher * and consumer interfaces. */ public void unregisterServiceProxy() { if (serviceConsumer != null) { ProxyHelper.unregisterService(serviceConsumer); } }
@Override public void stop() throws Exception { if (messageConsumer != null) { ProxyHelper.unregisterService(messageConsumer); } service.close(); } }
public void stop() { ProxyHelper.unregisterService(service); }
public void stop() { ProxyHelper.unregisterService(service); }
public void stop() { ProxyHelper.unregisterService(service); }
public void stop() { ProxyHelper.unregisterService(service); }
public void stop() { ProxyHelper.unregisterService(service); }
public void stop() { ProxyHelper.unregisterService(service); }
@Test public void testUnregisteringTheService() { proxy.booleanHandler(ar -> { ProxyHelper.unregisterService(consumer); testComplete(); }); await(); AtomicReference<Throwable> caughtError = new AtomicReference<>(); proxy.booleanHandler(ar -> { caughtError.set(ar.cause()); }); assertWaitUntil(() -> caughtError.get() != null); }