Search in sources :

Example 1 with MessageCodec

use of io.vertx.core.eventbus.MessageCodec in project vert.x by eclipse.

the class CodecManager method unregisterDefaultCodec.

public void unregisterDefaultCodec(Class clazz) {
    Objects.requireNonNull(clazz);
    MessageCodec codec = defaultCodecMap.remove(clazz);
    if (codec != null) {
        userCodecMap.remove(codec.name());
    }
}
Also used : MessageCodec(io.vertx.core.eventbus.MessageCodec)

Example 2 with MessageCodec

use of io.vertx.core.eventbus.MessageCodec in project vert.x by eclipse.

the class ClusteredEventBus method createMessage.

@Override
public MessageImpl createMessage(boolean send, String address, MultiMap headers, Object body, String codecName) {
    Objects.requireNonNull(address, "no null address accepted");
    MessageCodec codec = codecManager.lookupCodec(body, codecName);
    @SuppressWarnings("unchecked") ClusteredMessage msg = new ClusteredMessage(nodeId, address, headers, body, codec, send, this);
    return msg;
}
Also used : MessageCodec(io.vertx.core.eventbus.MessageCodec)

Aggregations

MessageCodec (io.vertx.core.eventbus.MessageCodec)2