Search in sources :

Example 1 with MessageSerializer

use of org.opendaylight.protocol.bgp.parser.spi.MessageSerializer in project bgpcep by opendaylight.

the class SimpleMessageRegistry method serializeMessageImpl.

@Override
protected void serializeMessageImpl(final Notification message, final ByteBuf buffer) {
    final MessageSerializer serializer = this.handlers.getSerializer(message.implementedInterface());
    if (serializer == null) {
        return;
    }
    serializer.serializeMessage(message, buffer);
}
Also used : MessageSerializer(org.opendaylight.protocol.bgp.parser.spi.MessageSerializer)

Aggregations

MessageSerializer (org.opendaylight.protocol.bgp.parser.spi.MessageSerializer)1