Package org.eclipse.net4j.connector

# Enum-Klasse ConnectorState

java.lang.Object
java.lang.Enum<ConnectorState>
org.eclipse.net4j.connector.ConnectorState

Alle implementierten Schnittstellen:
  `Serializable`, `Comparable<ConnectorState>`, `Constable`

public enum ConnectorState extends Enum<ConnectorState>
Enumerates the lifecycle states of an `IConnector`.

Autor:
  Eike Stepper
Siehe auch:
  - `IConnector.getState()`
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-Konstanten
Enum-Konstante
Beschreibung
`CONNECTED`
Indicates that the `IConnector` has successfully managed to establish and negotiate the underlying physical connection and is ready now to perform actual communications.
`CONNECTING`
Indicates that the `IConnector` is currently trying to establish an underlying physical connection like a TCP socket connection.
`DISCONNECTED`
Indicates that the `IConnector` has not been connected yet or has been disconnected after being connected previously.
`NEGOTIATING`
Indicates that the `IConnector` has successfully managed to establish the underlying physical connection and has currently delegated control over this connection to an `INegotiator`.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static ConnectorState`
`valueOf(String name)`
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.

### Von Klasse geerbte Methoden java.lang.Enum

`clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

### Von Klasse geerbte Methoden java.lang.Object

`getClass, notify, notifyAll, wait, wait, wait`

## Enum-Konstanten - Details

### DISCONNECTED

public static final ConnectorState DISCONNECTED
Indicates that the `IConnector` has not been connected yet or has been disconnected after being connected previously.

A connector is `DISCONNECTED` if and only if it is not `active`. A transition to `CONNECTING` can be triggered by calling `IConnector.connect(long)` or `IConnector.connectAsync()`.

Siehe auch:
  - `IConnector.getState()`
  - `ILifecycle.isActive()`

### CONNECTING

public static final ConnectorState CONNECTING
Indicates that the `IConnector` is currently trying to establish an underlying physical connection like a TCP socket connection.

A connector can only be `CONNECTING` if it is `active`. As soon as the underlying physical connection is successfully established the state of the connector automatically transitions to `NEGOTIATING`.

Siehe auch:
  - `IConnector.getState()`
  - `ILifecycle.isActive()`

### NEGOTIATING

public static final ConnectorState NEGOTIATING
Indicates that the `IConnector` has successfully managed to establish the underlying physical connection and has currently delegated control over this connection to an `INegotiator`.

A connector can only be `NEGOTIATING` if it is `active` 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 to `CONNECTED`.

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:
  - `IConnector.getState()`
  - `ILifecycle.isActive()`

### CONNECTED

public static final ConnectorState CONNECTED
Indicates that the `IConnector` 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 is `active`. A transition to `DISCONNECTED` can be triggered by calling `Closeable.close()`.

Siehe auch:
  - `IConnector.getState()`
  - `ILifecycle.isActive()`

## Methodendetails

### values

public static ConnectorState[] 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

public static ConnectorState valueOf(String name)
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ält
  `NullPointerException` - wenn das Argument nicht angegeben wird