Class LocalEndPoint
java.lang.Object
ch.nolix.base.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.base.net.level1server.AbstractEndPoint
ch.nolix.base.net.level1server.LocalEndPoint
- All Implemented Interfaces:
IBaseEndPoint, IEndPoint, Closeable, CloseStateRequestable, GroupCloseable, 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, getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosedMethods inherited from interface IBaseEndPoint
getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPoint
-
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 null.RuntimeException- if the given targetSlot is null.RuntimeException- if the given targetSlot is blank.
-
getConnectionType
-
getPeerType
-
getSecurityMode
-
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 null.RuntimeException- if the currentLocalEndPointis closed.
-