org.semispace
Class HolderContainer

java.lang.Object
  extended by org.semispace.HolderContainer

public class HolderContainer
extends Object

Container for holder elements.


Method Summary
protected  void addHolder(Holder add)
          Protected for the benefit of junit tests.
 Holder addHolder(String xml, long liveUntil, String entryClassName, Map<String,String> searchMap)
           
 Long[] findAllHolderIds()
          Return all ids present.
 Holder findById(long id, String className)
           
 long incrementReturnNextId()
           
 HolderElement next(String className)
           
 Holder readHolderWithId(long id)
           
 Holder removeHolderById(long id, String className)
           
static HolderContainer retrieveContainer()
           
 String[] retrieveGroupNames()
           
 int size()
          Method presumed called on first object, which is the holder object.
 void waitHolder(String className, long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

retrieveContainer

public static HolderContainer retrieveContainer()

next

public HolderElement next(String className)

removeHolderById

public Holder removeHolderById(long id,
                               String className)

findById

public Holder findById(long id,
                       String className)

addHolder

protected void addHolder(Holder add)
Protected for the benefit of junit tests.


size

public int size()
Method presumed called on first object, which is the holder object. Returning count, excluding holder.


retrieveGroupNames

public String[] retrieveGroupNames()

readHolderWithId

public Holder readHolderWithId(long id)

findAllHolderIds

public Long[] findAllHolderIds()
Return all ids present. Notice that this method will be rather network expensive, and is only intended to be used for persistence purposes.


addHolder

public Holder addHolder(String xml,
                        long liveUntil,
                        String entryClassName,
                        Map<String,String> searchMap)

incrementReturnNextId

public long incrementReturnNextId()

waitHolder

public void waitHolder(String className,
                       long timeout)


Copyright © 2008-2012. All Rights Reserved.