public interface MeshClient extends Caller
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseFuture |
asyncCall(Request request,
Class<?> returnType)
async call to mesh. for user
|
Response |
call(Request request)
original calling method. for framework.
|
<T> T |
call(Request request,
Class<T> returnType)
sync call to mesh with return type. for user
|
void |
destroy()
mesh client will destroy inner referer(client and connection)
|
URL |
getUrl() |
void |
init()
after this method is executed, the client state will become available
|
boolean |
isAvailable() |
getInterface<T> T call(Request request, Class<T> returnType) throws Exception
ExceptionResponseFuture asyncCall(Request request, Class<?> returnType) throws Exception
Exceptionvoid init()
boolean isAvailable()
isAvailable 在接口中 Nodevoid destroy()
Copyright © 2023. All rights reserved.