public class Endpoint extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
TIMOUT |
| 构造器和说明 |
|---|
Endpoint(Identity identity) |
Endpoint(LoggerFactory loggerFactory,
Identity identity) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bind(ServerChannel channel) |
Iterator<EndpointProxy> |
getConnected() |
EndpointProxy |
getEndpoint(Identity target) |
EndpointProxy |
getEndpoint(Identity target,
URI uri) |
EndpointProxy |
getEndpoint(Identity target,
URI uri,
Map<String,Object> extras) |
Identity |
getIdentity() |
MessageHandler |
getMessageHandler() |
protected void |
send(ChannelSender sender,
Message message) |
protected Map<String,Object> |
sendAndWait(EndpointProxy e,
ChannelSender sender,
Message message,
int timeout) |
void |
setChannelHandler(EndpointChannelHandler channelHandler) |
void |
setClientChannelSelector(ClientChannelSelector selector) |
void |
setMessageHandler(MessageHandler handler) |
void |
setScheduler(Scheduler<Identity> scheduler) |
void |
unbindAll() |
public Endpoint(Identity identity)
public Endpoint(LoggerFactory loggerFactory, Identity identity)
public Identity getIdentity()
public void setMessageHandler(MessageHandler handler)
public MessageHandler getMessageHandler()
public void setChannelHandler(EndpointChannelHandler channelHandler)
public void setClientChannelSelector(ClientChannelSelector selector)
public void bind(ServerChannel channel)
public void unbindAll()
public Iterator<EndpointProxy> getConnected()
public EndpointProxy getEndpoint(Identity target, URI uri) throws LinkException
LinkExceptionpublic EndpointProxy getEndpoint(Identity target, URI uri, Map<String,Object> extras) throws LinkException
LinkExceptionpublic EndpointProxy getEndpoint(Identity target) throws LinkException
LinkExceptionprotected void send(ChannelSender sender, Message message) throws ChannelException
ChannelExceptionprotected Map<String,Object> sendAndWait(EndpointProxy e, ChannelSender sender, Message message, int timeout) throws LinkException
LinkExceptionCopyright © 2020. All rights reserved.