| 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 DbServiceLot49Exceptionprivate void initRoleBasedClient()
public <T> DaoShortLivedMap<T> getDaoShortLivedMap(Class<T> type)
getDaoShortLivedMap in interface DbServicepublic <T> DaoShortLivedMap<T> getDaoShortLivedMap()
getDaoShortLivedMap in interface DbServiceAmazonDynamoDBClient getClient()
public <T> DaoCacheLoader<T> getDaoCacheLoader()
getDaoCacheLoader in interface DbServicepublic <T> DaoCache<T> getDaoCache(DaoCacheLoader<T> loader, T nullValue, long ttl, long maxItems)
getDaoCache in interface DbServicepublic DaoCounters getDaoCounters()
getDaoCounters in interface DbServicepublic DaoMapOfUserAttributes getDaoMapOfUserAttributes()
getDaoMapOfUserAttributes in interface DbServicepublic DaoMapOfUserSegments getDaoMapOfUserSegments()
getDaoMapOfUserSegments in interface DbService