Java Code Examples for org.redisson.config.Config#setUseLinuxNativeEpoll()

The following examples show how to use org.redisson.config.Config#setUseLinuxNativeEpoll() . 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: RedissonConfig.java    From kkFileViewOfficeEdit with Apache License 2.0 5 votes vote down vote up
@Bean(destroyMethod = "shutdown")
RedissonClient redisson() throws Exception {
    Config config = new Config();
    config.useSingleServer().setAddress(address)
            .setConnectionMinimumIdleSize(connectionMinimumIdleSize)
            .setConnectionPoolSize(connectionPoolSize)
            .setDatabase(database)
            .setDnsMonitoring(dnsMonitoring)
            .setDnsMonitoringInterval(dnsMonitoringInterval)
            .setSubscriptionConnectionMinimumIdleSize(subscriptionConnectionMinimumIdleSize)
            .setSubscriptionConnectionPoolSize(subscriptionConnectionPoolSize)
            .setSubscriptionsPerConnection(subscriptionsPerConnection)
            .setClientName(clientName)
            .setFailedAttempts(failedAttempts)
            .setRetryAttempts(retryAttempts)
            .setRetryInterval(retryInterval)
            .setReconnectionTimeout(reconnectionTimeout)
            .setTimeout(timeout)
            .setConnectTimeout(connectTimeout)
            .setIdleConnectionTimeout(idleConnectionTimeout)
            .setPingTimeout(pingTimeout)
            .setPassword(password);
    Codec codec=(Codec) ClassUtils.forName(getCodec(), ClassUtils.getDefaultClassLoader()).newInstance();
    config.setCodec(codec);
    config.setThreads(thread);
    config.setEventLoopGroup(new NioEventLoopGroup());
    config.setUseLinuxNativeEpoll(false);
    return Redisson.create(config);
}
 
Example 2
Source File: RedissonConfig.java    From kkbinlog with Apache License 2.0 5 votes vote down vote up
@Bean(destroyMethod = "shutdown")
RedissonClient redisson() throws Exception {
    Config config = new Config();
    config.setKeepPubSubOrder(keepPubSubOrder).useSingleServer().setAddress(address)
            .setConnectionMinimumIdleSize(connectionMinimumIdleSize)
            .setConnectionPoolSize(connectionPoolSize)
            .setDatabase(database)
            .setDnsMonitoring(dnsMonitoring)
            .setDnsMonitoringInterval(dnsMonitoringInterval)
            .setSubscriptionConnectionMinimumIdleSize(subscriptionConnectionMinimumIdleSize)
            .setSubscriptionConnectionPoolSize(subscriptionConnectionPoolSize)
            .setSubscriptionsPerConnection(subscriptionsPerConnection)
            .setClientName(clientName)
            .setFailedAttempts(failedAttempts)
            .setRetryAttempts(retryAttempts)
            .setRetryInterval(retryInterval)
            .setReconnectionTimeout(reconnectionTimeout)
            .setTimeout(timeout)
            .setConnectTimeout(connectTimeout)
            .setIdleConnectionTimeout(idleConnectionTimeout)
            .setPingTimeout(pingTimeout)
            .setPassword(password);
    Codec codec = (Codec) ClassUtils.forName(getCodec(), ClassUtils.getDefaultClassLoader()).newInstance();
    config.setCodec(codec);
    config.setThreads(thread);
    config.setEventLoopGroup(new NioEventLoopGroup());
    config.setUseLinuxNativeEpoll(false);
    return Redisson.create(config);
}
 
Example 3
Source File: RedissonConfig.java    From kkbinlog with Apache License 2.0 5 votes vote down vote up
@Bean(destroyMethod = "shutdown")
RedissonClient redisson() throws Exception {
    Config config = new Config();
    config.setKeepPubSubOrder(keepPubSubOrder).useSingleServer().setAddress(address)
            .setConnectionMinimumIdleSize(connectionMinimumIdleSize)
            .setConnectionPoolSize(connectionPoolSize)
            .setDatabase(database)
            .setDnsMonitoring(dnsMonitoring)
            .setDnsMonitoringInterval(dnsMonitoringInterval)
            .setSubscriptionConnectionMinimumIdleSize(subscriptionConnectionMinimumIdleSize)
            .setSubscriptionConnectionPoolSize(subscriptionConnectionPoolSize)
            .setSubscriptionsPerConnection(subscriptionsPerConnection)
            .setClientName(clientName)
            .setFailedAttempts(failedAttempts)
            .setRetryAttempts(retryAttempts)
            .setRetryInterval(retryInterval)
            .setReconnectionTimeout(reconnectionTimeout)
            .setTimeout(timeout)
            .setConnectTimeout(connectTimeout)
            .setIdleConnectionTimeout(idleConnectionTimeout)
            .setPingTimeout(pingTimeout)
            .setPassword(password);
    Codec codec = (Codec) ClassUtils.forName(getCodec(), ClassUtils.getDefaultClassLoader()).newInstance();
    config.setCodec(codec);
    config.setThreads(thread);
    config.setEventLoopGroup(new NioEventLoopGroup());
    config.setUseLinuxNativeEpoll(false);
    return Redisson.create(config);
}
 
Example 4
Source File: RedissonConfig.java    From kkbinlog with Apache License 2.0 5 votes vote down vote up
@Bean(destroyMethod = "shutdown")
RedissonClient redisson() throws Exception {
    Config config = new Config();
    config.setKeepPubSubOrder(keepPubSubOrder).useSingleServer().setAddress(address)
            .setConnectionMinimumIdleSize(connectionMinimumIdleSize)
            .setConnectionPoolSize(connectionPoolSize)
            .setDatabase(database)
            .setDnsMonitoring(dnsMonitoring)
            .setDnsMonitoringInterval(dnsMonitoringInterval)
            .setSubscriptionConnectionMinimumIdleSize(subscriptionConnectionMinimumIdleSize)
            .setSubscriptionConnectionPoolSize(subscriptionConnectionPoolSize)
            .setSubscriptionsPerConnection(subscriptionsPerConnection)
            .setClientName(clientName)
            .setFailedAttempts(failedAttempts)
            .setRetryAttempts(retryAttempts)
            .setRetryInterval(retryInterval)
            .setReconnectionTimeout(reconnectionTimeout)
            .setTimeout(timeout)
            .setConnectTimeout(connectTimeout)
            .setIdleConnectionTimeout(idleConnectionTimeout)
            .setPingTimeout(pingTimeout)
            .setPassword(password);
    Codec codec = (Codec) ClassUtils.forName(getCodec(), ClassUtils.getDefaultClassLoader()).newInstance();
    config.setCodec(codec);
    config.setThreads(thread);
    config.setEventLoopGroup(new NioEventLoopGroup());
    config.setUseLinuxNativeEpoll(false);
    return Redisson.create(config);
}
 
Example 5
Source File: RedissonConfig.java    From kkbinlog with Apache License 2.0 5 votes vote down vote up
@Bean(destroyMethod = "shutdown")
RedissonClient redisson() throws Exception {
    Config config = new Config();
    config.setKeepPubSubOrder(keepPubSubOrder).useSingleServer().setAddress(address)
            .setConnectionMinimumIdleSize(connectionMinimumIdleSize)
            .setConnectionPoolSize(connectionPoolSize)
            .setDatabase(database)
            .setDnsMonitoring(dnsMonitoring)
            .setDnsMonitoringInterval(dnsMonitoringInterval)
            .setSubscriptionConnectionMinimumIdleSize(subscriptionConnectionMinimumIdleSize)
            .setSubscriptionConnectionPoolSize(subscriptionConnectionPoolSize)
            .setSubscriptionsPerConnection(subscriptionsPerConnection)
            .setClientName(clientName)
            .setFailedAttempts(failedAttempts)
            .setRetryAttempts(retryAttempts)
            .setRetryInterval(retryInterval)
            .setReconnectionTimeout(reconnectionTimeout)
            .setTimeout(timeout)
            .setConnectTimeout(connectTimeout)
            .setIdleConnectionTimeout(idleConnectionTimeout)
            .setPingTimeout(pingTimeout)
            .setPassword(password);
    Codec codec = (Codec) ClassUtils.forName(getCodec(), ClassUtils.getDefaultClassLoader()).newInstance();
    config.setCodec(codec);
    config.setThreads(thread);
    config.setEventLoopGroup(new NioEventLoopGroup());
    config.setUseLinuxNativeEpoll(false);
    return Redisson.create(config);
}