Home | History | Annotate | Download | only in grpc

Lines Matching defs:state

26  * <p>If the state is {@code TRANSIENT_FAILURE}, the status is never {@code OK}.  For other states,
31 private final ConnectivityState state;
35 * Returns an instance for a state that is not {@code TRANSIENT_FAILURE}.
37 * @throws IllegalArgumentException if {@code state} is {@code TRANSIENT_FAILURE}.
39 public static ConnectivityStateInfo forNonError(ConnectivityState state) {
41 state != TRANSIENT_FAILURE,
42 "state is TRANSIENT_ERROR. Use forError() instead");
43 return new ConnectivityStateInfo(state, Status.OK);
55 * Returns the state.
58 return state;
62 * Returns the status associated with the state.
64 * <p>If the state is {@code TRANSIENT_FAILURE}, the status is never {@code OK}. For other
77 return state.equals(o.state) && status.equals(o.status);
82 return state.hashCode() ^ status.hashCode();
88 return state.toString();
90 return state + "(" + status + ")";
93 private ConnectivityStateInfo(ConnectivityState state, Status status) {
94 this.state = Preconditions.checkNotNull(state, "state is null");