/** * Sets the throttling settings of the throttle manager. * * @param throttleSettings The throttling settings for the throttle manager. */ public void setThrottleSettings(ThrottleSettings throttleSettings) { // Make sure that we have valid outbound policies. Policy outPolicy = throttleSettings.getOutboundPolicy(); if (outPolicy != Policy.NONE && outPolicy != Policy.IGNORE) { ConfigurationException ex = new ConfigurationException(); ex.setMessage( "Invalid outbound throttle policy '" + outPolicy + "' for destination '" + throttleSettings.getDestinationName() + "'. Valid values are 'NONE' and 'IGNORE'."); throw ex; } settings = throttleSettings; }