Class LocalEventBusCodec<T>

java.lang.Object
io.quarkus.vertx.LocalEventBusCodec<T>
Type Parameters:
T - the type of object supported by this codec.
All Implemented Interfaces:
io.vertx.core.eventbus.MessageCodec<T,T>

public class LocalEventBusCodec<T> extends Object implements io.vertx.core.eventbus.MessageCodec<T,T>
An implementation of MessageCodec for local delivery only. It does not support the clustered event bus.

The transform(Object) method returns the passed instance. So make sure it's immutable.

  • Constructor Details

    • LocalEventBusCodec

      public LocalEventBusCodec()
    • LocalEventBusCodec

      public LocalEventBusCodec(String name)
  • Method Details

    • encodeToWire

      public void encodeToWire(io.vertx.core.buffer.Buffer buffer, T t)
      Specified by:
      encodeToWire in interface io.vertx.core.eventbus.MessageCodec<T,T>
    • decodeFromWire

      public T decodeFromWire(int pos, io.vertx.core.buffer.Buffer buffer)
      Specified by:
      decodeFromWire in interface io.vertx.core.eventbus.MessageCodec<T,T>
    • transform

      public T transform(T instance)
      Specified by:
      transform in interface io.vertx.core.eventbus.MessageCodec<T,T>
    • name

      public String name()
      Specified by:
      name in interface io.vertx.core.eventbus.MessageCodec<T,T>
    • systemCodecID

      public byte systemCodecID()
      Specified by:
      systemCodecID in interface io.vertx.core.eventbus.MessageCodec<T,T>