isMrZhang commented on issue #110:
URL:
https://github.com/apache/rocketmq-docker/issues/110#issuecomment-2232573947
public ClientConfiguration clientConfiguration() {
return ClientConfiguration.newBuilder()
.setEndpoints("192.168.31.234:8080")
.enableSsl(false)
// .setCredentialProvider(new StaticSessionCredentialsProvider(accessKeyId,
accessKeySecret))
.build();
}
final ClientServiceProvider provider = ClientServiceProvider.loadService();
provider.newPushConsumerBuilder()
.setClientConfiguration(consumerConfig.clientConfiguration())
.setConsumptionThreadCount(CONSUME_THREAD_NUMS)
.setConsumerGroup(buildGroupId())
.setSubscriptionExpressions(Map.of(buildTopic(), new
FilterExpression(String.join("||", buildTags()), FilterExpressionType.TAG)))
.setMessageListener(this::consumeMessage)
.build();
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]