com.atomikos.recovery
Interface Repository
public interface Repository
Abstraction of where transaction log entries are stored and retrieved.
init
void init(ConfigProperties configProperties)
throws LogException
- Throws:
LogException
put
void put(String id,
CoordinatorLogEntry coordinatorLogEntry)
throws IllegalArgumentException,
LogWriteException
- Throws:
IllegalArgumentException - If the same coordinatorLogEntry is already in the repository.
LogWriteException
get
CoordinatorLogEntry get(String coordinatorId)
throws LogReadException
- Throws:
LogReadException
findAllCommittingCoordinatorLogEntries
Collection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries()
throws LogReadException
- Throws:
LogReadException
getAllCoordinatorLogEntries
Collection<CoordinatorLogEntry> getAllCoordinatorLogEntries()
throws LogReadException
- Throws:
LogReadException
writeCheckpoint
void writeCheckpoint(Collection<CoordinatorLogEntry> checkpointContent)
throws LogWriteException
- Throws:
LogWriteException
close
void close()
Copyright © 2016. All Rights Reserved.