public enum HandshakeStatus extends Enum<HandshakeStatus>
enum
describing the current handshaking state of an
IEngine
implementation.Enum Constant and Description |
---|
FINISHED
An
IEngine implementation has just finished handshaking. |
NEED_TASK
An
IEngine implementation needs the results of one (or more)
delegated tasks. |
NEED_UNWRAP
An
IEngine implementation needs to receive data from the
remote side. |
NEED_UNWRAP_AGAIN
An
IEngine implementation is ready to unwrap data that has been
previously received from the remote side. |
NEED_WRAP
An
IEngine implementation must send data to the remote side. |
NOT_HANDSHAKING
An
IEngine implementation is not currently handshaking. |
Modifier and Type | Method and Description |
---|---|
static HandshakeStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HandshakeStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HandshakeStatus FINISHED
IEngine
implementation has just finished handshaking.
This value should be only generated by a call to IEngine.wrap(java.nio.ByteBuffer[], java.nio.ByteBuffer)
or
IEngine.unwrap(java.nio.ByteBuffer, java.nio.ByteBuffer)
when that call finishes a handshake. It shouldn't
be generated by IEngine.getHandshakeStatus()
.
public static final HandshakeStatus NEED_TASK
IEngine
implementation needs the results of one (or more)
delegated tasks.public static final HandshakeStatus NEED_UNWRAP
IEngine
implementation needs to receive data from the
remote side.public static final HandshakeStatus NEED_UNWRAP_AGAIN
IEngine
implementation is ready to unwrap data that has been
previously received from the remote side. The data does not need to
be received again.public static final HandshakeStatus NEED_WRAP
IEngine
implementation must send data to the remote side.public static final HandshakeStatus NOT_HANDSHAKING
IEngine
implementation is not currently handshaking.public static HandshakeStatus[] values()
for (HandshakeStatus c : HandshakeStatus.values()) System.out.println(c);
public static HandshakeStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017–2021 SNF4J.ORG. All rights reserved.