X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=pcep%2Fspi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fpcep%2Fspi%2FMessageRegistry.java;h=0767d5d9a24db6766df0bddad5368d5c16bdc183;hb=e8b95e767d8fc1ce6b07efde26036153125c1901;hp=fbda2e594612c1fb948fcc4849a221896d5eb1e8;hpb=229c27296fb372cf877d4474006f5f05286d7818;p=bgpcep.git diff --git a/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/MessageRegistry.java b/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/MessageRegistry.java index fbda2e5946..0767d5d9a2 100644 --- a/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/MessageRegistry.java +++ b/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/MessageRegistry.java @@ -17,17 +17,17 @@ public interface MessageRegistry { /** * Finds parser for given message type in the registry. Delegates parsing to found parser. * @param type message type, key in parser registry - * @param buffer message raw binary value to be parsed + * @param buffer message wrapped in ByteBuf * @param errors list of error messages, that is filled during parsing * @return null if the parser for this message could not be found * @throws PCEPDeserializerException if the parsing did not succeed */ - Message parseMessage(int messageType, byte[] buffer, List errors) throws PCEPDeserializerException; + Message parseMessage(final int messageType, final ByteBuf buffer, final List errors) throws PCEPDeserializerException; /** * Find serializer for given message. Delegates parsing to found serializer. * @param message to be parsed * @param buffer byte buffer that will be filled with serialized message */ - void serializeMessage(Message message, ByteBuf buffer); + void serializeMessage(final Message message, final ByteBuf buffer); }