|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITimestampService
A service for unique timestamps.
| Method Summary | |
|---|---|
long |
nextTimestamp()
Return the next unique timestamp. |
| Methods inherited from interface com.bigdata.service.IService |
|---|
destroy, getHostname, getServiceIface, getServiceName, getServiceUUID |
| Method Detail |
|---|
long nextTimestamp()
throws IOException
Note: This method MUST return strictly increasing values, even when it is invoked by concurrent threads. While other implementations are possible and may be more efficient, one way to insure thread safety is to synchronize on some object such that the implementaiton exhibits a FIFO behavior.
IOException - if there is an RMI problem.TimestampServiceUtil.nextTimestamp(ITimestampService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||