You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2018/03/30 01:40:17 UTC

[GitHub] zangyk commented on issue #264: ConsumeMessageOrderlyService can use ReentrantLock

zangyk commented on issue #264: ConsumeMessageOrderlyService  can use ReentrantLock 
URL: https://github.com/apache/rocketmq/issues/264#issuecomment-377421278
 
 
    ReentrantLock objLock = messageQueueLock.fetchLockObject(this.messageQueue);
   if(objLock.tryLock())
   {
     .....
   }else
   {
    ConsumeMessageOrderlyService.this.submitConsumeRequestLater(this.messageQueue,this.processQueu,10);
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services