Class LocalEndPoint
java.lang.Object
ch.nolix.base.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.base.net.level2server.AbstractEndPoint
ch.nolix.base.net.level2server.LocalEndPoint
- All Implemented Interfaces:
IBaseEndPoint, IEndPoint, Closeable, CloseStateRequestable, GroupCloseable, AutoCloseable
A local end point can send messages to an other local end point.
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptiongetReplyForRequest(String message) Lets this local end point send the given message.booleansendAndWaitToReply(String message) Lets this local end point send the given message.static LocalEndPointtoServerAndSlot(AbstractServer server, String slot) static LocalEndPointMethods inherited from class AbstractEndPoint
hasReplier, noteClose, setReplierMethods 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:
NullPointerException- if the given slot is null.
-
toServerAndSlot
- Parameters:
server-slot-- 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 slot is null.RuntimeException- if the given slot is null.
-
getConnectionType
-
getPeerType
-
sendAndWaitToReply
Lets this local end point send the given message.- Parameters:
message-- Returns:
- the reply to the given message.
- Throws:
RuntimeException- if this local end point is closed.
-
getStoredCounterpart
- Returns:
- the counterpart of this local end point.
-
getCustomTargetSlot
- Returns:
- the target of this local end point.
- Throws:
ArgumentDoesNotHaveAttributeException- if this local end point does not have a target.
-
getReplyForRequest
-
getSecurityMode
-
hasCustomTargetSlot
public boolean hasCustomTargetSlot()
-