public class DefaultAllocationStore extends java.lang.Object implements AscendAllocationStore
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
get(java.lang.String userId)
Retrieves a JsonArray.
|
void |
put(java.lang.String userId,
JsonArray allocations)
Stores a JsonArray.
|
public JsonArray get(java.lang.String userId)
AscendAllocationStoreRetrieves a JsonArray that represents the participant's allocations. If there are no stored allocations, should return null.
get in interface AscendAllocationStoreuserId - the participant's unique idpublic void put(java.lang.String userId,
JsonArray allocations)
AscendAllocationStoreStores the given JsonArray and maps it to the provided userId.
put in interface AscendAllocationStoreuserId - the participant's unique idallocations - a participant's allocations