All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atomikos.recovery.Repository Maven / Gradle / Ivy

/**
 * Copyright (C) 2000-2016 Atomikos 
 *
 * LICENSE CONDITIONS
 *
 * See http://www.atomikos.com/Main/WhichLicenseApplies for details.
 */

package com.atomikos.recovery;

import java.util.Collection;

 /**
  * Abstraction of where transaction log entries are stored and retrieved.
  */
public interface Repository {

	
	void init() throws LogException;
	/**
	 * @throws IllegalArgumentException If the same coordinatorLogEntry is already in the repository. 
	 */
	void put(String id,CoordinatorLogEntry coordinatorLogEntry) throws IllegalArgumentException,LogWriteException;
	
	CoordinatorLogEntry get(String coordinatorId) throws LogReadException;

	Collection findAllCommittingCoordinatorLogEntries() throws LogReadException;
	
	Collection getAllCoordinatorLogEntries() throws LogReadException;

	void writeCheckpoint(Collection checkpointContent) throws LogWriteException;
	
	void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy