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());
}
}
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;
}
Aggregations