Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ujued committed Jan 14, 2019
1 parent 1e835d3 commit 66f731d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ private RpcCmdContext() {
/**
* 并发可能会出现脏读
*
* @param key
* @return
* @param key key
* @return hasKey
*/
public synchronized boolean hasKey(String key) {
return map.containsKey(key);
Expand All @@ -93,8 +93,8 @@ public synchronized boolean hasKey(String key) {
/**
* 并发可能会出重复添加
*
* @param key
* @return
* @param key key
* @return RpcContent
*/
public synchronized RpcContent addKey(String key) {
RpcContent rpcContent = createRpcContent();
Expand All @@ -106,7 +106,7 @@ public synchronized RpcContent addKey(String key) {
/**
* 空闲队列处理
*
* @return
* @return RpcContent
*/
private RpcContent findRpcContent() {
synchronized (freeList) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

/**
* @author lorne
* @date 2019/1/5
* @description
*/
public class RandomLoadBalance implements RpcLoadBalance {

Expand Down

0 comments on commit 66f731d

Please sign in to comment.