Search in sources :

Example 1 with SetStreamCommand

use of com.ramussoft.common.journal.command.SetStreamCommand in project ramus by Vitaliy-Yakovchuk.

the class JournaledEngine method setUndoableStream.

@Override
public void setUndoableStream(String path, byte[] data) {
    byte[] oldBytes = getStream(path);
    setStream(path, data);
    synchronized (swithJournalLock) {
        journal.store(new SetStreamCommand(this, oldBytes, data, path));
    }
}
Also used : SetStreamCommand(com.ramussoft.common.journal.command.SetStreamCommand)

Aggregations

SetStreamCommand (com.ramussoft.common.journal.command.SetStreamCommand)1