@Test public void testGenerateIdForUid() { IdCreator idCreator = createIdCreator("testuid:5101,testuid:5101"); long t1 = System.currentTimeMillis(); int count = 10; for(int i = 0; i < count; i++){ long id = idCreator.generateId(2); ApiLogger.debug("IdCreatorTest testGenerateIdForUid id:" + id); } long t2 = System.currentTimeMillis(); ApiLogger.debug(String.format("count=%s,time=%sms", count, (t2 - t1))); }
public long generateId(int bizFlagValue){ return getNextId(bizFlagValue); }
IdCreator implements IdCreate { public long generateId(int bizFlagValue){ return getNextId(bizFlagValue); } }
IdCreator implements IdCreate { public long generateId(int bizFlagValue){ return getNextId(bizFlagValue); }  }
IdCreator implements IdCreate { public long generateId(int bizFlagValue){ return getNextId(bizFlagValue); }  long generateId(int bizFlagValue); NaiveMemcacheClient getIdGenerateClient(); void setIdGenerateClient(NaiveMemcacheClient idGenerateClient); }
IdCreator implements IdCreate { public long generateId(int bizFlagValue){ return getNextId(bizFlagValue); }  long generateId(int bizFlagValue); NaiveMemcacheClient getIdGenerateClient(); void setIdGenerateClient(NaiveMemcacheClient idGenerateClient);  }