Skip to content

ConsumeMessageOrderlyService can use ReentrantLock  #264

@zangyk

Description

@zangyk

The ConsumeRequest class code is :
final Object objLock = messageQueueLock.fetchLockObject(this.messageQueue);
synchronized (objLock) {
......
}
it will block the messageQueue and other messageQueue to process
we can use ReentrantLock.tryLock()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions