public enum IceProcessingState extends Enum<IceProcessingState>
Agent
before it starts
processing. This is also an Agent
's default state. The second one
is the "Terminated" state. RFC 5245 says that once ICE processing
has reached the Completed state for all peers for media streams using
those candidates, the agent SHOULD wait an additional three seconds,
and then it MAY cease responding to checks or generating triggered
checks on that candidate. It MAY free the candidate at that time.
which reflects the state where an Agent does not need to handle incoming
checks any more and is ready for garbage collection. This is the state we
refer to with "Terminated".Enum Constant and Description |
---|
COMPLETED
The state is Completed when ICE processing is complete.
|
FAILED
The state is Completed when ICE processing is Failed if processing
failed without success.
|
RUNNING
The state is equal to Running while ICE processing is under way.
|
TERMINATED
Once ICE processing has reached the Completed state for all peers for
media streams using those candidates, the agent SHOULD wait an
additional three seconds, and then it MAY cease responding to checks
or generating triggered checks on that candidate.
|
WAITING
The state is equal to Waiting if ICE processing has not started
for the corresponding
Agent . |
Modifier and Type | Field and Description |
---|---|
private String |
stateName
The name of this IceProcessingState instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEstablished()
Returns true iff the state is one in which a connection
has been established, that is either COMPLETED or
TERMINATED.
|
boolean |
isOver()
Determines whether an
Agent in this state has finished its ICE
processing. |
String |
toString()
Returns the name of this IceProcessingState (e.g.
|
static IceProcessingState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IceProcessingState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IceProcessingState WAITING
Agent
.public static final IceProcessingState RUNNING
public static final IceProcessingState COMPLETED
public static final IceProcessingState FAILED
public static final IceProcessingState TERMINATED
private final String stateName
public static IceProcessingState[] values()
for (IceProcessingState c : IceProcessingState.values()) System.out.println(c);
public static IceProcessingState 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 nullpublic String toString()
toString
in class Enum<IceProcessingState>
public boolean isOver()
Agent
in this state has finished its ICE
processing.true
if an Agent
in this state has finished its
ICE processing; otherwise, false
public boolean isEstablished()
Copyright © 2018. All rights reserved.