Enum-Klasse ConnectorState
- Alle implementierten Schnittstellen:
Serializable
,Comparable<ConnectorState>
,Constable
IConnector
.- Autor:
- Eike Stepper
- Siehe auch:
- No Extend
- This interface is not intended to be extended by clients.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum-Konstanten - Übersicht
Enum-KonstantenEnum-KonstanteBeschreibungIndicates that theIConnector
has successfully managed to establish and negotiate the underlying physical connection and is ready now to perform actual communications.Indicates that theIConnector
is currently trying to establish an underlying physical connection like a TCP socket connection.Indicates that theIConnector
has not been connected yet or has been disconnected after being connected previously.Indicates that theIConnector
has successfully managed to establish the underlying physical connection and has currently delegated control over this connection to anINegotiator
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ConnectorState
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.static ConnectorState[]
values()
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
-
Enum-Konstanten - Details
-
DISCONNECTED
Indicates that theIConnector
has not been connected yet or has been disconnected after being connected previously.A connector is
DISCONNECTED
if and only if it is notactive
. A transition toCONNECTING
can be triggered by callingIConnector.connect(long)
orIConnector.connectAsync()
.- Siehe auch:
-
CONNECTING
Indicates that theIConnector
is currently trying to establish an underlying physical connection like a TCP socket connection.A connector can only be
CONNECTING
if it isactive
. As soon as the underlying physical connection is successfully established the state of the connector automatically transitions toNEGOTIATING
.- Siehe auch:
-
NEGOTIATING
Indicates that theIConnector
has successfully managed to establish the underlying physical connection and has currently delegated control over this connection to anINegotiator
.A connector can only be
NEGOTIATING
if it isactive
and a negotiator has been supplied. As soon as the negotiator has successfully negotiated both peers (or a negotiator has not been supplied) the state of the connector automatically transitions toCONNECTED
.Negotiators can implement arbitrary handshake protocols, challenge-response sequences or other authentication procedures. They can also be used to initially setup connection encryption if the connector implementation is not able to do so.
- Siehe auch:
-
CONNECTED
Indicates that theIConnector
has successfully managed to establish and negotiate the underlying physical connection and is ready now to perform actual communications.A connector can only be
CONNECTED
if it isactive
. A transition toDISCONNECTED
can be triggered by callingCloseable.close()
.- Siehe auch:
-
-
Methodendetails
-
values
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.- Gibt zurück:
- ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
-
valueOf
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)- Parameter:
name
- Name der zurückzugebenden Enumerationskonstante.- Gibt zurück:
- Enumerationskonstante mit dem angegebenen Namen
- Löst aus:
IllegalArgumentException
- wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthältNullPointerException
- wenn das Argument nicht angegeben wird
-