public class RedisDb extends io.inversion.Db<RedisDb>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
blockWhenExhausted |
protected java.lang.String |
host |
protected redis.clients.jedis.JedisPool |
jedis |
protected org.slf4j.Logger |
log |
protected int |
minEvictableIdleTimeMillis |
protected java.lang.String |
nocacheParam |
protected int |
numTestsPerEvictionRun |
protected int |
poolMax |
protected int |
poolMin |
protected int |
port |
protected int |
readSocketTimeout |
protected boolean |
testOnBorrow |
protected boolean |
testOnReturn |
protected boolean |
testWhileIdle |
protected int |
timeBetweenEvictionRunsMillis |
protected int |
ttl |
| Constructor and Description |
|---|
RedisDb() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> indexValues) |
io.inversion.Results |
doSelect(io.inversion.Collection table,
java.util.List<io.inversion.rql.Term> queryTerms) |
java.util.List<java.lang.String> |
doUpsert(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rows) |
java.lang.String |
getHost() |
int |
getMinEvictableIdleTimeMillis() |
java.lang.String |
getNocacheParam() |
int |
getNumTestsPerEvictionRun() |
int |
getPoolMax() |
int |
getPoolMin() |
int |
getPort() |
int |
getReadSocketTimeout() |
protected redis.clients.jedis.Jedis |
getRedisClient() |
int |
getTimeBetweenEvictionRunsMillis() |
int |
getTtl() |
boolean |
isBlockWhenExhausted() |
boolean |
isTestOnBorrow() |
boolean |
isTestOnReturn() |
boolean |
isTestWhileIdle() |
RedisDb |
withBlockWhenExhausted(boolean blockWhenExhausted) |
RedisDb |
withHost(java.lang.String host) |
RedisDb |
withMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) |
RedisDb |
withNocacheParam(java.lang.String nocacheParam) |
RedisDb |
withNumTestsPerEvictionRun(int numTestsPerEvictionRun) |
RedisDb |
withPoolMax(int poolMax) |
RedisDb |
withPoolMin(int poolMin) |
RedisDb |
withPort(int port) |
RedisDb |
withReadSocketTimeout(int readSocketTimeout) |
RedisDb |
withTestOnBorrow(boolean testOnBorrow) |
RedisDb |
withTestOnReturn(boolean testOnReturn) |
RedisDb |
withTestWhileIdle(boolean testWhileIdle) |
RedisDb |
withTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) |
RedisDb |
withTtl(int ttl) |
beautifyCollectionName, beautifyName, buildCollections, buildRelationships, castDbOutput, castJsonInput, castJsonInput, configApi, configDb, doPatch, doShutdown, doShutdown, doStartup, filterOutJsonProperty, getCollectionByTableName, getCollections, getEndpointPath, getHref, getKey, getName, getProperty, getType, isBootstrap, isDryRun, isRunning, isType, makeRelationshipName, mapTo, mapToColumnNames, mapToJsonNames, patch, removeCollection, select, shutdown, shutdown, startup, upsert, withBootstrap, withCollection, withCollections, withDryRun, withEndpointPath, withExcludeColumns, withIncludeColumns, withIncludeTable, withIncludeTables, withName, withTypeprotected final org.slf4j.Logger log
protected transient redis.clients.jedis.JedisPool jedis
protected java.lang.String host
protected int port
protected int poolMin
protected int poolMax
protected boolean testOnBorrow
protected boolean testOnReturn
protected boolean testWhileIdle
protected int minEvictableIdleTimeMillis
protected int timeBetweenEvictionRunsMillis
protected int numTestsPerEvictionRun
protected boolean blockWhenExhausted
protected java.lang.String nocacheParam
protected int readSocketTimeout
protected int ttl
public io.inversion.Results doSelect(io.inversion.Collection table,
java.util.List<io.inversion.rql.Term> queryTerms)
throws io.inversion.ApiException
doSelect in class io.inversion.Db<RedisDb>io.inversion.ApiExceptionpublic java.util.List<java.lang.String> doUpsert(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rows)
throws io.inversion.ApiException
doUpsert in class io.inversion.Db<RedisDb>io.inversion.ApiExceptionpublic void delete(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> indexValues)
throws io.inversion.ApiException
delete in class io.inversion.Db<RedisDb>io.inversion.ApiExceptionprotected redis.clients.jedis.Jedis getRedisClient()
public java.lang.String getHost()
public RedisDb withHost(java.lang.String host)
public int getPort()
public RedisDb withPort(int port)
public int getPoolMin()
public RedisDb withPoolMin(int poolMin)
public int getPoolMax()
public RedisDb withPoolMax(int poolMax)
public boolean isTestOnBorrow()
public RedisDb withTestOnBorrow(boolean testOnBorrow)
public boolean isTestOnReturn()
public RedisDb withTestOnReturn(boolean testOnReturn)
public boolean isTestWhileIdle()
public RedisDb withTestWhileIdle(boolean testWhileIdle)
public int getMinEvictableIdleTimeMillis()
public RedisDb withMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis)
public int getTimeBetweenEvictionRunsMillis()
public RedisDb withTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis)
public int getNumTestsPerEvictionRun()
public RedisDb withNumTestsPerEvictionRun(int numTestsPerEvictionRun)
public boolean isBlockWhenExhausted()
public RedisDb withBlockWhenExhausted(boolean blockWhenExhausted)
public java.lang.String getNocacheParam()
public RedisDb withNocacheParam(java.lang.String nocacheParam)
public int getReadSocketTimeout()
public RedisDb withReadSocketTimeout(int readSocketTimeout)
public int getTtl()
public RedisDb withTtl(int ttl)
Copyright © 2021 Rocket Partners, LLC. All rights reserved.