private void recalcOutDeliveryMode ( ) { // Changes are required. if ( inDmOverride . equals ( ApiJmsConstants . DELIVERY_MODE_PERSISTENT ) ) { outboundDeliveryMode = PersistenceType . PERSISTENT ; } else if ( inDmOverride . equals ( ApiJmsConstants . DELIVERY_MODE_NONPERSISTENT ) ) { outboundDeliveryMode = PersistenceType . NON_PERSISTENT ; } else { // Dest.deliveryMode is validated on set, so treating everything else // as app should be ok here. if ( inDeliveryMode == DeliveryMode . PERSISTENT ) { outboundDeliveryMode = PersistenceType . PERSISTENT ; } else { outboundDeliveryMode = PersistenceType . NON_PERSISTENT ; } } }
This method called by the appropriate setter methods to recalculate the outbound delivery mode .