|
|
|
@ -49,6 +49,14 @@ public interface DataRedisConnectionDetails extends ConnectionDetails { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* SSL bundle to use. |
|
|
|
|
|
|
|
* @return the SSL bundle to use |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
default @Nullable SslBundle getSslBundle() { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Redis standalone configuration. Mutually exclusive with {@link #getSentinel()} and |
|
|
|
* Redis standalone configuration. Mutually exclusive with {@link #getSentinel()} and |
|
|
|
* {@link #getCluster()}. |
|
|
|
* {@link #getCluster()}. |
|
|
|
@ -101,14 +109,6 @@ public interface DataRedisConnectionDetails extends ConnectionDetails { |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* SSL bundle to use. |
|
|
|
|
|
|
|
* @return the SSL bundle to use |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
default @Nullable SslBundle getSslBundle() { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a new instance with the given host and port. |
|
|
|
* Creates a new instance with the given host and port. |
|
|
|
* @param host the host |
|
|
|
* @param host the host |
|
|
|
@ -116,18 +116,7 @@ public interface DataRedisConnectionDetails extends ConnectionDetails { |
|
|
|
* @return the new instance |
|
|
|
* @return the new instance |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
static Standalone of(String host, int port) { |
|
|
|
static Standalone of(String host, int port) { |
|
|
|
return of(host, port, 0, null); |
|
|
|
return of(host, port, 0); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Creates a new instance with the given host, port and SSL bundle. |
|
|
|
|
|
|
|
* @param host the host |
|
|
|
|
|
|
|
* @param port the port |
|
|
|
|
|
|
|
* @param sslBundle the SSL bundle |
|
|
|
|
|
|
|
* @return the new instance |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
static Standalone of(String host, int port, @Nullable SslBundle sslBundle) { |
|
|
|
|
|
|
|
return of(host, port, 0, sslBundle); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -138,18 +127,6 @@ public interface DataRedisConnectionDetails extends ConnectionDetails { |
|
|
|
* @return the new instance |
|
|
|
* @return the new instance |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
static Standalone of(String host, int port, int database) { |
|
|
|
static Standalone of(String host, int port, int database) { |
|
|
|
return of(host, port, database, null); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Creates a new instance with the given host, port, database and SSL bundle. |
|
|
|
|
|
|
|
* @param host the host |
|
|
|
|
|
|
|
* @param port the port |
|
|
|
|
|
|
|
* @param database the database |
|
|
|
|
|
|
|
* @param sslBundle the SSL bundle |
|
|
|
|
|
|
|
* @return the new instance |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
static Standalone of(String host, int port, int database, @Nullable SslBundle sslBundle) { |
|
|
|
|
|
|
|
Assert.hasLength(host, "'host' must not be empty"); |
|
|
|
Assert.hasLength(host, "'host' must not be empty"); |
|
|
|
return new Standalone() { |
|
|
|
return new Standalone() { |
|
|
|
|
|
|
|
|
|
|
|
@ -168,10 +145,6 @@ public interface DataRedisConnectionDetails extends ConnectionDetails { |
|
|
|
return database; |
|
|
|
return database; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public @Nullable SslBundle getSslBundle() { |
|
|
|
|
|
|
|
return sslBundle; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -212,14 +185,6 @@ public interface DataRedisConnectionDetails extends ConnectionDetails { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Nullable String getPassword(); |
|
|
|
@Nullable String getPassword(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* SSL bundle to use. |
|
|
|
|
|
|
|
* @return the SSL bundle to use |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
default @Nullable SslBundle getSslBundle() { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -234,14 +199,6 @@ public interface DataRedisConnectionDetails extends ConnectionDetails { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
List<Node> getNodes(); |
|
|
|
List<Node> getNodes(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* SSL bundle to use. |
|
|
|
|
|
|
|
* @return the SSL bundle to use |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
default @Nullable SslBundle getSslBundle() { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|