org.ehcache.impl.internal
Class TimeSourceConfiguration

java.lang.Object
  extended by org.ehcache.impl.internal.TimeSourceConfiguration
All Implemented Interfaces:
ServiceCreationConfiguration<TimeSourceService>

public class TimeSourceConfiguration
extends java.lang.Object
implements ServiceCreationConfiguration<TimeSourceService>

Configuration for the TimeSourceService This configuration has to be applied at the CacheManager level.


Constructor Summary
TimeSourceConfiguration(TimeSource timeSource)
          Constructor for this configuration object which takes the TimeSource to use.
 
Method Summary
 java.lang.Class<TimeSourceService> getServiceType()
          Indicates which service consumes this configuration at creation.
 TimeSource getTimeSource()
          Exposes the TimeSource configured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSourceConfiguration

public TimeSourceConfiguration(TimeSource timeSource)
Constructor for this configuration object which takes the TimeSource to use.

Parameters:
timeSource - the TimeSource to use
Method Detail

getServiceType

public java.lang.Class<TimeSourceService> getServiceType()
Description copied from interface: ServiceCreationConfiguration
Indicates which service consumes this configuration at creation.

Specified by:
getServiceType in interface ServiceCreationConfiguration<TimeSourceService>
Returns:
the service type

getTimeSource

public TimeSource getTimeSource()
Exposes the TimeSource configured.

Returns:
the TimeSource