Package com.github.fridujo.rabbitmq.mock
Class ConfigurableConnectionFactory<T extends ConfigurableConnectionFactory>
- java.lang.Object
-
- com.rabbitmq.client.ConnectionFactory
-
- com.github.fridujo.rabbitmq.mock.ConfigurableConnectionFactory<T>
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
MockConnectionFactory,MockConnectionFactoryWithoutAddressResolver
public abstract class ConfigurableConnectionFactory<T extends ConfigurableConnectionFactory> extends com.rabbitmq.client.ConnectionFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected MockNodemockNode-
Fields inherited from class com.rabbitmq.client.ConnectionFactory
DEFAULT_AMQP_OVER_SSL_PORT, DEFAULT_AMQP_PORT, DEFAULT_CHANNEL_MAX, DEFAULT_CHANNEL_RPC_TIMEOUT, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_FRAME_MAX, DEFAULT_HANDSHAKE_TIMEOUT, DEFAULT_HEARTBEAT, DEFAULT_HOST, DEFAULT_NETWORK_RECOVERY_INTERVAL, DEFAULT_PASS, DEFAULT_SHUTDOWN_TIMEOUT, DEFAULT_USER, DEFAULT_VHOST, DEFAULT_WORK_POOL_TIMEOUT, USE_DEFAULT_PORT
-
-
Constructor Summary
Constructors Constructor Description ConfigurableConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TenableConsistentHashPlugin()Make available the "x-consistent-hash"'' exchange.TwithAdditionalExchange(TypedMockExchangeCreator mockExchangeCreator)-
Methods inherited from class com.rabbitmq.client.ConnectionFactory
clone, computeDefaultTlsProtocol, createAddressResolver, createConnection, createFrameHandlerFactory, enableHostnameVerification, enableHostnameVerificationForBlockingIo, enableHostnameVerificationForNio, getChannelRpcTimeout, getClientProperties, getConnectionTimeout, getExceptionHandler, getHandshakeTimeout, getHost, getMetricsCollector, getNetworkRecoveryInterval, getNioParams, getPassword, getPort, getRecoveryDelayHandler, getRequestedChannelMax, getRequestedFrameMax, getRequestedHeartbeat, getSaslConfig, getShutdownTimeout, getSocketConfigurator, getSocketFactory, getThreadFactory, getTopologyRecoveryExecutor, getUsername, getVirtualHost, getWorkPoolTimeout, isAutomaticRecoveryEnabled, isChannelShouldCheckRpcResponseType, isSSL, isTopologyRecoveryEnabled, load, load, load, load, load, load, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, newConnection, params, portOrDefault, setAutomaticRecoveryEnabled, setChannelRpcTimeout, setChannelShouldCheckRpcResponseType, setClientProperties, setConnectionRecoveryTriggeringCondition, setConnectionTimeout, setCredentialsProvider, setErrorOnWriteListener, setExceptionHandler, setHandshakeTimeout, setHeartbeatExecutor, setHost, setMetricsCollector, setNetworkRecoveryInterval, setNetworkRecoveryInterval, setNioParams, setPassword, setPort, setRecoveryDelayHandler, setRequestedChannelMax, setRequestedFrameMax, setRequestedHeartbeat, setSaslConfig, setSharedExecutor, setShutdownExecutor, setShutdownTimeout, setSocketConfigurator, setSocketFactory, setSslContextFactory, setThreadFactory, setTopologyRecoveryEnabled, setTopologyRecoveryExecutor, setTopologyRecoveryFilter, setTopologyRecoveryRetryHandler, setTrafficListener, setUri, setUri, setUsername, setVirtualHost, setWorkPoolTimeout, useBlockingIo, useNio, useSslProtocol, useSslProtocol, useSslProtocol, useSslProtocol
-
-
-
-
Field Detail
-
mockNode
protected final MockNode mockNode
-
-
Method Detail
-
withAdditionalExchange
public T withAdditionalExchange(TypedMockExchangeCreator mockExchangeCreator)
-
enableConsistentHashPlugin
public T enableConsistentHashPlugin()
Make available the "x-consistent-hash"'' exchange.See https://github.com/rabbitmq/rabbitmq-consistent-hash-exchange.
- Returns:
- this
ConfigurableConnectionFactoryinstance (for chaining)
-
-