This implementation builds on the DFS repository by storing all reference and object data in the local process. It is not very efficient and exists only for unit testing and small experiments.
The repository is thread-safe. Memory used is released only when this object is garbage collected. Closing the repository has no impact on its memory.
| Modifier and Type | Class and Description |
|---|---|
| public static class | InMemoryRepository.
Builder for in-memory repositories. |
| private static class | |
| public static class | InMemoryRepository.
DfsObjDatabase used by InMemoryRepository. |
| private static class | |
| protected class | InMemoryRepository.
DfsRefDatabase used by InMemoryRepository. |
| private abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private final InMemoryRepository. | |
| pack-priv static final AtomicInteger | |
| private final InMemoryRepository. |
| Access | Constructor and Description |
|---|---|
| public | InMemoryRepository(DfsRepositoryDescription
description of the repository. repoDesc)Initialize a new in-memory repository. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected InMemoryRepository. | Returns: a new in-memory reference database.Creates a new in-memory ref database. |
| public String | getGitwebDescription()
Overrides org. Read the |
| public InMemoryRepository. | getObjectDatabase()
Implements abstract org. Get the object database which stores this repository's data. |
| public RefDatabase | getRefDatabase()
Implements abstract org. Get the reference database which stores the reference namespace. |
| public void | setGitwebDescription(String
new description; null to clear the description. d)Overrides org. Set the |
| public void | setPerformsAtomicTransactions(boolean
whether to use atomic reference transaction support atomic)Enable (or disable) the atomic reference transaction support. |