@Override public boolean isRunning() { synchronized (this.getLifecycleMonitor()) { return this.running; } }
@Override public boolean isRunning() { synchronized (this.getLifecycleMonitor()) { return this.running; } }
public boolean isActive() { synchronized (this.getLifecycleMonitor()) { return this.active; } }
public boolean isActive() { synchronized (this.getLifecycleMonitor()) { return this.active; } }
@Override public void start() { getLogger().debug("Starting container with name {}", getBeanName()); synchronized (this.getLifecycleMonitor()) { this.running = true; this.getLifecycleMonitor().notifyAll(); } doStart(); }
@Override public void stop() { getLogger().debug("Stopping container with name {}", getBeanName()); synchronized (this.getLifecycleMonitor()) { this.running = false; this.getLifecycleMonitor().notifyAll(); } doStop(); }
@Override public void start() { getLogger().debug("Starting container with name {}", getBeanName()); synchronized (this.getLifecycleMonitor()) { this.running = true; this.getLifecycleMonitor().notifyAll(); } doStart(); }
@Override public void stop() { getLogger().debug("Stopping container with name {}", getBeanName()); synchronized (this.getLifecycleMonitor()) { this.running = false; this.getLifecycleMonitor().notifyAll(); } doStop(); }
protected void initialize() { synchronized (this.getLifecycleMonitor()) { if (this.destinationResolver == null) { if (this.resourceIdResolver == null) { this.destinationResolver = new CachingDestinationResolverProxy<>(new DynamicQueueUrlDestinationResolver(this.amazonSqs)); } else { this.destinationResolver = new CachingDestinationResolverProxy<>(new DynamicQueueUrlDestinationResolver(this.amazonSqs, this.resourceIdResolver)); } } for (QueueMessageHandler.MappingInformation mappingInformation : this.messageHandler.getHandlerMethods().keySet()) { for (String queue : mappingInformation.getLogicalResourceIds()) { QueueAttributes queueAttributes = queueAttributes(queue, mappingInformation.getDeletionPolicy()); if (queueAttributes != null) { this.registeredQueues.put(queue, queueAttributes); } } } this.active = true; this.getLifecycleMonitor().notifyAll(); } }
protected void initialize() { synchronized (this.getLifecycleMonitor()) { if (this.destinationResolver == null) { if (this.resourceIdResolver == null) { this.destinationResolver = new CachingDestinationResolverProxy<>(new DynamicQueueUrlDestinationResolver(this.amazonSqs)); } else { this.destinationResolver = new CachingDestinationResolverProxy<>(new DynamicQueueUrlDestinationResolver(this.amazonSqs, this.resourceIdResolver)); } } for (QueueMessageHandler.MappingInformation mappingInformation : this.messageHandler.getHandlerMethods().keySet()) { for (String queue : mappingInformation.getLogicalResourceIds()) { QueueAttributes queueAttributes = queueAttributes(queue, mappingInformation.getDeletionPolicy()); if (queueAttributes != null) { this.registeredQueues.put(queue, queueAttributes); } } } this.active = true; this.getLifecycleMonitor().notifyAll(); } }