public abstract class UscFrame extends Object
Constructor and Description |
---|
UscFrame(UscHeader.OperationType operationType,
int port,
int sessionId,
int payloadLength)
Constructs a new UscFrame
|
Modifier and Type | Method and Description |
---|---|
static UscFrame |
getFromByteBuf(io.netty.buffer.ByteBuf buf)
Decodes a ByteBuf into a UscFrame
|
UscHeader |
getHeader()
Returns the USC header
|
abstract io.netty.buffer.ByteBuf |
getPayload()
To be implemented by subclasses to return the payload as a ByteBuf.
|
int |
length()
Length of the frame in bytes, inclusive of both the header and the.
|
public UscFrame(UscHeader.OperationType operationType, int port, int sessionId, int payloadLength)
operationType
- port
- sessionId
- payloadLength
- public UscHeader getHeader()
public int length()
public abstract io.netty.buffer.ByteBuf getPayload()
public static UscFrame getFromByteBuf(io.netty.buffer.ByteBuf buf) throws IOException
buf
- IOException
Copyright © 2019 OpenDaylight. All rights reserved.