Package org.openxri.resolve

Examples of org.openxri.resolve.ResolverCache.del()


  public void testExpire()
  {
    ResolverCache c = new ResolverCache();
    try {
      c.del("@abc", false, false);
      byte[] s = c.get("@abc", false, false);
      assertTrue("stale cache value", s == null);
     
      c.put("@abc", false, false, "x".getBytes("UTF-8"), 2);
      s = c.get("@abc", false, false);
View Full Code Here


 
  public void testConcurrent()
  {
    ResolverCache cache = new ResolverCache();
    cache.setNewCache("testConcurrent", 5);
    cache.del(AuthorityPath.buildAuthorityPath("@").toString(), false, false);
    assertTrue("Initial cache not empty", cache.getSize() == 0);


    XRD xrd = new XRD();
    Service atAuthService = new Service();
View Full Code Here

  public void testExpire()
  {
    ResolverCache c = new ResolverCache();
    try {
      c.del("@abc", false, false);
      byte[] s = c.get("@abc", false, false);
      assertTrue("stale cache value", s == null);
     
      c.put("@abc", false, false, "x".getBytes("UTF-8"), 2);
      s = c.get("@abc", false, false);
View Full Code Here

 
  public void testConcurrent()
  {
    ResolverCache cache = new ResolverCache();
    cache.setNewCache("testConcurrent", 5);
    cache.del(AuthorityPath.buildAuthorityPath("@").toString(), false, false);
    assertTrue("Initial cache not empty", cache.getSize() == 0);


    XRD xrd = new XRD();
    Service atAuthService = new Service();
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.