Interface NetworkConnectionBase
- All Superinterfaces:
ControllerAllocationManagement
- All Known Subinterfaces:
NetworkConnection
- All Known Implementing Classes:
NetworkConnectionHelper, NetworkConnectionImpl, PeerForeignNetworkConnection
-
Field Summary
Fields inherited from interface ControllerAllocationManagement
UNALLOCATED_PARTITION -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRateLimiter(LimitedRateGroup limiter, boolean upload) intGet the connection's incoming message queue.intGet the connection's outgoing message queue.intgetRateLimiters(boolean upload) Get the connection's data transport interface.intbooleanisClosed()booleanbooleanIs the connection within the local LAN network.voidnotifyOfException(Throwable error) Inform connection of a thrown exception.voidremoveRateLimiter(LimitedRateGroup limiter, boolean upload) voidvoidsetDownloadLimit(int limit) voidsetUploadLimit(int limit)
-
Method Details
-
getEndpoint
ConnectionEndpoint getEndpoint() -
getPartitionID
int getPartitionID() -
notifyOfException
Inform connection of a thrown exception.- Parameters:
error- exception
-
getOutgoingMessageQueue
OutgoingMessageQueue getOutgoingMessageQueue()Get the connection's outgoing message queue.- Returns:
- outbound message queue
-
getIncomingMessageQueue
IncomingMessageQueue getIncomingMessageQueue()Get the connection's incoming message queue.- Returns:
- inbound message queue
-
getTransportBase
TransportBase getTransportBase()Get the connection's data transport interface.- Returns:
- the transport - MAY BE NULL if not yet fully connected
-
getMssSize
int getMssSize() -
isIncoming
boolean isIncoming() -
isLANLocal
boolean isLANLocal()Is the connection within the local LAN network.- Returns:
- true if within LAN, false of outside the LAN segment
-
resetLANLocalStatus
void resetLANLocalStatus() -
isClosed
boolean isClosed() -
setUploadLimit
void setUploadLimit(int limit) -
getUploadLimit
int getUploadLimit() -
setDownloadLimit
void setDownloadLimit(int limit) -
getDownloadLimit
int getDownloadLimit() -
getRateLimiters
-
addRateLimiter
-
removeRateLimiter
-
getString
String getString()
-