public interface Sink
Sink
interface has to be implemented by all the
components that process JADE kernel-level commands in an exclusive
and terminal way.
For each kind of vertical command, there must be at most one sink
that is registered for that command. Instead, many command filters
can be applied to a single command.Filter
Modifier and Type | Field and Description |
---|---|
static boolean |
COMMAND_SOURCE |
static boolean |
COMMAND_TARGET |
Modifier and Type | Method and Description |
---|---|
void |
consume(VerticalCommand cmd)
Definitely consume a command object.
|
static final boolean COMMAND_SOURCE
static final boolean COMMAND_TARGET
void consume(VerticalCommand cmd)
cmd
- A VerticalCommand
describing what
operation has been requested from previous layers (that can be
the actual prime source of the command or members of the filter
chain).