@Override public Bucket openBucket(String name, List<Transcoder<? extends Document, ?>> transcoders) { return openBucket(name, transcoders, environment.connectTimeout(), TIMEOUT_UNIT); }
@Override public Bucket openBucket(String name, String password, List<Transcoder<? extends Document, ?>> transcoders) { return openBucket(name, password, transcoders, environment.connectTimeout(), TIMEOUT_UNIT); }
@Override public Bucket openBucket(String name) { return openBucket(name, environment.connectTimeout(), TIMEOUT_UNIT); }
public CouchbaseConnectionImpl(CouchbaseEnvironment environment, String connectionString, String keyspace, String password, TimeUnit timeUnit, String namespace, ScanConsistency scanConsistent){ this.scanConsistency = scanConsistent; this.cluster = CouchbaseCluster.create(environment, connectionString); if(password != null) { this.bucket = this.cluster.openBucket(keyspace, password, environment.connectTimeout(), timeUnit); } else { this.bucket = this.cluster.openBucket(keyspace, environment.connectTimeout(), timeUnit); } this.namespace = namespace; }
public CouchbaseConnectionImpl(CouchbaseEnvironment environment, String connectionString, String keyspace, String password, TimeUnit timeUnit, String namespace, ScanConsistency scanConsistent){ this.scanConsistency = scanConsistent; this.cluster = CouchbaseCluster.create(environment, connectionString); if(password != null) { this.bucket = this.cluster.openBucket(keyspace, password, environment.connectTimeout(), timeUnit); } else { this.bucket = this.cluster.openBucket(keyspace, environment.connectTimeout(), timeUnit); } this.namespace = namespace; }