@Override protected void doStart() { super.doStart(); this.container.start(); }
@Override protected void doStart() { started.set(true); super.doStart(); }
@Override protected void doStart() { super.doStart(); if (this.idleEventInterval > 0) { this.idleEventScheduledFuture = getTaskScheduler().scheduleWithFixedDelay(() -> { long now = System.currentTimeMillis(); long lastAlertAt = this.lastNoMessageAlert.get(); long lastSend = this.lastProduce; if (now > lastSend + this.idleEventInterval && now > lastAlertAt + this.idleEventInterval && this.lastNoMessageAlert.compareAndSet(lastAlertAt, now)) { publishIdleEvent(now - lastSend); } }, this.idleEventInterval); } }
@Override // protected by super#lifecycleLock protected void doStart() { super.doStart(); if (!this.active) { this.active = true; this.shuttingDown = false; if (this.serverConnectionFactory != null) { this.serverConnectionFactory.start(); } if (this.clientConnectionFactory != null) { this.clientConnectionFactory.start(); } if (this.isClientMode) { ClientModeConnectionManager manager = new ClientModeConnectionManager( this.clientConnectionFactory); this.clientModeConnectionManager = manager; Assert.state(this.getTaskScheduler() != null, "Client mode requires a task scheduler"); this.scheduledFuture = this.getTaskScheduler().scheduleAtFixedRate(manager, this.retryInterval); } } }
@Override protected void doStart() { super.doStart(); this.subscriber = this.pubSubSubscriberOperations.subscribeAndConvert( this.subscriptionName, this::consumeMessage, this.payloadType); }
@Override protected void doStart() { super.doStart(); this.container.start(); }
@Override protected void doStart() { super.doStart(); this.subscriber = this.pubSubSubscriberOperations.subscribeAndConvert( this.subscriptionName, this::consumeMessage, this.payloadType); }
@Override protected void doStart() { super.doStart(); if (ListenerMode.batch.equals(this.listenerMode) && CheckpointMode.record.equals(this.checkpointMode)) { this.checkpointMode = CheckpointMode.batch; logger.warn("The 'checkpointMode' is overridden from [CheckpointMode.record] to [CheckpointMode.batch] " + "because it does not make sense in case of [ListenerMode.batch]."); } if (this.streams != null) { populateShardsForStreams(); } populateConsumers(); this.active = true; this.concurrency = Math.min(this.maxConcurrency, this.shardOffsets.size()); this.dispatcherExecutor.execute(new ConsumerDispatcher()); this.shardConsumerManagerFuture = this.shardLocksExecutor.submit(this.shardConsumerManager); }
@Override protected void doStart() { super.doStart(); if (ListenerMode.batch.equals(this.listenerMode) && CheckpointMode.record.equals(this.checkpointMode)) { this.checkpointMode = CheckpointMode.batch; logger.warn("The 'checkpointMode' is overridden from [CheckpointMode.record] to [CheckpointMode.batch] " + "because it does not make sense in case of [ListenerMode.batch]."); } if (this.streams != null) { populateShardsForStreams(); } populateConsumers(); this.active = true; this.concurrency = Math.min(this.maxConcurrency, this.shardOffsets.size()); this.dispatcherExecutor.execute(new ConsumerDispatcher()); this.shardConsumerManagerFuture = this.shardLocksExecutor.submit(this.shardConsumerManager); }
@Override public void doStart() { super.doStart(); if (useGroupOperation()) { this.subscribeByGroupOperation.subscribe(this.destination, this.consumerGroup, this::receiveMessage); } else { this.subscribeOperation.subscribe(this.destination, this::receiveMessage); } }
@Override public void doStart() { super.doStart(); if (useGroupOperation()) { this.subscribeByGroupOperation.subscribe(this.destination, this.consumerGroup, this::receiveMessage); } else { this.subscribeOperation.subscribe(this.destination, this::receiveMessage); } }
@Override // protected by super#lifecycleLock protected void doStart() { super.doStart(); if (!this.active) { this.active = true; this.shuttingDown = false; if (this.serverConnectionFactory != null) { this.serverConnectionFactory.start(); } if (this.clientConnectionFactory != null) { this.clientConnectionFactory.start(); } if (this.isClientMode) { ClientModeConnectionManager manager = new ClientModeConnectionManager( this.clientConnectionFactory); this.clientModeConnectionManager = manager; Assert.state(this.getTaskScheduler() != null, "Client mode requires a task scheduler"); this.scheduledFuture = this.getTaskScheduler().scheduleAtFixedRate(manager, this.retryInterval); } } }