Package io.inversion.redis
Class RedisDb
java.lang.Object
io.inversion.Rule<T>
io.inversion.Db<RedisDb>
io.inversion.redis.RedisDb
- All Implemented Interfaces:
Comparable<RedisDb>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
io.inversion.Rule.RuleMatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected redis.clients.jedis.JedisPoolprotected final org.slf4j.Loggerprotected intprotected Stringprotected intprotected intprotected intprotected intprotected intprotected booleanprotected booleanprotected booleanprotected intprotected intFields inherited from class io.inversion.Db
bootstrap, collections, dryRun, excludeColumns, includeColumns, includeTables, reservedParams, typeFields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, name, order, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidio.inversion.ResultsgetHost()intintintintintgetPort()intprotected redis.clients.jedis.JedisintintgetTtl()booleanbooleanbooleanbooleanwithBlockWhenExhausted(boolean blockWhenExhausted) withMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) withNocacheParam(String nocacheParam) withNumTestsPerEvictionRun(int numTestsPerEvictionRun) withPoolMax(int poolMax) withPoolMin(int poolMin) withPort(int port) withReadSocketTimeout(int readSocketTimeout) withTestOnBorrow(boolean testOnBorrow) withTestOnReturn(boolean testOnReturn) withTestWhileIdle(boolean testWhileIdle) withTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) withTtl(int ttl) Methods inherited from class io.inversion.Db
beautifyCollectionName, beautifyName, buildCollections, buildRelationships, castDbOutput, castJsonInput, castJsonInput, configApi, configDb, delete, doPatch, doShutdown, doShutdown, doStartup, excludeTable, filterOutJsonProperty, getCollection, getCollectionByTableName, getCollections, getProperty, getType, isBootstrap, isDryRun, isRunning, isType, makeRelationshipName, mapToColumnNames, mapToColumnNames, mapToJsonNames, patch, removeCollection, select, shutdown, shutdown, startup, upsert, withBootstrap, withCollection, withCollections, withDryRun, withExcludeColumns, withIncludeColumns, withIncludeTable, withIncludeTables, withTypeMethods inherited from class io.inversion.Rule
afterWiringComplete, checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludeMethods, getAllIncludePaths, getDefaultIncludeMatchers, getDescription, getExcludeMatchers, getIncludeMatchers, getName, getOrder, getParams, match, match, matches, matches, toString, withDescription, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withName, withOrder, withParam, withParams
-
Field Details
-
log
protected final org.slf4j.Logger log -
jedis
protected transient redis.clients.jedis.JedisPool jedis -
host
-
port
protected int port -
poolMin
protected int poolMin -
poolMax
protected int poolMax -
testOnBorrow
protected boolean testOnBorrow -
testOnReturn
protected boolean testOnReturn -
testWhileIdle
protected boolean testWhileIdle -
minEvictableIdleTimeMillis
protected int minEvictableIdleTimeMillis -
timeBetweenEvictionRunsMillis
protected int timeBetweenEvictionRunsMillis -
numTestsPerEvictionRun
protected int numTestsPerEvictionRun -
blockWhenExhausted
protected boolean blockWhenExhausted -
nocacheParam
-
readSocketTimeout
protected int readSocketTimeout -
ttl
protected int ttl
-
-
Constructor Details
-
RedisDb
public RedisDb()
-
-
Method Details
-
doSelect
public io.inversion.Results doSelect(io.inversion.Collection table, List<io.inversion.rql.Term> queryTerms) throws io.inversion.ApiException - Overrides:
doSelectin classio.inversion.Db<RedisDb>- Throws:
io.inversion.ApiException
-
doUpsert
public List<String> doUpsert(io.inversion.Collection table, List<Map<String, Object>> rows) throws io.inversion.ApiException- Overrides:
doUpsertin classio.inversion.Db<RedisDb>- Throws:
io.inversion.ApiException
-
doDelete
public void doDelete(io.inversion.Collection table, List<Map<String, Object>> indexValues) throws io.inversion.ApiException- Overrides:
doDeletein classio.inversion.Db<RedisDb>- Throws:
io.inversion.ApiException
-
getRedisClient
protected redis.clients.jedis.Jedis getRedisClient() -
getHost
-
withHost
-
getPort
public int getPort() -
withPort
-
getPoolMin
public int getPoolMin() -
withPoolMin
-
getPoolMax
public int getPoolMax() -
withPoolMax
-
isTestOnBorrow
public boolean isTestOnBorrow() -
withTestOnBorrow
-
isTestOnReturn
public boolean isTestOnReturn() -
withTestOnReturn
-
isTestWhileIdle
public boolean isTestWhileIdle() -
withTestWhileIdle
-
getMinEvictableIdleTimeMillis
public int getMinEvictableIdleTimeMillis() -
withMinEvictableIdleTimeMillis
-
getTimeBetweenEvictionRunsMillis
public int getTimeBetweenEvictionRunsMillis() -
withTimeBetweenEvictionRunsMillis
-
getNumTestsPerEvictionRun
public int getNumTestsPerEvictionRun() -
withNumTestsPerEvictionRun
-
isBlockWhenExhausted
public boolean isBlockWhenExhausted() -
withBlockWhenExhausted
-
getNocacheParam
-
withNocacheParam
-
getReadSocketTimeout
public int getReadSocketTimeout() -
withReadSocketTimeout
-
getTtl
public int getTtl() -
withTtl
-