com.taobao.metamorphosis.utils
类 IdWorker

java.lang.Object
  继承者 com.taobao.metamorphosis.utils.IdWorker

public class IdWorker
extends Object

来自于twitter项目snowflake的id产生方案,全局唯一,时间有序

作者:
boyan
另请参见:
https://github.com/twitter/snowflake

构造方法摘要
IdWorker(long workerId)
           
 
方法摘要
 long nextId()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

IdWorker

public IdWorker(long workerId)
方法详细信息

nextId

public long nextId()


Copyright © 2010–2013. All rights reserved.