Klasse LocalEndPoint
java.lang.Object
ch.nolix.core.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.core.net.endpoint2.AbstractEndPoint
ch.nolix.core.net.endpoint2.LocalEndPoint
- Alle implementierten Schnittstellen:
IBaseEndPoint, IEndPoint, Closeable, CloseStateRequestable, GroupCloseable, AutoCloseable
A local end point can send messages to an other local end point.
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new local end point that will connect to an other new local end point.LocalEndPoint(AbstractServer abstractServer, String target) Creates a new local end point that will connect to the given target on the given server.LocalEndPoint(ISlot target) Creates a new local end point that will connect to the given target -
Methodenübersicht
Modifikator und TypMethodeBeschreibunggetReplyForRequest(String message) Lets this local end point send the given message.booleansendAndWaitToReply(String message) Lets this local end point send the given message.Von Klasse geerbte Methoden AbstractEndPoint
assertIsOpen, getStoredReplier, hasReplier, noteClose, setReplierVon Klasse geerbte Methoden AbstractBaseEndPoint
getStoredCloseController, getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosedVon Schnittstelle geerbte Methoden IBaseEndPoint
getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPoint
-
Konstruktordetails
-
LocalEndPoint
public LocalEndPoint()Creates a new local end point that will connect to an other new local end point. -
LocalEndPoint
Creates a new local end point that will connect to the given target- Parameter:
target-- Löst aus:
ArgumentIsNullException- if the given target is null.
-
LocalEndPoint
Creates a new local end point that will connect to the given target on the given server.- Parameter:
abstractServer-target-
-
-
Methodendetails
-
getConnectionType
-
getPeerType
-
sendAndWaitToReply
Lets this local end point send the given message.- Parameter:
message-- Gibt zurück:
- the reply to the given message.
- Löst aus:
ClosedArgumentException- if this local end point is closed.
-
getStoredCounterpart
- Gibt zurück:
- the counterpart of this local end point.
-
getCustomTargetSlot
- Gibt zurück:
- the target of this local end point.
- Löst aus:
ArgumentDoesNotHaveAttributeException- if this local end point does not have a target.
-
getReplyForRequest
-
getSecurityMode
-
hasCustomTargetSlot
public boolean hasCustomTargetSlot()
-