Top Description Fields Constructors Methods
net.sf.ehcache.util

pack-priv final Class TimeProviderLoader

extends Object
Class Inheritance

Loader for the TimeProvider implementation that will be used in SlewClock Changing this before loading the SlewClock class enables you to use some custom SlewClock.TimeProvider implementation. The default is System#currentTimeMillis()
Author
Alex Snaps
See Also
SlewClock.TimeProvider

Field Summary

Modifier and TypeField and Description
private static SlewClock.TimeProvider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static synchronized SlewClock.TimeProvider

Returns:

the currently set timeProvider
getTimeProvider
()

Getter

public static synchronized void
setTimeProvider(final SlewClock.TimeProvider
the SlewClock.TimeProvider implementation to use.
timeProvider
)

Setter, needs to be set before the SlewClock class is being loaded!

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

timeProviderback to summary
private static SlewClock.TimeProvider timeProvider

Constructor Detail

TimeProviderLoaderback to summary
private TimeProviderLoader()

Method Detail

getTimeProviderback to summary
public static synchronized SlewClock.TimeProvider getTimeProvider()

Getter

Returns:SlewClock.TimeProvider

the currently set timeProvider

setTimeProviderback to summary
public static synchronized void setTimeProvider(final SlewClock.TimeProvider timeProvider)

Setter, needs to be set before the SlewClock class is being loaded!

Parameters
timeProvider:SlewClock.TimeProvider

the SlewClock.TimeProvider implementation to use.