public interface PacketOut
SequencedPacketListener
s with the operations they can
perform on the Packet-Out currently under construction in
the MessageContext
.
This approach provides an abstraction for packet listeners, allowing us to present a narrowed API to the mutable Packet-Out message.
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action action)
Adds an action to the list of actions for this packet-out message.
|
void |
block()
Blocks any downstream directors from emitting a packet-out response.
|
void |
clearActions()
Clears any actions accrued so far, but leaves open the possibility
to add others.
|
void |
send()
Instructs the sequencer to send the packet-out response.
|
void addAction(Action action)
action
- the action to addIllegalStateException
- if caller is not a Director, or if
the packet has already been handledvoid clearActions()
IllegalStateException
- if caller is not a Director, or if
the packet has already been handledvoid block()
IllegalStateException
- if caller is not a Director, or if
the packet has already been handledvoid send()
IllegalStateException
- if caller is not a Director, or if
the packet has already been handledCopyright © 2015. All Rights Reserved.