org.redisson.config.Config.isReferenceEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(374)

本文整理了Java中org.redisson.config.Config.isReferenceEnabled()方法的一些代码示例,展示了Config.isReferenceEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.isReferenceEnabled()方法的具体详情如下:
包路径:org.redisson.config.Config
类名称:Config
方法名:isReferenceEnabled

Config.isReferenceEnabled介绍

[英]Config option indicate whether Redisson Reference feature is enabled.

Default value is true
[中]配置选项指示是否启用Redisson参考功能。
默认值为true

代码示例

代码示例来源:origin: redisson/redisson

@Override
public RBatch createBatch(BatchOptions options) {
  RedissonBatch batch = new RedissonBatch(evictionScheduler, connectionManager, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: redisson/redisson

@Override
public RBatchReactive createBatch(BatchOptions options) {
  RedissonBatchReactive batch = new RedissonBatchReactive(evictionScheduler, connectionManager, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: redisson/redisson

@Override
public RBatchRx createBatch(BatchOptions options) {
  RedissonBatchRx batch = new RedissonBatchRx(evictionScheduler, connectionManager, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: redisson/redisson

@Override
public RBatchRx createBatch(BatchOptions options) {
  RedissonBatchRx batch = new RedissonBatchRx(evictionScheduler, connectionManager, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: redisson/redisson

@Override
public RBatch createBatch(BatchOptions options) {
  RedissonBatch batch = new RedissonBatch(evictionScheduler, connectionManager, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: redisson/redisson

@Override
public RBatchReactive createBatch(BatchOptions options) {
  RedissonBatchReactive batch = new RedissonBatchReactive(evictionScheduler, connectionManager, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: redisson/redisson

/**
 * Create Reactive Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonReactiveClient createReactive(Config config) {
  RedissonReactive react = new RedissonReactive(config);
  if (config.isReferenceEnabled()) {
    react.enableRedissonReferenceSupport();
  }
  return react;
}

代码示例来源:origin: redisson/redisson

/**
 * Create sync/async Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonClient create(Config config) {
  Redisson redisson = new Redisson(config);
  if (config.isReferenceEnabled()) {
    redisson.enableRedissonReferenceSupport();
  }
  return redisson;
}

代码示例来源:origin: redisson/redisson

/**
 * Create Reactive Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonRxClient createRx(Config config) {
  RedissonRx react = new RedissonRx(config);
  if (config.isReferenceEnabled()) {
    react.enableRedissonReferenceSupport();
  }
  return react;
}

代码示例来源:origin: redisson/redisson

/**
 * Create sync/async Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonClient create(Config config) {
  Redisson redisson = new Redisson(config);
  if (config.isReferenceEnabled()) {
    redisson.enableRedissonReferenceSupport();
  }
  return redisson;
}

代码示例来源:origin: redisson/redisson

/**
 * Create Reactive Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonRxClient createRx(Config config) {
  RedissonRx react = new RedissonRx(config);
  if (config.isReferenceEnabled()) {
    react.enableRedissonReferenceSupport();
  }
  return react;
}

代码示例来源:origin: redisson/redisson

/**
 * Create Reactive Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonReactiveClient createReactive(Config config) {
  RedissonReactive react = new RedissonReactive(config);
  if (config.isReferenceEnabled()) {
    react.enableRedissonReferenceSupport();
  }
  return react;
}

代码示例来源:origin: redisson/redisson

setThreads(oldConf.getThreads());
setCodec(oldConf.getCodec());
setReferenceEnabled(oldConf.isReferenceEnabled());
setEventLoopGroup(oldConf.getEventLoopGroup());
setTransportMode(oldConf.getTransportMode());

代码示例来源:origin: redisson/redisson

setThreads(oldConf.getThreads());
setCodec(oldConf.getCodec());
setReferenceEnabled(oldConf.isReferenceEnabled());
setEventLoopGroup(oldConf.getEventLoopGroup());
setTransportMode(oldConf.getTransportMode());

代码示例来源:origin: org.redisson/redisson

@Override
public RBatchRx createBatch(BatchOptions options) {
  RedissonBatchRx batch = new RedissonBatchRx(evictionScheduler, connectionManager, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: org.redisson/redisson

@Override
public RBatch createBatch(BatchOptions options) {
  RedissonBatch batch = new RedissonBatch(evictionScheduler, connectionManager, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: org.redisson/redisson

@Override
public RBatchReactive createBatch(BatchOptions options) {
  RedissonBatchReactive batch = new RedissonBatchReactive(evictionScheduler, connectionManager, commandExecutor, options);
  if (config.isReferenceEnabled()) {
    batch.enableRedissonReferenceSupport(this);
  }
  return batch;
}

代码示例来源:origin: org.redisson/redisson

/**
 * Create Reactive Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonRxClient createRx(Config config) {
  RedissonRx react = new RedissonRx(config);
  if (config.isReferenceEnabled()) {
    react.enableRedissonReferenceSupport();
  }
  return react;
}

代码示例来源:origin: org.redisson/redisson

/**
 * Create Reactive Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonReactiveClient createReactive(Config config) {
  RedissonReactive react = new RedissonReactive(config);
  if (config.isReferenceEnabled()) {
    react.enableRedissonReferenceSupport();
  }
  return react;
}

代码示例来源:origin: org.redisson/redisson

/**
 * Create sync/async Redisson instance with provided config
 *
 * @param config for Redisson
 * @return Redisson instance
 */
public static RedissonClient create(Config config) {
  Redisson redisson = new Redisson(config);
  if (config.isReferenceEnabled()) {
    redisson.enableRedissonReferenceSupport();
  }
  return redisson;
}

相关文章