Class FeatureWarning
- java.lang.Object
-
- com.opencloud.sentinel.feature.spi.FeatureWarning
-
- All Implemented Interfaces:
com.opencloud.util.FastSerializable,java.io.Serializable
public final class FeatureWarning extends java.lang.Object implements java.io.Serializable, com.opencloud.util.FastSerializableRepresents a warning to the sentinel core, e.g for a non-fatal error or situation that the feature resolved in some way that the feature wants the sentinel core to note- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeatureWarning.Cause
-
Constructor Summary
Constructors Constructor Description FeatureWarning(FeatureWarning.Cause cause, java.lang.String explanation)Create a feature error with an associated cause and explanationFeatureWarning(java.io.DataInput in)Deserialise a FastSerialized FeatureWarning.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureWarning.CausegetCause()java.lang.StringgetExplanation()voidtoStream(java.io.DataOutput stream)java.lang.StringtoString()
-
-
-
Constructor Detail
-
FeatureWarning
public FeatureWarning(FeatureWarning.Cause cause, java.lang.String explanation)
Create a feature error with an associated cause and explanation- Parameters:
cause- the cause of the errorexplanation- description of the error
-
FeatureWarning
public FeatureWarning(java.io.DataInput in) throws java.io.IOExceptionDeserialise a FastSerialized FeatureWarning.- Parameters:
in- input stream.- Throws:
java.io.IOException
-
-
Method Detail
-
getCause
public FeatureWarning.Cause getCause()
-
getExplanation
public java.lang.String getExplanation()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStream
public void toStream(java.io.DataOutput stream) throws java.io.IOException- Specified by:
toStreamin interfacecom.opencloud.util.FastSerializable- Throws:
java.io.IOException
-
-