| Package | Description |
|---|---|
| com.taobao.api.internal.tmc | |
| com.taobao.api.internal.toplink.channel | |
| com.taobao.api.internal.toplink.endpoint | |
| com.taobao.api.internal.toplink.schedule |
| Modifier and Type | Method and Description |
|---|---|
void |
TmcClient.connect()
连接到线上服务器。
|
void |
TmcClient.connect(String uri)
连接到指定的服务器。
|
void |
TmcClient.connect(String uri,
boolean async)
连接到指定的服务器。
|
void |
TmcClient.send(String topic,
String content)
向指定的主题发布一条与用户无关的消息。
|
void |
TmcClient.send(String topic,
String content,
String session)
向指定的主题发布一条与用户相关的消息。
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChannelException |
class |
ChannelTimeoutException |
| Modifier and Type | Method and Description |
|---|---|
LinkException |
SendCallback.getError() |
| Modifier and Type | Method and Description |
|---|---|
void |
SendCallback.setError(LinkException error) |
| Modifier and Type | Method and Description |
|---|---|
void |
EndpointContext.error(int statusCode,
String statusPhase) |
EndpointProxy |
Endpoint.getEndpoint(Identity target) |
EndpointProxy |
Endpoint.getEndpoint(Identity target,
URI uri) |
EndpointProxy |
Endpoint.getEndpoint(Identity target,
URI uri,
Map<String,Object> extras) |
void |
SingleProxyStateHandler.onConnect(EndpointProxy endpoint,
ChannelSenderWrapper sender,
Identity connectingIdentity) |
void |
StateHandler.onConnect(EndpointProxy endpoint,
ChannelSenderWrapper sender,
Identity connectingIdentity) |
Identity |
Identity.parse(Object data) |
Identity |
DefaultIdentity.parse(Object data) |
void |
EndpointContext.reply(Map<String,Object> message) |
Map<String,Object> |
EndpointProxy.sendAndWait(ChannelSenderWrapper sender,
Map<String,Object> message,
int timeout) |
protected Map<String,Object> |
Endpoint.sendAndWait(EndpointProxy e,
ChannelSender sender,
Message message,
int timeout) |
Map<String,Object> |
EndpointProxy.sendAndWait(Map<String,Object> message) |
Map<String,Object> |
EndpointProxy.sendAndWait(Map<String,Object> message,
int timeout) |
void |
SendCallback.waitReturn(int timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
Scheduler.schedule(T t,
Runnable task) |
Copyright © 2021. All rights reserved.