public class InMemoryRepository extends java.lang.Object implements Repository
| Constructor and Description |
|---|
InMemoryRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Collection<CoordinatorLogEntry> |
findAllCommittingCoordinatorLogEntries() |
CoordinatorLogEntry |
get(java.lang.String coordinatorId) |
java.util.Collection<CoordinatorLogEntry> |
getAllCoordinatorLogEntries() |
void |
init() |
boolean |
isClosed() |
void |
put(java.lang.String id,
CoordinatorLogEntry coordinatorLogEntry) |
void |
writeCheckpoint(java.util.Collection<CoordinatorLogEntry> checkpointContent) |
public void init()
init in interface Repositorypublic void put(java.lang.String id,
CoordinatorLogEntry coordinatorLogEntry)
throws java.lang.IllegalArgumentException
put in interface Repositoryjava.lang.IllegalArgumentExceptionpublic CoordinatorLogEntry get(java.lang.String coordinatorId)
get in interface Repositorypublic java.util.Collection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries()
findAllCommittingCoordinatorLogEntries in interface Repositorypublic void close()
close in interface Repositorypublic java.util.Collection<CoordinatorLogEntry> getAllCoordinatorLogEntries()
getAllCoordinatorLogEntries in interface Repositorypublic void writeCheckpoint(java.util.Collection<CoordinatorLogEntry> checkpointContent)
writeCheckpoint in interface Repositorypublic boolean isClosed()
Copyright © 2018. All Rights Reserved.