public class TrafficActionEcHandler extends Object implements ExtendedCommunityParser, ExtendedCommunitySerializer
| Constructor and Description | 
|---|
| TrafficActionEcHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getSubType()Provides a sub-type of the extended community for which the serializer is registered. | 
| int | getType(boolean isTransitive)Provides a type of the extended community for which the serializer is registered. | 
| ExtendedCommunity | parseExtendedCommunity(io.netty.buffer.ByteBuf buffer)Parses the Extended Community value encoded in the buffer. | 
| void | serializeExtendedCommunity(ExtendedCommunity extendedCommunity,
                          io.netty.buffer.ByteBuf byteAggregator)Serializes Extended Community value to the buffer. | 
public void serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf byteAggregator)
ExtendedCommunitySerializerserializeExtendedCommunity in interface ExtendedCommunitySerializerextendedCommunity - ExtendedCommuity to be encoded.byteAggregator - The output buffer where the extended community is written.public int getType(boolean isTransitive)
ExtendedCommunitySerializergetType in interface ExtendedCommunitySerializerisTransitive - Transitivity of the extended community.public int getSubType()
ExtendedCommunitySerializergetSubType in interface ExtendedCommunitySerializerpublic ExtendedCommunity parseExtendedCommunity(io.netty.buffer.ByteBuf buffer) throws BGPDocumentedException, BGPParsingException
ExtendedCommunityParserparseExtendedCommunity in interface ExtendedCommunityParserbuffer - ByteBufBGPDocumentedExceptionBGPParsingExceptionCopyright © 2018 OpenDaylight. All rights reserved.