K - type of the record keysAGG - type of the aggregated valuespublic interface SessionStore<K,AGG> extends StateStore, ReadOnlySessionStore<K,AGG>
The key is internally represented as Windowed<K> that comprises the plain key
and the Window that represents window start- and end-timestamp.
If two sessions are merged, a new session with new start- and end-timestamp must be inserted into the store while the two old sessions must be deleted.
| Modifier and Type | Method and Description |
|---|---|
void |
put(Windowed<K> sessionKey,
AGG aggregate)
Write the aggregated value for the provided key to the store
|
void |
remove(Windowed<K> sessionKey)
Remove the session aggregated with provided
Windowed key from the store |
close, flush, init, init, isOpen, name, persistentbackwardFetch, backwardFetch, backwardFindSessions, backwardFindSessions, fetch, fetch, fetchSession, findSessions, findSessionsvoid remove(Windowed<K> sessionKey)
Windowed key from the storesessionKey - key of the session to removeNullPointerException - If null is used for sessionKey.void put(Windowed<K> sessionKey, AGG aggregate)
sessionKey - key of the session to writeaggregate - the aggregated value for the session, it can be null;
if the serialized bytes are also null it is interpreted as deletesNullPointerException - If null is used for sessionKey.