public class ChangelogStateFactory extends Object
ChangelogState
s.Constructor and Description |
---|
ChangelogStateFactory() |
Modifier and Type | Method and Description |
---|---|
<K,N,V,S extends State> |
create(StateDescriptor<S,V> stateDescriptor,
InternalKvState<K,N,V> internalKvState,
KvStateChangeLogger<V,N> kvStateChangeLogger,
InternalKeyContext<K> keyContext) |
<T> ChangelogKeyGroupedPriorityQueue<T> |
create(String stateName,
KeyGroupedInternalPriorityQueue<T> internalPriorityQueue,
StateChangeLogger<T,Void> logger,
TypeSerializer<T> serializer) |
void |
dispose() |
ChangelogState |
getExistingState(String name,
StateMetaInfoSnapshot.BackendStateType type) |
void |
resetAllWritingMetaFlags() |
public <K,N,V,S extends State> ChangelogState create(StateDescriptor<S,V> stateDescriptor, InternalKvState<K,N,V> internalKvState, KvStateChangeLogger<V,N> kvStateChangeLogger, InternalKeyContext<K> keyContext) throws Exception
Exception
public <T> ChangelogKeyGroupedPriorityQueue<T> create(String stateName, KeyGroupedInternalPriorityQueue<T> internalPriorityQueue, StateChangeLogger<T,Void> logger, TypeSerializer<T> serializer)
public ChangelogState getExistingState(String name, StateMetaInfoSnapshot.BackendStateType type) throws UnsupportedOperationException
name
- state nametype
- state type (the only supported type currently are: key value
, priority queue
)UnsupportedOperationException
- if state type is not supportedpublic void resetAllWritingMetaFlags()
public void dispose()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.