Package pt.unl.fct.di.novasys.network
Interface Connection<T>
- All Known Implementing Classes:
ConnectionHandler
,InConnectionHandler
,OutConnectionHandler
public interface Connection<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
io.netty.channel.EventLoop
getLoop()
getPeer()
long
long
long
long
long
long
long
long
boolean
boolean
void
sendMessage
(T msg) void
sendMessage
(T msg, io.netty.util.concurrent.Promise<Void> p)
-
Method Details
-
getPeer
Host getPeer() -
getPeerAttributes
Attributes getPeerAttributes() -
getSelfAttributes
Attributes getSelfAttributes() -
disconnect
void disconnect() -
isInbound
boolean isInbound() -
isOutbound
boolean isOutbound() -
sendMessage
-
sendMessage
-
getLoop
io.netty.channel.EventLoop getLoop() -
getSentAppBytes
long getSentAppBytes() -
getSentAppMessages
long getSentAppMessages() -
getSentControlBytes
long getSentControlBytes() -
getSentControlMessages
long getSentControlMessages() -
getReceivedAppBytes
long getReceivedAppBytes() -
getReceivedAppMessages
long getReceivedAppMessages() -
getReceivedControlBytes
long getReceivedControlBytes() -
getReceivedControlMessages
long getReceivedControlMessages()
-