org.ehcache.internal
Class DefaultTimeSourceService

java.lang.Object
  extended by org.ehcache.internal.DefaultTimeSourceService
All Implemented Interfaces:
TimeSourceService, Service

public class DefaultTimeSourceService
extends java.lang.Object
implements TimeSourceService

DefaultTimeSourceService


Constructor Summary
DefaultTimeSourceService(TimeSourceConfiguration config)
           
 
Method Summary
 TimeSource getTimeSource()
          Exposes the TimeSource that is configured
 void start(ServiceProvider serviceProvider)
          Start this service using the provided configuration and ServiceProvider.
 void stop()
          Stops this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTimeSourceService

public DefaultTimeSourceService(TimeSourceConfiguration config)
Method Detail

getTimeSource

public TimeSource getTimeSource()
Description copied from interface: TimeSourceService
Exposes the TimeSource that is configured

Specified by:
getTimeSource in interface TimeSourceService
Returns:
the TimeSource to use

start

public void start(ServiceProvider serviceProvider)
Description copied from interface: Service
Start this service using the provided configuration and ServiceProvider.

The goal of the service provider is to allow a service to use other services.

Specified by:
start in interface Service
Parameters:
serviceProvider - the service provider.

stop

public void stop()
Description copied from interface: Service
Stops this service.

Specified by:
stop in interface Service