@Override
    public void put(String key, Object value) throws FailStoreException {
        try {
            String valueString = JSON.toJSONString(value);
            assert valueString != null;
            db.put(key.getBytes("UTF-8"), valueString.getBytes("UTF-8"));
        } catch (Exception e) {
            throw new FailStoreException(e);
        }
    }
Only a single process (possibly multi-threaded) can access a particular database at a time
Robert HG (254963746@qq.com) on 5/21/15.
lts-core/src/main/java/com/github/ltsopensource/core/failstore/leveldb/LeveldbFailStore.java