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.FastSerializable
Represents 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 class
FeatureWarning.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.Cause
getCause()
java.lang.String
getExplanation()
void
toStream(java.io.DataOutput stream)
java.lang.String
toString()
-
-
-
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.IOException
Deserialise 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:
toString
in classjava.lang.Object
-
toStream
public void toStream(java.io.DataOutput stream) throws java.io.IOException
- Specified by:
toStream
in interfacecom.opencloud.util.FastSerializable
- Throws:
java.io.IOException
-
-