Skip to content

Commit edbfd17

Browse files
committed
fix: 修复方法签名
1 parent 9e1dbba commit edbfd17

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

afybroker-core/src/main/java/com/alipay/remoting/rpc/protocol/AsyncMultiInterestUserProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public Object handleRequest(BizContext bizCtx, T request) throws Exception {
4444
* @see UserProcessor#handleRequest(BizContext, AsyncContext, Object)
4545
*/
4646
@Override
47-
public abstract void handleRequest(BizContext bizCtx, AsyncContext asyncCtx, T request);
47+
public abstract void handleRequest(BizContext bizCtx, AsyncContext asyncCtx, T request) throws Exception;
4848

4949
/**
5050
* @see MultiInterestUserProcessor#multiInterest()

afybroker-core/src/main/java/com/alipay/remoting/rpc/protocol/SyncMultiInterestUserProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public abstract class SyncMultiInterestUserProcessor<T> extends
4242
* @see UserProcessor#handleRequest(BizContext, AsyncContext, Object)
4343
*/
4444
@Override
45-
public void handleRequest(BizContext bizCtx, AsyncContext asyncCtx, T request) {
45+
public void handleRequest(BizContext bizCtx, AsyncContext asyncCtx, T request) throws Exception {
4646
throw new UnsupportedOperationException(
4747
"ASYNC handle request is unsupported in SyncMultiInterestUserProcessor!");
4848
}

afybroker-server/src/main/java/net/afyer/afybroker/server/Broker.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ public static BrokerPlayer getPlayer(String name) {
104104
* 通过名称获取客户端代理
105105
*/
106106
@Nullable
107-
public BrokerClientItem getClient(String name) {
107+
public static BrokerClientItem getClient(String name) {
108108
return server.getClient(name);
109109
}
110110

111111
/**
112112
* 通过 {@link BizContext} 获取玩家代理
113113
*/
114114
@Nullable
115-
public BrokerClientItem getClient(BizContext bizContext) {
115+
public static BrokerClientItem getClient(BizContext bizContext) {
116116
return server.getClient(bizContext);
117117
}
118118

0 commit comments

Comments
 (0)