Modifier and Type | Field and Description |
---|---|
private com.aerospike.client.async.AsyncClient |
client |
private AerospikeDBServiceConfig |
config |
private AerospikeDaoMapOfUserAttributes |
daoMapOfUserAttributes |
private AerospikeDaoMapOfUserSegments |
daoMapOfUserSegments |
private com.aerospike.client.async.AsyncClientPolicy |
policy |
Constructor and Description |
---|
AerospikeDBService() |
Modifier and Type | Method and Description |
---|---|
com.aerospike.client.async.AsyncClient |
getClient() |
AerospikeDBServiceConfig |
getConfig() |
<T> DaoCache<T> |
getDaoCache(DaoCacheLoader<T> loader,
T nullValue,
long ttl,
long maxItems) |
<T> DaoCacheLoader<T> |
getDaoCacheLoader() |
DaoCounters |
getDaoCounters() |
DaoMapOfUserAttributes |
getDaoMapOfUserAttributes() |
DaoMapOfUserSegments |
getDaoMapOfUserSegments() |
<T> DaoShortLivedMap<T> |
getDaoShortLivedMap() |
<T> DaoShortLivedMap<T> |
getDaoShortLivedMap(Class<T> type) |
com.aerospike.client.async.AsyncClientPolicy |
getPolicy() |
void |
init(DbConfig config) |
void |
setClient(com.aerospike.client.async.AsyncClient client) |
void |
setConfig(AerospikeDBServiceConfig config) |
void |
setPolicy(com.aerospike.client.async.AsyncClientPolicy policy) |
private com.aerospike.client.async.AsyncClient client
private AerospikeDBServiceConfig config
private com.aerospike.client.async.AsyncClientPolicy policy
private AerospikeDaoMapOfUserAttributes daoMapOfUserAttributes
private AerospikeDaoMapOfUserSegments daoMapOfUserSegments
public void init(DbConfig config) throws Lot49Exception
init
in interface DbService
Lot49Exception
public <T> DaoShortLivedMap<T> getDaoShortLivedMap(Class<T> type)
getDaoShortLivedMap
in interface DbService
public <T> DaoShortLivedMap<T> getDaoShortLivedMap()
getDaoShortLivedMap
in interface DbService
public <T> DaoCacheLoader<T> getDaoCacheLoader()
getDaoCacheLoader
in interface DbService
public <T> DaoCache<T> getDaoCache(DaoCacheLoader<T> loader, T nullValue, long ttl, long maxItems)
getDaoCache
in interface DbService
public DaoCounters getDaoCounters()
getDaoCounters
in interface DbService
public DaoMapOfUserAttributes getDaoMapOfUserAttributes()
getDaoMapOfUserAttributes
in interface DbService
public DaoMapOfUserSegments getDaoMapOfUserSegments()
getDaoMapOfUserSegments
in interface DbService
public com.aerospike.client.async.AsyncClient getClient()
public void setClient(com.aerospike.client.async.AsyncClient client)
public com.aerospike.client.async.AsyncClientPolicy getPolicy()
public void setPolicy(com.aerospike.client.async.AsyncClientPolicy policy)
policy
- the policy to setpublic AerospikeDBServiceConfig getConfig()
public void setConfig(AerospikeDBServiceConfig config)
config
- the config to set