public class TempObjRepository
extends java.lang.Object
Constructor and Description |
---|
TempObjRepository() |
Modifier and Type | Method and Description |
---|---|
boolean |
contain(java.lang.String groupId, java.lang.String id)
Whether it contains temporary resources
|
static void |
destroy()
Destroy the warehouse
|
java.lang.Object |
get(java.lang.String groupId, java.lang.String id)
Returns the temporary resource object
|
java.util.List<java.lang.String> |
getAllStatusKeys(java.lang.String groupId)
Returns the key-value list of all temporary resources
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllStatusObject(java.lang.String groupId)
Returns all the mapping tale of temporary resources in the specified group
|
java.lang.Object |
getArithParam(java.lang.String groupId, java.lang.String id)
${services_rest_TempObjRepository_method_getArithParam_Title}
|
java.lang.Object |
getArithResult(java.lang.String groupId, java.lang.String id)
${services_rest_TempObjRepository_method_getArithResult_Title}
|
java.lang.String |
getAsynchronizedID(java.lang.String algorithmName) |
static TempObjRepository |
getInstance() |
static TempObjRepository |
getMemoryStoreInstance() |
boolean |
isActivate() |
boolean |
remove(java.lang.String groupId, java.lang.String id) |
java.lang.String |
save(java.lang.String groupId, java.lang.Object obj, double holdTime)
Stores temporary resources and returns the ID of the resource
|
boolean |
save(java.lang.String groupId, java.lang.String id, java.lang.Object obj, double holdTime)
Stores the temporary resource, and return whether it is successful
|
java.lang.String |
saveParamResultEntity(java.lang.String groupId, java.lang.Object param, java.lang.Object result, double holdTime)
${services_rest_TempObjRepository_method_saveParamResultEntity_Title}
|
boolean |
saveSynchronizedItem(java.lang.String groupId, java.lang.Object param, java.lang.Object result, double holdTime, java.lang.String saveItemID) |
void |
update(java.lang.Class<? extends RepositoryProvider> providerType, RepositorySetting setting) |
boolean |
update(java.lang.String groupId, java.lang.String id, java.lang.Object toUpdate) |
public void update(java.lang.Class<? extends RepositoryProvider> providerType, RepositorySetting setting)
public static TempObjRepository getInstance()
public static TempObjRepository getMemoryStoreInstance()
public static void destroy()
Destroy the warehouse
public java.lang.String save(java.lang.String groupId, java.lang.Object obj, double holdTime)
Stores temporary resources and returns the ID of the resource
groupId
-obj
-holdTime
- Survival time in minutespublic boolean save(java.lang.String groupId, java.lang.String id, java.lang.Object obj, double holdTime)
Stores the temporary resource, and return whether it is successful
groupId
-id
-obj
-holdTime
-public java.lang.String saveParamResultEntity(java.lang.String groupId, java.lang.Object param, java.lang.Object result, double holdTime)
${services_rest_TempObjRepository_method_saveParamResultEntity_Title}
${services_rest_TempObjRepository_method_saveParamResultEntity_Description}
groupId
- ${services_rest_TempObjRepository_method_saveParamResultEntity_param_resourceTypeName}param
- ${services_rest_TempObjRepository_method_saveParamResultEntity_param_param}result
- ${services_rest_TempObjRepository_method_saveParamResultEntity_param_Result}holdTime
- ${services_rest_TempObjRepository_method_saveParamResultEntity_param_holdTime}public boolean saveSynchronizedItem(java.lang.String groupId, java.lang.Object param, java.lang.Object result, double holdTime, java.lang.String saveItemID)
public java.util.Map<java.lang.String,java.lang.Object> getAllStatusObject(java.lang.String groupId)
Returns all the mapping tale of temporary resources in the specified group
groupId
-public java.util.List<java.lang.String> getAllStatusKeys(java.lang.String groupId)
Returns the key-value list of all temporary resources
groupId
-public java.lang.Object get(java.lang.String groupId, java.lang.String id)
Returns the temporary resource object
groupId
-id
-public java.lang.String getAsynchronizedID(java.lang.String algorithmName)
public java.lang.Object getArithParam(java.lang.String groupId, java.lang.String id)
${services_rest_TempObjRepository_method_getArithParam_Title}
${services_rest_TempObjRepository_method_getArithParam_Description}
groupId
- ${services_rest_TempObjRepository_method_getArithParam_param_AlgorithmName}id
- ${services_rest_TempObjRepository_method_getArithParam_param_id}public java.lang.Object getArithResult(java.lang.String groupId, java.lang.String id)
${services_rest_TempObjRepository_method_getArithResult_Title}
${services_rest_TempObjRepository_method_getArithResult_Description}
groupId
- ${services_rest_TempObjRepository_method_getArithResult_param_AlgorithmName}id
- ${services_rest_TempObjRepository_method_getArithResult_param_id}public boolean contain(java.lang.String groupId, java.lang.String id)
Whether it contains temporary resources
groupId
-id
-public boolean update(java.lang.String groupId, java.lang.String id, java.lang.Object toUpdate)
public boolean remove(java.lang.String groupId, java.lang.String id)
public boolean isActivate()