Class ObjectSerializer
java.lang.Object
io.quarkus.reactivemessaging.http.runtime.serializers.ObjectSerializer
- All Implemented Interfaces:
Serializer<Object>
-
Field Summary
Fields inherited from interface io.quarkus.reactivemessaging.http.runtime.serializers.Serializer
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintFrom serializers that can handle a specific payload, the one with the higher priority is used.booleanif the serializer can handle given payloadio.vertx.core.buffer.Bufferserialize the payload
-
Constructor Details
-
ObjectSerializer
public ObjectSerializer()
-
-
Method Details
-
handles
Description copied from interface:Serializerif the serializer can handle given payload- Specified by:
handlesin interfaceSerializer<Object>- Parameters:
payload- the payload- Returns:
- true iff the seralizer can handle the payload
-
serialize
Description copied from interface:Serializerserialize the payload- Specified by:
serializein interfaceSerializer<Object>- Parameters:
payload- object to serialize- Returns:
- a buffer with serialized payload
-
getPriority
public int getPriority()Description copied from interface:SerializerFrom serializers that can handle a specific payload, the one with the higher priority is used.- Specified by:
getPriorityin interfaceSerializer<Object>- Returns:
- the priority of the serializer
-