Java Code Examples for org.redisson.config.MasterSlaveServersConfig#setSslEnableEndpointIdentification()
The following examples show how to use
org.redisson.config.MasterSlaveServersConfig#setSslEnableEndpointIdentification() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SingleConnectionManager.java From redisson with Apache License 2.0 | 5 votes |
private static MasterSlaveServersConfig create(SingleServerConfig cfg) { MasterSlaveServersConfig newconfig = new MasterSlaveServersConfig(); newconfig.setPingConnectionInterval(cfg.getPingConnectionInterval()); newconfig.setSslEnableEndpointIdentification(cfg.isSslEnableEndpointIdentification()); newconfig.setSslProvider(cfg.getSslProvider()); newconfig.setSslTruststore(cfg.getSslTruststore()); newconfig.setSslTruststorePassword(cfg.getSslTruststorePassword()); newconfig.setSslKeystore(cfg.getSslKeystore()); newconfig.setSslKeystorePassword(cfg.getSslKeystorePassword()); newconfig.setRetryAttempts(cfg.getRetryAttempts()); newconfig.setRetryInterval(cfg.getRetryInterval()); newconfig.setTimeout(cfg.getTimeout()); newconfig.setPassword(cfg.getPassword()); newconfig.setUsername(cfg.getUsername()); newconfig.setDatabase(cfg.getDatabase()); newconfig.setClientName(cfg.getClientName()); newconfig.setMasterAddress(cfg.getAddress()); newconfig.setMasterConnectionPoolSize(cfg.getConnectionPoolSize()); newconfig.setSubscriptionsPerConnection(cfg.getSubscriptionsPerConnection()); newconfig.setSubscriptionConnectionPoolSize(cfg.getSubscriptionConnectionPoolSize()); newconfig.setConnectTimeout(cfg.getConnectTimeout()); newconfig.setIdleConnectionTimeout(cfg.getIdleConnectionTimeout()); newconfig.setDnsMonitoringInterval(cfg.getDnsMonitoringInterval()); newconfig.setMasterConnectionMinimumIdleSize(cfg.getConnectionMinimumIdleSize()); newconfig.setSubscriptionConnectionMinimumIdleSize(cfg.getSubscriptionConnectionMinimumIdleSize()); newconfig.setReadMode(ReadMode.MASTER); newconfig.setSubscriptionMode(SubscriptionMode.MASTER); newconfig.setKeepAlive(cfg.isKeepAlive()); return newconfig; }
Example 2
Source File: MasterSlaveConnectionManager.java From redisson with Apache License 2.0 | 5 votes |
protected MasterSlaveServersConfig create(BaseMasterSlaveServersConfig<?> cfg) { MasterSlaveServersConfig c = new MasterSlaveServersConfig(); c.setPingConnectionInterval(cfg.getPingConnectionInterval()); c.setSslEnableEndpointIdentification(cfg.isSslEnableEndpointIdentification()); c.setSslProvider(cfg.getSslProvider()); c.setSslTruststore(cfg.getSslTruststore()); c.setSslTruststorePassword(cfg.getSslTruststorePassword()); c.setSslKeystore(cfg.getSslKeystore()); c.setSslKeystorePassword(cfg.getSslKeystorePassword()); c.setRetryInterval(cfg.getRetryInterval()); c.setRetryAttempts(cfg.getRetryAttempts()); c.setTimeout(cfg.getTimeout()); c.setLoadBalancer(cfg.getLoadBalancer()); c.setPassword(cfg.getPassword()); c.setUsername(cfg.getUsername()); c.setClientName(cfg.getClientName()); c.setMasterConnectionPoolSize(cfg.getMasterConnectionPoolSize()); c.setSlaveConnectionPoolSize(cfg.getSlaveConnectionPoolSize()); c.setSubscriptionConnectionPoolSize(cfg.getSubscriptionConnectionPoolSize()); c.setSubscriptionsPerConnection(cfg.getSubscriptionsPerConnection()); c.setConnectTimeout(cfg.getConnectTimeout()); c.setIdleConnectionTimeout(cfg.getIdleConnectionTimeout()); c.setFailedSlaveCheckInterval(cfg.getFailedSlaveCheckInterval()); c.setFailedSlaveReconnectionInterval(cfg.getFailedSlaveReconnectionInterval()); c.setMasterConnectionMinimumIdleSize(cfg.getMasterConnectionMinimumIdleSize()); c.setSlaveConnectionMinimumIdleSize(cfg.getSlaveConnectionMinimumIdleSize()); c.setSubscriptionConnectionMinimumIdleSize(cfg.getSubscriptionConnectionMinimumIdleSize()); c.setReadMode(cfg.getReadMode()); c.setSubscriptionMode(cfg.getSubscriptionMode()); c.setDnsMonitoringInterval(cfg.getDnsMonitoringInterval()); c.setKeepAlive(cfg.isKeepAlive()); return c; }