/** * Creates a new instance. * * @param storeDirectory * The directory used to hold the contents of the store. * @param saveCurrentState * If true, the current state will be updated by the * {@link #saveState(ReplicationState)} operation as well as the * sequenced state. */ public FileReplicationStore(File storeDirectory, boolean saveCurrentState) { currentStatePersister = new PropertiesPersister(new File(storeDirectory, STATE_FILE)); sequenceFormatter = new ReplicationFileSequenceFormatter(storeDirectory); this.saveCurrentState = saveCurrentState; }
/** * Creates a new instance. * * @param storeDirectory * The directory used to hold the contents of the store. * @param saveCurrentState * If true, the current state will be updated by the * {@link #saveState(ReplicationState)} operation as well as the * sequenced state. */ public FileReplicationStore(File storeDirectory, boolean saveCurrentState) { currentStatePersister = new PropertiesPersister(new File(storeDirectory, STATE_FILE)); sequenceFormatter = new ReplicationFileSequenceFormatter(storeDirectory); this.saveCurrentState = saveCurrentState; }