-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix spell mistake and some test codes (#194)
- Loading branch information
Showing
13 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,11 @@ | |
|
||
/** | ||
* Extends this to process user defined request in ASYNC way.<br> | ||
* If you want process reqeuest in SYNC way, please extends {@link SyncMutiInterestUserProcessor}. | ||
* If you want process request in SYNC way, please extends {@link SyncMultiInterestUserProcessor}. | ||
* @author muyun.cyt ([email protected]) 2018/7/5 11:19 AM | ||
*/ | ||
public abstract class AsynMultiInterestUserProcessor<T> extends | ||
AbstractMultiInterestUserProcessor<T> { | ||
public abstract class AsyncMultiInterestUserProcessor<T> extends | ||
AbstractMultiInterestUserProcessor<T> { | ||
/** | ||
* unsupported here! | ||
* | ||
|
@@ -36,7 +36,7 @@ public abstract class AsynMultiInterestUserProcessor<T> extends | |
@Override | ||
public Object handleRequest(BizContext bizCtx, T request) throws Exception { | ||
throw new UnsupportedOperationException( | ||
"SYNC handle request is unsupported in AsynMultiInterestUserProcessor!"); | ||
"SYNC handle request is unsupported in AsyncMultiInterestUserProcessor!"); | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,12 @@ | |
|
||
/** | ||
* Extends this to process user defined request in SYNC way.<br> | ||
* If you want process reqeuest in ASYNC way, please extends {@link AsynMultiInterestUserProcessor}. | ||
* If you want process request in ASYNC way, please extends {@link AsyncMultiInterestUserProcessor}. | ||
* | ||
* @author muyun.cyt ([email protected]) 2018/7/5 11:19 AM | ||
*/ | ||
public abstract class SyncMutiInterestUserProcessor<T> extends | ||
AbstractMultiInterestUserProcessor<T> { | ||
public abstract class SyncMultiInterestUserProcessor<T> extends | ||
AbstractMultiInterestUserProcessor<T> { | ||
|
||
/** | ||
* @see com.alipay.remoting.rpc.protocol.UserProcessor#handleRequest(com.alipay.remoting.BizContext, java.lang.Object) | ||
|
@@ -44,7 +44,7 @@ public abstract class SyncMutiInterestUserProcessor<T> extends | |
@Override | ||
public void handleRequest(BizContext bizCtx, AsyncContext asyncCtx, T request) { | ||
throw new UnsupportedOperationException( | ||
"ASYNC handle request is unsupported in SyncMutiInterestUserProcessor!"); | ||
"ASYNC handle request is unsupported in SyncMultiInterestUserProcessor!"); | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,14 +32,14 @@ | |
import com.alipay.remoting.InvokeContext; | ||
import com.alipay.remoting.NamedThreadFactory; | ||
import com.alipay.remoting.rpc.common.RequestBody; | ||
import com.alipay.remoting.rpc.protocol.SyncMutiInterestUserProcessor; | ||
import com.alipay.remoting.rpc.protocol.SyncMultiInterestUserProcessor; | ||
|
||
/** | ||
* @antuor muyun.cyt ([email protected]) 2018/7/5 11:20 AM | ||
*/ | ||
public class SimpleClientMultiInterestUserProcessor | ||
extends | ||
SyncMutiInterestUserProcessor<MultiInterestBaseRequestBody> { | ||
SyncMultiInterestUserProcessor<MultiInterestBaseRequestBody> { | ||
/** logger */ | ||
private static final Logger logger = LoggerFactory | ||
.getLogger(SimpleClientMultiInterestUserProcessor.class); | ||
|
@@ -237,4 +237,4 @@ public List<String> multiInterest() { | |
list.add(RequestBodyC2.class.getName()); | ||
return list; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,14 +33,14 @@ | |
import com.alipay.remoting.InvokeContext; | ||
import com.alipay.remoting.NamedThreadFactory; | ||
import com.alipay.remoting.rpc.common.RequestBody; | ||
import com.alipay.remoting.rpc.protocol.SyncMutiInterestUserProcessor; | ||
import com.alipay.remoting.rpc.protocol.SyncMultiInterestUserProcessor; | ||
|
||
/** | ||
* @antuor muyun.cyt ([email protected]) 2018/7/5 11:20 AM | ||
*/ | ||
public class SimpleServerMultiInterestUserProcessor | ||
extends | ||
SyncMutiInterestUserProcessor<MultiInterestBaseRequestBody> { | ||
SyncMultiInterestUserProcessor<MultiInterestBaseRequestBody> { | ||
|
||
/** logger */ | ||
private static final Logger logger = LoggerFactory | ||
|