public class MessageDestinationSpec extends Object
MessageDestinationSpec
class stores message destination data attributes
for routing messages. These data attributes includes the message destination transaction or LTERM name,
the MFS message output descriptor (MOD) name, and the alternate PCB name.
To specify how messages are routed, you must set these values in the client application when inserting a message in the message queue.
An alternate PCB can be of two types: fixed or modifiable. For a fixed alternate PCB, the
message destination (LTERM or transaction) is defined in the PSB source itself and cannot be changed.
For a modifiable alternate PCB, set the message destination by using the setDestination(String)
method.
To change the message destination, use the setAlternatePCBName(String)
method.
The MOD is an MFS output message format descriptor that defines the structure of the output fields.
To change the MOD name, use the setMODName(String)
method.
Constructor and Description |
---|
MessageDestinationSpec() |
Modifier and Type | Method and Description |
---|---|
String |
getAlternatePCBName()
Retrieves the name of the alternate PCB.
|
String |
getDefinedDestination()
Retrieves the defined destination to route the message to.
|
String |
getMODName()
Retrieves the message output descriptor (MOD) name.
|
void |
setAlternatePCBName(String alternatePCBName)
Sets the name of the alternate PCB.
|
void |
setDestination(String definedDestination)
Sets the destination to route the message to.
|
void |
setMODName(String MODName)
Sets the message output descriptor (MOD) name.
|
public void setAlternatePCBName(String alternatePCBName)
alternatePCBName
- the name of the alternate PCBpublic String getAlternatePCBName()
public void setDestination(String definedDestination)
definedDestination
- the name of the destinationpublic String getDefinedDestination()
public void setMODName(String MODName)
MODName
- the message output descriptor namepublic String getMODName()
(c) Copyright IBM Corporation 2008, 2017.