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.Factory
newConnection
in interface Connection.Factory
spec
- 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–2016. All rights reserved.