Package io.quarkus.vertx
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 ofMessageCodec
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 Summary
Constructors Constructor Description LocalEventBusCodec()
LocalEventBusCodec(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
decodeFromWire(int pos, io.vertx.core.buffer.Buffer buffer)
void
encodeToWire(io.vertx.core.buffer.Buffer buffer, T t)
String
name()
byte
systemCodecID()
T
transform(T instance)
-
-
-
Constructor Detail
-
LocalEventBusCodec
public LocalEventBusCodec()
-
LocalEventBusCodec
public LocalEventBusCodec(String name)
-
-