Package | Description |
---|---|
org.jredis.connector |
Native Client Interface Specification.
|
org.jredis.protocol |
This package contains the constructs that reflect the Redis Protocol Specification
TODO: elaborate on the spec requirements.
|
org.jredis.ri.alphazero |
This package and child packages contain reference implementation alphazero
of the
JRedis and Connection
of the optional Connector specifications. |
org.jredis.ri.alphazero.connection | |
org.jredis.ri.alphazero.protocol |
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionSpec.RefImpl
Reference implementation of
ConnectionSpec . |
Modifier and Type | Method and Description |
---|---|
ConnectionSpec |
FaultedConnection.getSpec() |
ConnectionSpec |
Connection.getSpec()
The
ConnectionSpec of a Connection must be invariant during its life-cycle. |
ConnectionSpec |
ConnectionSpec.setAddress(InetAddress address) |
ConnectionSpec |
ConnectionSpec.RefImpl.setAddress(InetAddress address) |
ConnectionSpec |
ConnectionSpec.setConnectionFlag(Connection.Flag flag,
Boolean value)
Sets the specified
Connection.Flag |
ConnectionSpec |
ConnectionSpec.RefImpl.setConnectionFlag(Connection.Flag flag,
Boolean value) |
ConnectionSpec |
ConnectionSpec.setConnectionProperty(Connection.Property prop,
Object value) |
ConnectionSpec |
ConnectionSpec.RefImpl.setConnectionProperty(Connection.Property prop,
Object value) |
ConnectionSpec |
ConnectionSpec.setCredentials(byte[] credentials)
Set the Connection's credentials, presented to Redis on (re)connects.
|
ConnectionSpec |
ConnectionSpec.RefImpl.setCredentials(byte[] credentials) |
ConnectionSpec |
ConnectionSpec.setCredentials(String credentials)
Convenience method
|
ConnectionSpec |
ConnectionSpec.RefImpl.setCredentials(String credentials) |
ConnectionSpec |
ConnectionSpec.setDatabase(int database) |
ConnectionSpec |
ConnectionSpec.RefImpl.setDatabase(int database) |
ConnectionSpec |
ConnectionSpec.setHeartbeat(int seconds) |
ConnectionSpec |
ConnectionSpec.RefImpl.setHeartbeat(int seconds) |
ConnectionSpec |
ConnectionSpec.setMaxConnectWait(int cnt) |
ConnectionSpec |
ConnectionSpec.RefImpl.setMaxConnectWait(int cnt) |
ConnectionSpec |
ConnectionSpec.setModality(Connection.Modality modality) |
ConnectionSpec |
ConnectionSpec.RefImpl.setModality(Connection.Modality modality) |
ConnectionSpec |
ConnectionSpec.setPort(int port) |
ConnectionSpec |
ConnectionSpec.RefImpl.setPort(int port) |
ConnectionSpec |
ConnectionSpec.setReconnectCnt(int cnt) |
ConnectionSpec |
ConnectionSpec.RefImpl.setReconnectCnt(int reconnectCnt) |
ConnectionSpec |
ConnectionSpec.setSocketFlag(Connection.Socket.Flag flag,
Boolean value)
Set the
Connection.Socket.Flag for the ConnectionSpec |
ConnectionSpec |
ConnectionSpec.RefImpl.setSocketFlag(Connection.Socket.Flag flag,
Boolean value) |
ConnectionSpec |
ConnectionSpec.setSocketProperty(Connection.Socket.Property property,
Integer value)
Set the
SocketProperty for the ConnectionSpec |
ConnectionSpec |
ConnectionSpec.RefImpl.setSocketProperty(Connection.Socket.Property property,
Integer value) |
Modifier and Type | Method and Description |
---|---|
Connection |
Connection.Factory.newConnection(ConnectionSpec spec)
Creates a connection to a redis server using the specified connection attributes.
|
Constructor and Description |
---|
FaultedConnection(ConnectionSpec connSpec,
String errMsg)
instantiates a faulted connection for the given
ConnectionSpec |
Modifier and Type | Method and Description |
---|---|
Protocol |
Protocol.Factory.newProtocol(ConnectionSpec connSpec)
Creates a
Protocol instance for a connection per the specified
ConnectionSpec |
Modifier and Type | Field and Description |
---|---|
protected ConnectionSpec |
JRedisAsyncClient.connSpec |
Modifier and Type | Method and Description |
---|---|
protected Connection |
SyncJRedisBase.createSyncConnection(ConnectionSpec connSpec)
Creates a
Connection with Connection.Modality#Synchronous semantics
suitable for use by synchronous (blocking) JRedis clients. |
Constructor and Description |
---|
JRedisAsyncClient(ConnectionSpec connectionSpec) |
JRedisChunkedPipeline(ConnectionSpec spec) |
JRedisClient(ConnectionSpec connectionSpec) |
JRedisPipeline(ConnectionSpec connectionSpec) |
JRedisPipelineService(ConnectionSpec connectionSpec) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultConnectionSpec
Default connection spec provides the following default values for a connection.
|
Modifier and Type | Field and Description |
---|---|
protected ConnectionSpec |
ConnectionBase.spec
Connection specs used to create this
Connection |
Modifier and Type | Method and Description |
---|---|
ConnectionSpec |
ConnectionBase.getSpec() |
static ConnectionSpec |
DefaultConnectionSpec.newSpec() |
static ConnectionSpec |
DefaultConnectionSpec.newSpec(InetAddress address,
int port,
int database,
byte[] credentials)
Returns an instance of the
ConnectionSpec used by this Connection
as default spec, for the provided params. |
static ConnectionSpec |
DefaultConnectionSpec.newSpec(String host,
int port,
int database,
byte[] credentials)
Returns an instance of the
ConnectionSpec used by this Connection
as default spec, for the provided params. |
Modifier and Type | Method and Description |
---|---|
Connection |
DefaultConnectionFactory.newConnection(ConnectionSpec spec) |
Constructor and Description |
---|
AsyncConnection(ConnectionSpec connectionSpec) |
AsyncPipelineConnection(ConnectionSpec spec) |
ChunkedPipelineConnection(ConnectionSpec spec) |
ConnectionBase(ConnectionSpec spec)
Will create and initialize a socket per the connection spec.
|
PipelineConnectionBase(ConnectionSpec spec) |
SyncConnection(ConnectionSpec connectionSpec)
This constructor will pass the connection spec to the super class constructor and
create and install the
Protocol handler delegate instance for this SyncConnection . |
SyncPipelineConnection(ConnectionSpec spec) |
Modifier and Type | Method and Description |
---|---|
Protocol |
DefaultProtocolFactory.newProtocol(ConnectionSpec connSpec) |
Copyright © 2009–2016. All rights reserved.