-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum IceProcessingStateRFC 5245 mentions that ICE processing across all media streams also has a state associated with it. This state is equal to Running while ICE processing is under way. The state is Completed when ICE processing is complete and Failed if it failed without success. For convenience reasons we are also adding two extra states. The first one is the Waiting state that reflects the state of an 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 Summary
Enum Constants Enum Constant Description TERMINATEDOnce 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. This is also when an agent would enter the terminated state.
FAILEDThe state is Completed when ICE processing is Failed if processing failed without success.
COMPLETEDThe state is Completed when ICE processing is complete.
RUNNINGThe state is equal to Running while ICE processing is under way.
WAITINGThe state is equal to Waiting if ICE processing has not started for the corresponding Agent.
-
Method Summary
Modifier and Type Method Description StringtoString()Returns the name of this IceProcessingState (e.g. booleanisOver()Determines whether an Agent in this state has finished its ICE processing. booleanisEstablished()Returns true iff the state is one in which a connection has been established, that is either COMPLETED or TERMINATED. static Array<IceProcessingState>values()static IceProcessingStatevalueOf(String name)-
-
Method Detail
-
toString
String toString()
Returns the name of this IceProcessingState (e.g. "Running", "Completed", or "Failed").
-
isEstablished
boolean isEstablished()
Returns true iff the state is one in which a connection has been established, that is either COMPLETED or TERMINATED.
-
values
static Array<IceProcessingState> values()
-
valueOf
static IceProcessingState valueOf(String name)
-
-
-
-