test_class.declarator: repository
test_class.modifier: private
test_class.original_string: private TenantRepository<?, ?> repository;
test_class.type: TenantRepository<?, ?>
test_class.var_name: repository
test_class.file: server/src/test/java/io/spine/server/tenant/TenantRepositoryTest.java
test_class.identifier: TenantRepositoryTest
test_case.body: @Test
      @DisplayName("clear cache")
      void clearCache() {
          TenantId tenantId = generate();
  
          repository.keep(tenantId);
  
          repository.clearCache();
  
          assertFalse(repository.unCache(tenantId));
      }
test_case.class_method_signature: TenantRepositoryTest.clearCache()
test_case.full_signature: @Test @DisplayName("clear cache") void clearCache()
test_case.identifier: clearCache
test_case.invocations: generate keep clearCache assertFalse unCache
test_case.modifiers: @Test @DisplayName("clear cache")
test_case.parameters: ()
test_case.return: void
test_case.signature: void clearCache()
focal_class.declarator: cache = Sets.newConcurrentHashSet()
focal_class.modifier: private final
focal_class.original_string: private final Set<TenantId> cache = Sets.newConcurrentHashSet();
focal_class.type: Set<TenantId>
focal_class.var_name: cache
focal_class.file: server/src/main/java/io/spine/server/tenant/TenantRepository.java
focal_class.identifier: TenantRepository
focal_class.interfaces: implements TenantIndex
focal_class.class_method_signature: TenantRepository.createStorage()
focal_class.full_signature: @Override protected final RecordStorage<TenantId> createStorage()
focal_class.identifier: createStorage
focal_class.modifiers: @Override protected final
focal_class.parameters: ()
focal_class.return: RecordStorage<TenantId>
focal_class.signature: RecordStorage<TenantId> createStorage()
focal_class.class_method_signature: TenantRepository.registerWith(BoundedContext context)
focal_class.full_signature: @Override public final void registerWith(BoundedContext context)
focal_class.identifier: registerWith
focal_class.modifiers: @Override public final
focal_class.parameters: (BoundedContext context)
focal_class.return: void
focal_class.signature: void registerWith(BoundedContext context)
focal_class.class_method_signature: TenantRepository.isTypeSupplier()
focal_class.full_signature: @Override protected final boolean isTypeSupplier()
focal_class.identifier: isTypeSupplier
focal_class.modifiers: @Override protected final
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isTypeSupplier()
focal_class.class_method_signature: TenantRepository.keep(TenantId id)
focal_class.full_signature: @Override public final void keep(TenantId id)
focal_class.identifier: keep
focal_class.modifiers: @Override public final
focal_class.parameters: (TenantId id)
focal_class.return: void
focal_class.signature: void keep(TenantId id)
focal_class.class_method_signature: TenantRepository.cache(TenantId id)
focal_class.full_signature: private void cache(TenantId id)
focal_class.identifier: cache
focal_class.modifiers: private
focal_class.parameters: (TenantId id)
focal_class.return: void
focal_class.signature: void cache(TenantId id)
focal_class.class_method_signature: TenantRepository.cached(TenantId id)
focal_class.full_signature: @VisibleForTesting final boolean cached(TenantId id)
focal_class.identifier: cached
focal_class.modifiers: @VisibleForTesting final
focal_class.parameters: (TenantId id)
focal_class.return: boolean
focal_class.signature: boolean cached(TenantId id)
focal_class.class_method_signature: TenantRepository.unCache(TenantId id)
focal_class.full_signature: protected final boolean unCache(TenantId id)
focal_class.identifier: unCache
focal_class.modifiers: protected final
focal_class.parameters: (TenantId id)
focal_class.return: boolean
focal_class.signature: boolean unCache(TenantId id)
focal_class.class_method_signature: TenantRepository.clearCache()
focal_class.full_signature: protected final void clearCache()
focal_class.identifier: clearCache
focal_class.modifiers: protected final
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearCache()
focal_class.class_method_signature: TenantRepository.all()
focal_class.full_signature: @Override public final Set<TenantId> all()
focal_class.identifier: all
focal_class.modifiers: @Override public final
focal_class.parameters: ()
focal_class.return: Set<TenantId>
focal_class.signature: Set<TenantId> all()
focal_class.superclass: extends DefaultRecordBasedRepository<TenantId, E, T>
focal_method.body: protected final void clearCache() {
          cache.clear();
      }
focal_method.class_method_signature: TenantRepository.clearCache()
focal_method.full_signature: protected final void clearCache()
focal_method.identifier: clearCache
focal_method.invocations: clear
focal_method.modifiers: protected final
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void clearCache()