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.activemq.broker.jmx;
018
019import org.apache.activemq.Service;
020
021public interface NetworkConnectorViewMBean extends Service {
022
023    String getName();
024
025    int getMessageTTL();
026
027    int getConsumerTTL();
028
029    int getPrefetchSize();
030
031    /**
032     * @return Advisory prefetch setting.
033     */
034    @MBeanInfo("The prefetch setting for the advisory message consumer.  If set to <= 0 then this setting is disabled "
035            + "and the prefetchSize attribute is used instead for configuring the advisory consumer.")
036    int getAdvisoryPrefetchSize();
037
038    String getUserName();
039
040    boolean isBridgeTempDestinations();
041
042    boolean isConduitSubscriptions();
043
044    boolean isDecreaseNetworkConsumerPriority();
045
046    boolean isDispatchAsync();
047
048    boolean isDynamicOnly();
049
050    boolean isDuplex();
051
052    boolean isSuppressDuplicateQueueSubscriptions();
053
054    boolean isSuppressDuplicateTopicSubscriptions();
055
056    void setBridgeTempDestinations(boolean bridgeTempDestinations);
057
058    void setConduitSubscriptions(boolean conduitSubscriptions);
059
060    void setDispatchAsync(boolean dispatchAsync);
061
062    void setDynamicOnly(boolean dynamicOnly);
063
064    void setMessageTTL(int messageTTL);
065
066    void setConsumerTTL(int consumerTTL);
067
068    void setPassword(String password);
069
070    void setPrefetchSize(int prefetchSize);
071
072    void setAdvisoryPrefetchSize(int advisoryPrefetchSize);
073
074    void setUserName(String userName);
075
076    String getPassword();
077
078    void setDecreaseNetworkConsumerPriority(boolean decreaseNetworkConsumerPriority);
079
080    void setSuppressDuplicateQueueSubscriptions(boolean val);
081
082    void setSuppressDuplicateTopicSubscriptions(boolean val);
083
084}