Uses of Interface
io.hekate.network.NetworkEndpoint
-
Packages that use NetworkEndpoint Package Description io.hekate.cluster.internal.gossip io.hekate.network NetworkService
API. -
-
Uses of NetworkEndpoint in io.hekate.cluster.internal.gossip
Methods in io.hekate.cluster.internal.gossip with parameters of type NetworkEndpoint Modifier and Type Method Description void
GossipCommManager. onConnect(GossipProtocol msg, NetworkEndpoint<GossipProtocol> client)
void
GossipCommManager. onDisconnect(NetworkEndpoint<GossipProtocol> from)
void
GossipCommManager. onMessage(NetworkMessage<GossipProtocol> packet, NetworkEndpoint<GossipProtocol> from)
-
Uses of NetworkEndpoint in io.hekate.network
Subinterfaces of NetworkEndpoint in io.hekate.network Modifier and Type Interface Description interface
NetworkClient<T>
Asynchronous network client connection.Methods in io.hekate.network that return types with arguments of type NetworkEndpoint Modifier and Type Method Description List<NetworkEndpoint<?>>
NetworkServer. clients(String protocol)
Returns the list of network endpoints that are currently connected to this server with the specified protocol.List<NetworkEndpoint<?>>
NetworkServer. removeHandler(String protocol)
UnregistersNetworkServerHandler
with the specifiedprotocol identifier
and returns a list ofNetworkEndpoint
s that were connected at the time of this operation.Methods in io.hekate.network with parameters of type NetworkEndpoint Modifier and Type Method Description static <T> NetworkFuture<T>
NetworkFuture. completed(NetworkEndpoint<T> endpoint)
Returns completed future.default void
NetworkServerHandler. onConnect(T login, NetworkEndpoint<T> client)
Called whenNetworkClient
connects to the server.default void
NetworkServerHandler. onDisconnect(NetworkEndpoint<T> client)
Called when client connection is closed.default void
NetworkServerHandler. onFailure(NetworkEndpoint<T> client, Throwable cause)
Called if error happened while communicating with the client.void
NetworkServerHandler. onMessage(NetworkMessage<T> msg, NetworkEndpoint<T> from)
Called when new message is received from the client.Method parameters in io.hekate.network with type arguments of type NetworkEndpoint Modifier and Type Method Description void
NetworkEndpoint. pauseReceiving(Consumer<NetworkEndpoint<T>> callback)
Pauses receiving of messages from a remote peer.void
NetworkEndpoint. resumeReceiving(Consumer<NetworkEndpoint<T>> callback)
Resumes receiving of messages from a remote peer.
-