Class HealthStatusSerde
java.lang.Object
io.micronaut.serde.support.serdes.HealthStatusSerde
- All Implemented Interfaces:
Deserializer<io.micronaut.health.HealthStatus>, Serde<io.micronaut.health.HealthStatus>, Serializer<io.micronaut.health.HealthStatus>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Deserializer
Deserializer.DecoderContextNested classes/interfaces inherited from interface Serializer
Serializer.EncoderContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.health.HealthStatusdeserialize(Decoder decoder, Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super io.micronaut.health.HealthStatus> type) voidserialize(Encoder encoder, Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends io.micronaut.health.HealthStatus> type, io.micronaut.health.HealthStatus value) Serializes the given value using the passedEncoder.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Deserializer
createSpecific, deserializeNullable, getDefaultValueMethods inherited from interface Serializer
createSpecific, isAbsent, isDefault, isEmpty
-
Constructor Details
-
HealthStatusSerde
public HealthStatusSerde()
-
-
Method Details
-
serialize
public void serialize(Encoder encoder, Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends io.micronaut.health.HealthStatus> type, io.micronaut.health.HealthStatus value) throws IOException Description copied from interface:SerializerSerializes the given value using the passedEncoder.- Specified by:
serializein interfaceSerializer<io.micronaut.health.HealthStatus>- Parameters:
encoder- The encoder to usecontext- The encoder context, nevernulltype- Models the generic type of the valuevalue- The value, can benull- Throws:
IOException- If an error occurs during serialization
-
deserialize
public io.micronaut.health.HealthStatus deserialize(Decoder decoder, Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super io.micronaut.health.HealthStatus> type) throws IOException Description copied from interface:Deserializer- Specified by:
deserializein interfaceDeserializer<io.micronaut.health.HealthStatus>- Parameters:
decoder- The decoder, nevernulldecoderContext- The decoder context, nevernulltype- The generic type to be deserialized- Returns:
- The deserialized object or
null - Throws:
IOException- If an error occurs during deserialization of the object
-