public void assignToThread(Class requestType,int offset){
  threadAssignements.put(requestType.getName(),new Integer(offset));
}

public void assignToThread ( Class requestType , int offset ) { threadAssignements . put ( requestType . getName ( ) , new Integer ( offset ) ) ; }
makes sure the given class ( subclass of connectionrequest ) is always assigned to the given thread number . this is useful for a case of an application that wants all background downloads to occur on one thread so it doesn ' t tie up the main network thread ( but doesn ' t stop like a low priority request would ) .
