public interface CachedPacket extends Cloneable
CachedPacket defines interfaces that implements cache for a
Packet instance.| Modifier and Type | Method and Description |
|---|---|
CachedPacket |
clone()
Return a deep copy of this instance.
|
boolean |
commit(CachedPacketContext pctx)
Finalize modification to the packet.
|
Packet |
getPacket()
Return a
Packet instance. |
Packet getPacket()
Packet instance.
Note that modification to this instance is not applied to the
returned packet until commit(CachedPacketContext) is called.
Packet instance.boolean commit(CachedPacketContext pctx) throws VTNException
pctx - The runtime context for modifying packet.true only if this packet is modified.VTNException - Failed to copy the packet.CachedPacket clone()
Copyright © 2018 OpenDaylight. All rights reserved.