public static interface Connection.Factory
Modifier and Type | Method and Description |
---|---|
Connection |
newConnection(ConnectionSpec spec)
Creates a connection to a redis server using the specified connection attributes.
|
Connection newConnection(ConnectionSpec spec) throws ClientRuntimeException, NotSupportedException
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–2015. All rights reserved.