Class ClusterWaitType
- java.lang.Object
-
- com.palantir.docker.compose.events.ClusterWaitType
-
@Generated("com.palantir.conjure.java.types.EnumGenerator") @Immutable public final class ClusterWaitType extends java.lang.ObjectDifferentiates cluster waits as being for docker-compose "native healthchecks" or user supplied code.This class is used instead of a native enum to support unknown values. Rather than throw an exception, the
valueOf(java.lang.String)method defaults to a new instantiation ofClusterWaitTypewhereget()will returnClusterWaitType.Value.UNKNOWN.For example,
ClusterWaitType.valueOf("corrupted value").get()will returnClusterWaitType.Value.UNKNOWN, buttoString()will return "corrupted value".There is no method to access all instantiations of this class, since they cannot be known at compile time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterWaitType.Valuestatic interfaceClusterWaitType.Visitor<T>
-
Field Summary
Fields Modifier and Type Field Description static ClusterWaitTypeNATIVEstatic ClusterWaitTypeUSER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(ClusterWaitType.Visitor<T> visitor)booleanequals(java.lang.Object other)ClusterWaitType.Valueget()inthashCode()java.lang.StringtoString()static ClusterWaitTypevalueOf(java.lang.String value)static java.util.List<ClusterWaitType>values()
-
-
-
Field Detail
-
NATIVE
public static final ClusterWaitType NATIVE
-
USER
public static final ClusterWaitType USER
-
-
Method Detail
-
get
public ClusterWaitType.Value get()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
valueOf
public static ClusterWaitType valueOf(@Nonnull java.lang.String value)
-
accept
public <T> T accept(ClusterWaitType.Visitor<T> visitor)
-
values
public static java.util.List<ClusterWaitType> values()
-
-