Skip to content

Commit

Permalink
Merge pull request #12 from codingapi/tx-lcn-xiaoyu
Browse files Browse the repository at this point in the history
新增相关注释
  • Loading branch information
xlorne authored Nov 29, 2017
2 parents 3ad6fb1 + 5d46103 commit 34b659a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
@Activation(key = {MotanConstants.NODE_TYPE_SERVICE, MotanConstants.NODE_TYPE_REFERER})
public class TransactionFilter implements Filter {

/**
* 实现新浪的filter接口 rpc传参数
* @param caller caller
* @param request 请求
* @return Response
*/
public Response filter(Caller<?> caller, Request request) {
TxTransactionLocal txTransactionLocal = TxTransactionLocal.current();
if (txTransactionLocal != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public class TimeOutServiceImpl implements TimeOutService {
private BasicServiceConfigBean basicServiceConfigBean;


/**
* 加载超时时间
* @param timeOut timeOut
*/
public void loadOutTime(int timeOut) {
int finalTimeOut = (null != basicServiceConfigBean.getRequestTimeout() ? basicServiceConfigBean.getRequestTimeout() : timeOut);
Constants.maxOutTime = timeOut;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
*/
public interface TimeOutService {

/**
* 获取超时时间
* @param timeOut timeOut
*/
void loadOutTime(int timeOut);
}

0 comments on commit 34b659a

Please sign in to comment.