public interface ITimestampService extends IService
Modifier and Type | Method and Description |
---|---|
long |
nextTimestamp()
Return the next unique timestamp.
|
destroy, getHostname, getServiceIface, getServiceName, getServiceUUID
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)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.