T
- The type of the data that can be stored by this storage helper.public class FileSystemStateStorageHelper<T extends Serializable> extends Object implements RetrievableStateStorageHelper<T>
RetrievableStateStorageHelper
implementation which stores the state in the given
filesystem path.Constructor and Description |
---|
FileSystemStateStorageHelper(Path rootPath,
String prefix) |
Modifier and Type | Method and Description |
---|---|
RetrievableStateHandle<T> |
store(T state)
Stores the given state and returns a state handle to it.
|
public FileSystemStateStorageHelper(Path rootPath, String prefix) throws IOException
IOException
public RetrievableStateHandle<T> store(T state) throws Exception
RetrievableStateStorageHelper
store
in interface RetrievableStateStorageHelper<T extends Serializable>
state
- State to be storedException
- if an error occurred while storing the state.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.