@Override public void get(Buffer keys, Callback<Buffer> callback) { wrapped.get(keys, callback); }
this._storage.get(keysToLoad, new Callback<Buffer>() { @Override public void on(Buffer fromDbBuffers) {
@Override public final void getOrLoadAndMark(final byte type, final long world, final long time, final long id, final Callback<Chunk> callback) { final Chunk fromMemory = getAndMark(type, world, time, id); if (fromMemory != null) { callback.on(fromMemory); } else { final Buffer keys = graph().newBuffer(); KeyHelper.keyToBuffer(keys, type, world, time, id); graph().storage().get(keys, new Callback<Buffer>() { @Override public void on(final Buffer result) { if (result != null && result.length() > 0) { Chunk loadedChunk = createAndMark(type, world, time, id); loadedChunk.load(result); result.free(); callback.on(loadedChunk); } else { keys.free(); callback.on(null); } } }); } }
graph().storage().get(toLoadKeys, new Callback<Buffer>() { @Override public void on(final Buffer loadAllResult) {