Class SpringRabbitMQCustomEndpoint

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.component.springrabbit.SpringRabbitMQEndpoint
org.qubership.integration.platform.engine.camel.components.rabbitmq.SpringRabbitMQCustomEndpoint
All Implemented Interfaces:
AutoCloseable, org.apache.camel.AsyncEndpoint, org.apache.camel.CamelContextAware, org.apache.camel.ComponentAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

@UriEndpoint(firstVersion="3.8.0", scheme="rabbitmq-custom", title="Spring RabbitMQ custom", syntax="rabbitmq-custom:exchangeName", category=MESSAGING, headersClass=org.apache.camel.component.springrabbit.SpringRabbitMQConstants.class) public class SpringRabbitMQCustomEndpoint extends org.apache.camel.component.springrabbit.SpringRabbitMQEndpoint
  • Field Summary

    Fields inherited from class org.apache.camel.component.springrabbit.SpringRabbitMQEndpoint

    ARG_PREFIX, BINDING_ARG_PREFIX, CONSUMER_ARG_PREFIX, DLQ_BINDING_PREFIX, DLQ_EXCHANGE_ARG_PREFIX, DLQ_QUEUE_ARG_PREFIX, EXCHANGE_ARG_PREFIX, QUEUE_ARG_PREFIX

    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
    SpringRabbitMQCustomEndpoint(String endpointUri, org.apache.camel.Component component, String exchangeName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
    int
     
    com.rabbitmq.client.MetricsCollector
    MetricsCollector
     
     
    int
     
    int
     
    int
     
     
     
     
     
    void
    setAddresses(String addresses)
    If this option is set, camel-rabbitmq will try to create connection based on the setting of option addresses.
    void
    setClientProperties(Map<String,Object> clientProperties)
    Connection client properties (client info used in negotiating with the server)
    void
    setConnectionTimeout(int connectionTimeout)
    Connection timeout
    void
    setMetricsCollector(com.rabbitmq.client.MetricsCollector metricsCollector)
    MetricsCollector
    void
    setPassword(String password)
    Password for authenticated access
    void
    setRequestedChannelMax(int requestedChannelMax)
    Connection requested channel max (max number of channels offered)
    void
    setRequestedFrameMax(int requestedFrameMax)
    Connection requested frame max (max size of frame offered)
    void
    setRequestedHeartbeat(int requestedHeartbeat)
    Connection requested heartbeat (heart-beat in seconds offered)
    void
    setSslProtocol(String sslProtocol)
    Enables SSL on connection, accepted value are `true`, `TLS` and 'SSLv3`
    void
    Configure SSL trust manager, SSL should be enabled for this option to be effective
    void
    setUsername(String username)
    Username in case of authenticated access
    void
    The vhost for the channel

    Methods inherited from class org.apache.camel.component.springrabbit.SpringRabbitMQEndpoint

    configureMessageListener, createConsumer, createExchange, createInOnlyTemplate, createInOutTemplate, createMessageListenerContainer, createPollingConsumer, createProducer, declareElements, doInit, getAcknowledgeMode, getArgs, getBindingArgs, getComponent, getConcurrentConsumers, getConfirm, getConfirmTimeout, getConnectionFactory, getConsumerArgs, getDeadLetterExchange, getDeadLetterExchangeType, getDeadLetterQueue, getDeadLetterRoutingKey, getDlqBindingArgs, getDlqExchangeArgs, getDlqQueueArgs, getExchangeArgs, getExchangeName, getExchangeType, getMaxConcurrentConsumers, getMaximumRetryAttempts, getMessageConverter, getMessageListenerContainerType, getMessagePropertiesConverter, getPrefetchCount, getQueueArgs, getReplyTimeout, getRetry, getRetryDelay, getRoutingKey, isAllowNullBody, isAsyncConsumer, isAutoDeclare, isAutoStartup, isDisableReplyTo, isExclusive, isNoLocal, isRejectAndDontRequeue, isSynchronous, isTestConnectionOnStartup, isUsePublisherConnection, parseArgsBoolean, parseArgsString, setAcknowledgeMode, setAllowNullBody, setArgs, setAsyncConsumer, setAutoDeclare, setAutoStartup, setConcurrentConsumers, setConfirm, setConfirmTimeout, setConnectionFactory, setDeadLetterExchange, setDeadLetterExchangeType, setDeadLetterQueue, setDeadLetterRoutingKey, setDisableReplyTo, setExchangeType, setExclusive, setMaxConcurrentConsumers, setMaximumRetryAttempts, setMessageConverter, setMessageListenerContainerType, setMessagePropertiesConverter, setNoLocal, setPrefetchCount, setQueues, setRejectAndDontRequeue, setReplyTimeout, setRetry, setRetryDelay, setRoutingKey, setSynchronous, setTestConnectionOnStartup, setUsePublisherConnection

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

    configureConsumer, configureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, 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, shutdown, start, stop, 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, setComponent

    Methods inherited from interface org.apache.camel.Endpoint

    configureExchange, createAsyncProducer, createExchange, createExchange, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContext

    Methods inherited from interface org.apache.camel.IsSingleton

    isSingleton

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    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

    • SpringRabbitMQCustomEndpoint

      public SpringRabbitMQCustomEndpoint(String endpointUri, org.apache.camel.Component component, String exchangeName)
  • Method Details

    • configureProperties

      public void configureProperties(Map<String,Object> options)
      Specified by:
      configureProperties in interface org.apache.camel.Endpoint
      Overrides:
      configureProperties in class org.apache.camel.support.DefaultEndpoint
    • getQueues

      public String getQueues()
      Overrides:
      getQueues in class org.apache.camel.component.springrabbit.SpringRabbitMQEndpoint
    • setAddresses

      public void setAddresses(String addresses)
      If this option is set, camel-rabbitmq will try to create connection based on the setting of option addresses. The addresses value is a string which looks like "server1:12345, server2:12345"
    • getAddresses

      public String getAddresses()
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
      Username in case of authenticated access
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
      Password for authenticated access
    • getVhost

      public String getVhost()
    • setVhost

      public void setVhost(String vhost)
      The vhost for the channel
    • getConnectionTimeout

      public int getConnectionTimeout()
    • setConnectionTimeout

      public void setConnectionTimeout(int connectionTimeout)
      Connection timeout
    • getRequestedChannelMax

      public int getRequestedChannelMax()
    • setRequestedChannelMax

      public void setRequestedChannelMax(int requestedChannelMax)
      Connection requested channel max (max number of channels offered)
    • getRequestedFrameMax

      public int getRequestedFrameMax()
    • setRequestedFrameMax

      public void setRequestedFrameMax(int requestedFrameMax)
      Connection requested frame max (max size of frame offered)
    • getRequestedHeartbeat

      public int getRequestedHeartbeat()
    • setRequestedHeartbeat

      public void setRequestedHeartbeat(int requestedHeartbeat)
      Connection requested heartbeat (heart-beat in seconds offered)
    • getSslProtocol

      public String getSslProtocol()
    • setSslProtocol

      public void setSslProtocol(String sslProtocol)
      Enables SSL on connection, accepted value are `true`, `TLS` and 'SSLv3`
    • getTrustManager

      public TrustManager getTrustManager()
    • setTrustManager

      public void setTrustManager(TrustManager trustManager)
      Configure SSL trust manager, SSL should be enabled for this option to be effective
    • getClientProperties

      public Map<String,Object> getClientProperties()
    • setClientProperties

      public void setClientProperties(Map<String,Object> clientProperties)
      Connection client properties (client info used in negotiating with the server)
    • getMetricsCollector

      public com.rabbitmq.client.MetricsCollector getMetricsCollector()
      MetricsCollector
    • setMetricsCollector

      public void setMetricsCollector(com.rabbitmq.client.MetricsCollector metricsCollector)
      MetricsCollector