Class SetMplsTtlActionSerializer
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer<SetMplsTtlActionCase>
org.opendaylight.openflowplugin.impl.protocol.serialization.actions.SetMplsTtlActionSerializer
- All Implemented Interfaces:
HeaderSerializer<SetMplsTtlActionCase>
,OFGeneralSerializer
,OFSerializer<SetMplsTtlActionCase>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
Get length.protected int
getType()
Get type.void
serialize
(SetMplsTtlActionCase action, io.netty.buffer.ByteBuf outBuffer) Transforms POJO/DTO into byte message (ByteBuf).Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer
serializeHeader
-
Constructor Details
-
SetMplsTtlActionSerializer
public SetMplsTtlActionSerializer()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<SetMplsTtlActionCase>
- Overrides:
serialize
in classAbstractActionSerializer<SetMplsTtlActionCase>
- Parameters:
action
- object to be serializedoutBuffer
- output buffer
-
getLength
protected int getLength()Description copied from class:AbstractActionSerializer
Get length.- Specified by:
getLength
in classAbstractActionSerializer<SetMplsTtlActionCase>
- Returns:
- action length
-
getType
protected int getType()Description copied from class:AbstractActionSerializer
Get type.- Specified by:
getType
in classAbstractActionSerializer<SetMplsTtlActionCase>
- Returns:
- numeric representation of action type
-