Class LocalEndPoint
java.lang.Object
ch.nolix.base.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.base.net.senderandreceiverserver.AbstractEndPoint
ch.nolix.base.net.senderandreceiverserver.LocalEndPoint
- All Implemented Interfaces:
BaseEndPoint, ConnectionTypeHolder, SecurityModeHolder, EndPoint, Closeable, GroupCloseable, OpennessRequestable, AutoCloseable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidLets the currentGroupCloseablenote a close.voidsendMessage(String message) Lets the currentLocalEndPointsend the given message.static LocalEndPointstatic LocalEndPointtoTargetSlotOnServer(AbstractServer server, String targetSlot) Methods inherited from class AbstractEndPoint
getCustomTargetSlot, hasCustomTargetSlot, hasReceiver, setReceiverMethods inherited from class AbstractBaseEndPoint
getStoredCloseController, getTargetSlotDefinitionType, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseEndPoint
getTargetSlotDefinitionType, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosedMethods inherited from interface OpennessRequestable
isOpen
-
Method Details
-
toSlot
- Parameters:
slot-- Returns:
- a new
LocalEndPointthat will connect to the given slot - Throws:
RuntimeException- if the given target is null
-
toTargetSlotOnServer
- Parameters:
server-targetSlot-- Returns:
- a new
LocalEndPointthat will connect to the given slot on the given server - Throws:
NullPointerException- if the given server is nullRuntimeException- if the given targetSlot is nullRuntimeException- if the given targetSlot is blank
-
getConnectionType
- Returns:
- the
ConnectionTypeof the currentConnectionTypeHolder
-
getPeerType
-
getSecurityMode
- Returns:
- the
SecurityModeof the currentSecurityModeHolder
-
noteClose
public void noteClose()Lets the currentGroupCloseablenote a close. -
sendMessage
Lets the currentLocalEndPointsend the given message.- Parameters:
message-- Throws:
RuntimeException- if the given message is nullRuntimeException- if the currentLocalEndPointis closed
-