public class LocalState extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
LocalState(String backingDir) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(int keepVersions) |
Object |
get(Object key) |
void |
put(Object key,
Object val) |
void |
put(Object key,
Object val,
boolean cleanup) |
void |
remove(Object key) |
void |
remove(Object key,
boolean cleanup) |
Map<Object,Object> |
snapshot() |
public LocalState(String backingDir) throws IOException
IOException
public Map<Object,Object> snapshot() throws IOException
IOException
public Object get(Object key) throws IOException
IOException
public void put(Object key, Object val) throws IOException
IOException
public void put(Object key, Object val, boolean cleanup) throws IOException
IOException
public void remove(Object key) throws IOException
IOException
public void remove(Object key, boolean cleanup) throws IOException
IOException
public void cleanup(int keepVersions) throws IOException
IOException
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.