<!--
 ~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 ~
 ~ WSO2 Inc. licenses this file to you under the Apache License,
 ~ Version 2.0 (the "License"); you may not use this file except
 ~ in compliance with the License.
 ~ You may obtain a copy of the License at
 ~
 ~    http://www.apache.org/licenses/LICENSE-2.0
 ~
 ~ Unless required by applicable law or agreed to in writing,
 ~ software distributed under the License is distributed on an
 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 ~ KIND, either express or implied.  See the License for the
 ~ specific language governing permissions and limitations
 ~ under the License.
 -->
<UsageAndThrottlingAgentConfiguration xmlns="http://wso2.com/carbon/multitenancy/usage-throttling-agent/config">
    <UsageAgent>
        <UsageDataPersistenceTask>
            <StartupDelayInMilliSeconds>60000</StartupDelayInMilliSeconds>
            <NumberOfRecordsPerExecution>100</NumberOfRecordsPerExecution>
            <ExecutionIntervalInMilliSeconds>-1</ExecutionIntervalInMilliSeconds>
        </UsageDataPersistenceTask>
    </UsageAgent>
    <ThrottlingAgent>
        <ThrottlingInfoCacheUpdaterTask>
            <StartupDelayInSeconds></StartupDelayInSeconds>
            <ExecutionIntervalInSeconds></ExecutionIntervalInSeconds>
        </ThrottlingInfoCacheUpdaterTask>
    </ThrottlingAgent>
   <ThrottlingManagerTask>
    <tasks>
        <task>
            <parameters>
                <parameter name="interval">10</parameter>  <!-- minutes = If This set to negative(-) value then throttling manager excecution will disable   -->
		<parameter name="delay">60</parameter> <!--minutes -->
            </parameters>
            <dataProviders>
                <dataProvider class="org.wso2.carbon.throttling.manager.dataproviders.BillingDataProvider">
                </dataProvider>
                <dataProvider class="org.wso2.carbon.throttling.manager.dataproviders.UsageDataProvider">
                </dataProvider>
            </dataProviders>
        </task>
    </tasks>
  </ThrottlingManagerTask>
</UsageAndThrottlingAgentConfiguration>
