public class ConsumerService extends Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConsumerService.MockProxy |
| 构造器和说明 |
|---|
ConsumerService() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
addresses() |
ConsumerService |
callbackMethod(String methodName,
Object listener) |
void |
cancelAllMock() |
void |
cancelMock(List<Method> methods) |
void |
cancelMock(Method method) |
ConsumerService |
futureMethod(String methodName) |
ConsumerService |
generic() |
Object |
genericInvoke(GenericMethod method) |
Object |
getMockService() |
ConsumerService |
group(String group) |
boolean |
isConsumed() |
ConsumerService |
methodTimeout(String methodName,
int timeout) |
void |
mock(List<Method> methods,
Object expectValue) |
void |
mock(Method method,
Object expectValue) |
ConsumerService |
newConsumer() |
ConsumerService |
service(String service) |
Object |
subscribe() |
void |
sync() |
ConsumerService |
targetIp(String ip) |
ConsumerService |
timeout(int timeout) |
ConsumerService |
version(String version) |
public ConsumerService newConsumer()
public ConsumerService service(String service)
public ConsumerService version(String version)
public ConsumerService group(String group)
public ConsumerService generic()
public Object genericInvoke(GenericMethod method) throws Exception
Exceptionpublic ConsumerService timeout(int timeout)
public ConsumerService methodTimeout(String methodName, int timeout)
public Object subscribe()
public Object getMockService()
public void cancelMock(Method method)
public void cancelAllMock()
public ConsumerService targetIp(String ip) throws Exception
Exceptionpublic boolean isConsumed()
public ConsumerService futureMethod(String methodName)
public ConsumerService callbackMethod(String methodName, Object listener)
Copyright © 2016. All rights reserved.