001/**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.camel.api.management.mbean;
018
019import org.apache.camel.api.management.ManagedAttribute;
020import org.apache.camel.api.management.ManagedOperation;
021
022public interface ManagedSchedulePollConsumerMBean extends ManagedConsumerMBean {
023
024    @ManagedAttribute(description = "Scheduled Delay")
025    long getDelay();
026
027    @ManagedAttribute(description = "Scheduled Delay")
028    void setDelay(long delay);
029
030    @ManagedAttribute(description = "Scheduled Initial Delay")
031    long getInitialDelay();
032
033    @ManagedAttribute(description = "Scheduled Initial Delay")
034    void setInitialDelay(long initialDelay);
035
036    @ManagedAttribute(description = "Scheduled Fixed Delay")
037    boolean isUseFixedDelay();
038
039    @ManagedAttribute(description = "Scheduled Fixed Delay")
040    void setUseFixedDelay(boolean useFixedDelay);
041
042    @ManagedAttribute(description = "Scheduled TimeUnit")
043    String getTimeUnit();
044
045    @ManagedAttribute(description = "Scheduled TimeUnit")
046    void setTimeUnit(String timeUnit);
047
048    @ManagedAttribute(description = "Is the scheduler started")
049    boolean isSchedulerStarted();
050
051    @ManagedOperation(description = "Starts the scheduler")
052    void startScheduler();
053
054    @ManagedAttribute(description = "Scheduler classname")
055    String getSchedulerClassName();
056
057    @ManagedAttribute(description = "Backoff multiplier")
058    int getBackoffMultiplier();
059
060    @ManagedAttribute(description = "Backoff idle threshold")
061    int getBackoffIdleThreshold();
062
063    @ManagedAttribute(description = "Backoff error threshold")
064    int getBackoffErrorThreshold();
065
066    @ManagedAttribute(description = "Current backoff counter")
067    int getBackoffCounter();
068
069}