Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持联锁 #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

支持联锁 #29

wants to merge 3 commits into from

Conversation

xuguangwu
Copy link

  1. 因业务需求,需要同时锁住两笔账单做处理,该框架尚不支持MultiLock,就进行了改造。我的思路是如果参数中有多个标记了@KlockKey的就说明需要对多行数据加锁,且@KlockKey与@klock中的keys作用有重合,所以单独拿出来作联锁处理。LockFactory中的getLock方法入参为可变,可以传入多个LockInfo,进而实例化多个锁对象。
  2. 单词拼写错误KlockAspectHandler中的curentLock
  3. 我建议代码可以格式化

希望可以采纳,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant