Modifier and Type | Field and Description |
---|---|
private AmazonDynamoDBClient |
client |
private DynamoDBServiceConfig |
config |
private DynamoDBDaoMapOfUserAttributes |
daoMapOfUserAttributes |
private DynamoDBDaoMapOfUserSegments |
daoMapOfUserSegments |
private String |
keyField |
private String |
tableName |
Constructor and Description |
---|
DynamoDBService() |
Modifier and Type | Method and Description |
---|---|
(package private) AmazonDynamoDBClient |
getClient() |
<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) |
(package private) String |
getKeyField() |
(package private) String |
getTableName() |
void |
init(DbConfig c) |
private void |
initRoleBasedClient() |
private DynamoDBServiceConfig config
private AmazonDynamoDBClient client
private String tableName
private String keyField
private DynamoDBDaoMapOfUserAttributes daoMapOfUserAttributes
private DynamoDBDaoMapOfUserSegments daoMapOfUserSegments
String getTableName()
String getKeyField()
public void init(DbConfig c) throws Lot49Exception
init
in interface DbService
Lot49Exception
private void initRoleBasedClient()
public <T> DaoShortLivedMap<T> getDaoShortLivedMap(Class<T> type)
getDaoShortLivedMap
in interface DbService
public <T> DaoShortLivedMap<T> getDaoShortLivedMap()
getDaoShortLivedMap
in interface DbService
AmazonDynamoDBClient getClient()
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