Class ObjectSerializer
- java.lang.Object
-
- io.quarkus.reactivemessaging.http.runtime.serializers.ObjectSerializer
-
- All Implemented Interfaces:
Serializer<Object>
public class ObjectSerializer extends Object implements Serializer<Object>
-
-
Field Summary
-
Fields inherited from interface io.quarkus.reactivemessaging.http.runtime.serializers.Serializer
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ObjectSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriority()From serializers that can handle a specific payload, the one with the higher priority is used.booleanhandles(Object payload)if the serializer can handle given payloadio.vertx.core.buffer.Bufferserialize(Object payload)serialize the payload
-
-
-
Method Detail
-
handles
public boolean handles(Object payload)
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
public io.vertx.core.buffer.Buffer serialize(Object payload)
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
-
-