Package ch.nolix.core.net.endpoint2
Klasse LocalEndPoint
java.lang.Object
ch.nolix.core.net.baseendpoint.BaseEndPoint
ch.nolix.core.net.endpoint2.EndPoint
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.
- Version:
- 2017-05-22
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
KonstruktorBeschreibungCreates a new local end point that will connect to an other new local end point.LocalEndPoint
(BaseServer baseServer, 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
Modifizierer und TypMethodeBeschreibunggetReplyForRequest
(String message) Lets this local end point send the given message.boolean
sendAndWaitToReply
(String message) Lets this local end point send the given message.Von Klasse geerbte Methoden ch.nolix.core.net.endpoint2.EndPoint
assertIsOpen, getStoredReplier, hasReplier, noteClose, setReplier
Von Klasse geerbte Methoden ch.nolix.core.net.baseendpoint.BaseEndPoint
getStoredCloseController, getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPoint
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.CloseStateRequestable
isOpen
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosed
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.netapi.baseendpointapi.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:
baseServer
-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
Lets this local end point send the given message.- Parameter:
message
-- Gibt zurück:
- the reply to the given message from this local end point.
-
getSecurityLevel
-
hasCustomTargetSlot
public boolean hasCustomTargetSlot()
-