public List<KojiArchiveInfo> listArchivesMatching( ProjectRef ga, KojiSessionInfo session )
                    throws KojiClientException
    {
        KojiArchiveQuery query = new KojiArchiveQuery( ga );
        return computeIfAbsent( KOJI_ARCHIVES_MATCHING_GA, ProjectRef.class, List.class, ga,
                                () ->{
                                    List<KojiArchiveInfo> archives = kojiClient.listArchives( query, session );
                                    kojiClient.enrichArchiveTypeInfo( archives, session );

                                    return archives;
                                },
                                kojiConfig.getQueryCacheTimeoutHours() );
    }
public List<KojiArchiveInfo> listArchivesMatching( ProjectRef ga, KojiSessionInfo session )
                    throws KojiClientException
    {
        KojiArchiveQuery query = new KojiArchiveQuery( ga );
        return computeIfAbsent( KOJI_ARCHIVES_MATCHING_GA, ProjectRef.class, List.class, ga,
                                () ->{
                                    List<KojiArchiveInfo> archives = kojiClient.listArchives( query, session );
                                    kojiClient.enrichArchiveTypeInfo( archives, session );

                                    return archives;
                                },
                                kojiConfig.getQueryCacheTimeoutHours() );
    }
public List < KojiArchiveInfo > listArchivesMatching ( ProjectRef ga , KojiSessionInfo session ) throws KojiClientException { KojiArchiveQuery query = new KojiArchiveQuery ( ga ) ; return computeIfAbsent ( KOJI_ARCHIVES_MATCHING_GA , ProjectRef . class , List . class , ga , ( ) -> { List < KojiArchiveInfo > archives = kojiClient . listArchives ( query , session ) ; kojiClient . enrichArchiveTypeInfo ( archives , session ) ; return archives ; } , kojiConfig . getQueryCacheTimeoutHours ( ) ) ; }
NOTE: This also enriches the archive results!
NOTE : This also enriches the archive results!