@Override public void close() { LogUtil.doWithMDC( brokerContext.getDiagnosticContext(), () -> { if (!isClosed) { brokerContext.close(); isClosed = true; LOG.info("Broker closed"); } }); }
@Override public void close() { LogUtil.doWithMDC( brokerContext.getDiagnosticContext(), () -> { if (!isClosed) { brokerContext.close(); isClosed = true; LOG.info("Broker closed"); } }); }
public void init() { serviceContainer.start(); for (final Component brokerComponent : components) { try { brokerComponent.init(this); } catch (final RuntimeException e) { close(); throw e; } } try { for (final ActorFuture<?> requiredStartAction : requiredStartActions) { requiredStartAction.get(20, TimeUnit.SECONDS); } } catch (final Exception e) { LOG.error("Could not start broker", e); close(); throw new RuntimeException(e); } }
public void init() { serviceContainer.start(); for (final Component brokerComponent : components) { try { brokerComponent.init(this); } catch (final RuntimeException e) { close(); throw e; } } try { for (final ActorFuture<?> requiredStartAction : requiredStartActions) { requiredStartAction.get(20, TimeUnit.SECONDS); } } catch (final Exception e) { LOG.error("Could not start broker", e); close(); throw new RuntimeException(e); } }