java.lang.Object com.ibm.broker.plugin.MbTerminal com.ibm.broker.plugin.MbOutputTerminal
public class MbOutputTerminal
extends MbTerminal
MbOutputTerminal represents a terminal to which a message is propagated out of the plugin node. A node should have one or more output terminals.
If a node creates a terminal named 'failure', then the framework will automatically use this to propagate a failed message. Likewise, if an input node creates a terminal named 'catch', then the framework will automatically use this to propagate a failed message caused by a downstream exception.
Output terminals are created in the constructor of the user node class by calling the createOutputTerminal method.
Method | Description |
---|---|
boolean isAttached() | Indicates whether the terminal is attached to anything or not. |
void propagate(MbMessageAssembly) | Propagates an MbMessageAssembly to the terminal. |
String toString() | Returns a String representation of the MbOutputTerminal. |
public boolean isAttached() throws MbExceptionIndicates whether the terminal is attached to anything or not.
- Returns
- A boolean indicating the attached status.
- Throws
public void propagate(MbMessageAssembly assembly) throws MbExceptionPropagates an MbMessageAssembly to the terminal.
- Parameters
- assembly - The MbMessageAssembly being propagated.
- Throws
public String toString()Returns a String representation of the MbOutputTerminal.
- Returns
- The String representation of the MbOutputTerminal.
- Overrides
- toString in class MbTerminal