public interface Repository
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Collection<CoordinatorLogEntry> |
findAllCommittingCoordinatorLogEntries() |
CoordinatorLogEntry |
get(String coordinatorId) |
Collection<CoordinatorLogEntry> |
getAllCoordinatorLogEntries() |
void |
init() |
void |
put(String id,
CoordinatorLogEntry coordinatorLogEntry) |
void |
writeCheckpoint(Collection<CoordinatorLogEntry> checkpointContent) |
void init()
throws LogException
LogExceptionvoid put(String id, CoordinatorLogEntry coordinatorLogEntry) throws IllegalArgumentException, LogWriteException
IllegalArgumentException - If the same coordinatorLogEntry is already in the repository.LogWriteExceptionCoordinatorLogEntry get(String coordinatorId) throws LogReadException
LogReadExceptionCollection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries() throws LogReadException
LogReadExceptionCollection<CoordinatorLogEntry> getAllCoordinatorLogEntries() throws LogReadException
LogReadExceptionvoid writeCheckpoint(Collection<CoordinatorLogEntry> checkpointContent) throws LogWriteException
LogWriteExceptionvoid close()
Copyright © 2016. All Rights Reserved.