public class DefaultConnectionFactory extends Object implements Connection.Factory
| Constructor and Description |
|---|
DefaultConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
newConnection(ConnectionSpec spec)
Creates a connection to a redis server using the specified connection attributes.
|
public Connection newConnection(ConnectionSpec spec) throws ClientRuntimeException, NotSupportedException
Connection.FactorynewConnection in interface Connection.Factoryspec - of the new connectionConnection initialized per spec.ClientRuntimeException - if the requirements exceed system resources/limits.NotSupportedException - if the ConnectionSpec provided
can not be supported by the provider.Copyright © 2009–2021. All rights reserved.