Klasse LocalEndPoint

Alle implementierten Schnittstellen:
IBaseEndPoint, IEndPoint, Closeable, CloseStateRequestable, GroupCloseable, AutoCloseable

public final class LocalEndPoint extends EndPoint
A local end point can send messages to an other local end point.
Version:
2017-05-22
Autor:
Silvan Wyss
  • Konstruktordetails

    • LocalEndPoint

      public LocalEndPoint()
      Creates a new local end point that will connect to an other new local end point.
    • LocalEndPoint

      public LocalEndPoint(ISlot target)
      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

      public LocalEndPoint(BaseServer baseServer, String target)
      Creates a new local end point that will connect to the given target on the given server.
      Parameter:
      baseServer -
      target -
  • Methodendetails

    • getConnectionType

      public ConnectionType getConnectionType()
    • getPeerType

      public PeerType getPeerType()
    • sendAndWaitToReply

      public String sendAndWaitToReply(String message)
      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

      public LocalEndPoint getStoredCounterpart()
      Gibt zurück:
      the counterpart of this local end point.
    • getCustomTargetSlot

      public String 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

      public String getReplyForRequest(String message)
      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

      public SecurityMode getSecurityLevel()
    • hasCustomTargetSlot

      public boolean hasCustomTargetSlot()