Class ActiveMQQueueEndpoint

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.component.jms.JmsEndpoint
org.apache.camel.component.activemq.ActiveMQEndpoint
org.apache.camel.component.activemq.ActiveMQQueueEndpoint
All Implemented Interfaces:
AutoCloseable, org.apache.camel.AsyncEndpoint, org.apache.camel.CamelContextAware, org.apache.camel.component.jms.JmsBrowsableEndpoint, org.apache.camel.ComponentAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.MultipleConsumersSupport, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.BrowsableEndpoint, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

@ManagedResource(description="Managed JMS Queue Endpoint") public class ActiveMQQueueEndpoint extends ActiveMQEndpoint implements org.apache.camel.component.jms.JmsBrowsableEndpoint, org.apache.camel.spi.BrowsableEndpoint
An endpoint for a JMS Queue which is also browsable
  • Field Summary

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActiveMQQueueEndpoint(String endpointUri, String destination)
     
    ActiveMQQueueEndpoint(String endpointUri, String destination, org.apache.camel.component.jms.QueueBrowseStrategy queueBrowseStrategy)
     
    ActiveMQQueueEndpoint(String uri, org.apache.camel.component.jms.JmsComponent component, String destination, org.apache.camel.component.jms.JmsConfiguration configuration)
     
    ActiveMQQueueEndpoint(String uri, org.apache.camel.component.jms.JmsComponent component, String destination, org.apache.camel.component.jms.JmsConfiguration configuration, org.apache.camel.component.jms.QueueBrowseStrategy queueBrowseStrategy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.camel.component.jms.QueueBrowseStrategy
     
    List<org.apache.camel.Exchange>
     
    int
     
    void
    setMaximumBrowseSize(int maximumBrowseSize)
    If a number is set > 0 then this limits the number of messages that are returned when browsing the queue

    Methods inherited from class org.apache.camel.component.activemq.ActiveMQEndpoint

    getDestinationOptions, setDestinationOptions

    Methods inherited from class org.apache.camel.component.jms.JmsEndpoint

    configureListenerContainer, createBinding, createConsumer, createConsumer, createEndpointUri, createExchange, createExchange, createInOnlyTemplate, createInOutTemplate, createMessageListenerContainer, createPollingConsumer, createProducer, createReplyToMessageListenerContainer, getAcknowledgementMode, getAcknowledgementModeName, getAllowAdditionalHeaders, getAsyncStartStopExecutorService, getBinding, getCacheLevel, getCacheLevelName, getClientId, getComponent, getConcurrentConsumers, getConfiguration, getConnectionFactory, getDefaultTaskExecutorType, getDeliveryMode, getDestinationName, getDestinationResolver, getDestinationType, getDurableSubscriptionName, getEagerPoisonBody, getEndpointConfiguredDestinationName, getErrorHandler, getErrorHandlerLoggingLevel, getExceptionListener, getHeaderFilterStrategy, getIdleConsumerLimit, getIdleTaskExecutionLimit, getJmsKeyFormatStrategy, getJmsMessageType, getJmsOperations, getListenerConnectionFactory, getMaxConcurrentConsumers, getMaxMessagesPerTask, getMessageConverter, getMessageCreatedStrategy, getMessageListenerContainerFactory, getPriority, getReceiveTimeout, getRecoveryInterval, getReplyTo, getReplyToCacheLevelName, getReplyToConcurrentConsumers, getReplyToDestinationSelectorName, getReplyToMaxConcurrentConsumers, getReplyToOnTimeoutMaxConcurrentConsumers, getReplyToOverride, getReplyToType, getRequestTimeout, getRequestTimeoutCheckerInterval, getRunningMessageListeners, getSelector, getSubscriptionName, getTaskExecutor, getTemplateConnectionFactory, getThreadName, getTimeToLive, getTransactionManager, getTransactionName, getTransactionTimeout, getWaitForProvisionCorrelationToBeUpdatedCounter, getWaitForProvisionCorrelationToBeUpdatedThreadSleepingTime, isAcceptMessagesWhileStopping, isAllowNullBody, isAllowReplyManagerQuickStop, isAllowSerializedHeaders, isAlwaysCopyMessage, isArtemisStreamingEnabled, isAsyncConsumer, isAsyncStartListener, isAsyncStopListener, isAutoStartup, isDeliveryPersistent, isDisableReplyTo, isDisableTimeToLive, isEagerLoadingOfProperties, isErrorHandlerLogStackTrace, isExplicitQosEnabled, isExposeListenerSession, isForceSendOriginalMessage, isFormatDateHeadersToIso8601, isIncludeAllJMSXProperties, isIncludeSentJMSMessageID, isLazyCreateTransactionManager, isMessageIdEnabled, isMessageTimestampEnabled, isMultipleConsumersSupported, isPreserveMessageQos, isPubSubDomain, isPubSubNoLocal, isReplyToDeliveryPersistent, isReplyToSameDestinationAllowed, isRunning, isSubscriptionDurable, isSubscriptionShared, isTestConnectionOnStartup, isTransacted, isTransactedInOut, isTransferException, isTransferExchange, isUseMessageIDAsCorrelationID, onListenerContainerStarting, onListenerContainerStopped, setAcceptMessagesWhileStopping, setAcknowledgementMode, setAcknowledgementModeName, setAllowAdditionalHeaders, setAllowNullBody, setAllowReplyManagerQuickStop, setAllowSerializedHeaders, setAlwaysCopyMessage, setArtemisStreamingEnabled, setAsyncConsumer, setAsyncStartListener, setAsyncStopListener, setAutoStartup, setBinding, setCacheLevel, setCacheLevelName, setClientId, setConcurrentConsumers, setConfiguration, setConnectionFactory, setDefaultTaskExecutorType, setDeliveryMode, setDeliveryPersistent, setDestinationName, setDestinationResolver, setDestinationType, setDisableReplyTo, setDisableTimeToLive, setDurableSubscriptionName, setEagerLoadingOfProperties, setEagerPoisonBody, setErrorHandler, setErrorHandlerLogStackTrace, setExceptionListener, setExplicitQosEnabled, setExposeListenerSession, setForceSendOriginalMessage, setFormatDateHeadersToIso8601, setHeaderFilterStrategy, setIdleConsumerLimit, setIdleTaskExecutionLimit, setIncludeAllJMSXProperties, setIncludeSentJMSMessageID, setJmsKeyFormatStrategy, setJmsMessageType, setJmsOperations, setLazyCreateTransactionManager, setListenerConnectionFactory, setMaxConcurrentConsumers, setMaxMessagesPerTask, setMessageConverter, setMessageCreatedStrategy, setMessageIdEnabled, setMessageListenerContainerFactory, setMessageTimestampEnabled, setPreserveMessageQos, setPriority, setPubSubNoLocal, setReceiveTimeout, setRecoveryInterval, setReplyTo, setReplyToCacheLevelName, setReplyToConcurrentConsumers, setReplyToDeliveryPersistent, setReplyToDestinationSelectorName, setReplyToMaxConcurrentConsumers, setReplyToOverride, setReplyToSameDestinationAllowed, setReplyToType, setRequestTimeout, setSelector, setSubscriptionDurable, setSubscriptionName, setSubscriptionShared, setTaskExecutor, setTemplateConnectionFactory, setTestConnectionOnStartup, setTimeToLive, setTransacted, setTransactionManager, setTransactionName, setTransactionTimeout, setTransferException, setTransferExchange, setUseMessageIDAsCorrelationID, setWaitForProvisionCorrelationToBeUpdatedCounter, setWaitForProvisionCorrelationToBeUpdatedThreadSleepingTime, shutdown, stop

    Methods inherited from class org.apache.camel.support.DefaultEndpoint

    configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createExchange, doInit, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, start, suspend

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.camel.ComponentAware

    getComponent, getComponent, setComponent

    Methods inherited from interface org.apache.camel.Endpoint

    configureExchange, configureProperties, createAsyncProducer, createConsumer, createExchange, createExchange, createPollingConsumer, createProducer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContext

    Methods inherited from interface org.apache.camel.IsSingleton

    isSingleton

    Methods inherited from interface org.apache.camel.component.jms.JmsBrowsableEndpoint

    createExchange, getSelector

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

    • ActiveMQQueueEndpoint

      public ActiveMQQueueEndpoint(String uri, org.apache.camel.component.jms.JmsComponent component, String destination, org.apache.camel.component.jms.JmsConfiguration configuration)
    • ActiveMQQueueEndpoint

      public ActiveMQQueueEndpoint(String uri, org.apache.camel.component.jms.JmsComponent component, String destination, org.apache.camel.component.jms.JmsConfiguration configuration, org.apache.camel.component.jms.QueueBrowseStrategy queueBrowseStrategy)
    • ActiveMQQueueEndpoint

      public ActiveMQQueueEndpoint(String endpointUri, String destination, org.apache.camel.component.jms.QueueBrowseStrategy queueBrowseStrategy)
    • ActiveMQQueueEndpoint

      public ActiveMQQueueEndpoint(String endpointUri, String destination)
  • Method Details

    • getMaximumBrowseSize

      @ManagedAttribute public int getMaximumBrowseSize()
      Specified by:
      getMaximumBrowseSize in interface org.apache.camel.component.jms.JmsBrowsableEndpoint
    • setMaximumBrowseSize

      @ManagedAttribute public void setMaximumBrowseSize(int maximumBrowseSize)
      If a number is set > 0 then this limits the number of messages that are returned when browsing the queue
    • getExchanges

      public List<org.apache.camel.Exchange> getExchanges()
      Specified by:
      getExchanges in interface org.apache.camel.spi.BrowsableEndpoint
    • createQueueBrowseStrategy

      protected org.apache.camel.component.jms.QueueBrowseStrategy createQueueBrowseStrategy()