RongtongJin commented on code in PR #4094:
URL: https://github.com/apache/rocketmq/pull/4094#discussion_r844585044
##########
client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultLitePullConsumerImpl.java:
##########
@@ -271,6 +271,14 @@ public synchronized boolean isRunning() {
return this.serviceState == ServiceState.RUNNING;
}
+ public synchronized boolean isCreateJust() {
+ return this.serviceState == ServiceState.CREATE_JUST;
+ }
+
+ public synchronized ServiceState getServiceState() {
+ return this.serviceState;
+ }
+
Review Comment:
Is it necessary to add synchronized here?
--
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]