com.elasticpath.service.misc
Interface TimeService

All Superinterfaces:
EpPersistenceService, EpService
All Known Implementing Classes:
DatabaseServerTimeServiceImpl

public interface TimeService
extends EpPersistenceService

Provides time service. This service provides a way to retrieve a timestamp from a unique source. This is rather critical in clustered environment because different time varies on different application servers.


Method Summary
 java.util.Date getCurrentTime()
          Returns the current time.
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getObject, getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

getCurrentTime

java.util.Date getCurrentTime()
Returns the current time.

Returns:
the current time.