Examples of evictUnusedItems()


Examples of org.sonatype.nexus.proxy.repository.Repository.evictUnusedItems()

    // store the change
    repo1.getAttributesHandler().storeAttributes(mangledItem);

    // and evict all that are not "used" for 2 days
    Collection<String> evicted = repo1.evictUnusedItems(new ResourceStoreRequest(
        RepositoryItemUid.PATH_ROOT,
        true), System.currentTimeMillis() - (2 * DAY));

    // checks
    assertNotNull(evicted);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.