@Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } };
@Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } };
@Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } };
@Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } };
@Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } };
@Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } };
@Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } };
/** * Specify the time format to use for time stamps in log messages. * * @param timeFormat The format to use using the * {@link java.text.SimpleDateFormat} syntax */ public void setTimeFormat(String timeFormat) { DateFormatCache globalDateCache = new DateFormatCache(globalCacheSize, timeFormat, null); localDateCache = new ThreadLocal<DateFormatCache>() { @Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } }; }
/** * Specify the time format to use for time stamps in log messages. * * @param timeFormat The format to use using the * {@link java.text.SimpleDateFormat} syntax */ public void setTimeFormat(String timeFormat) { DateFormatCache globalDateCache = new DateFormatCache(globalCacheSize, timeFormat, null); localDateCache = new ThreadLocal<DateFormatCache>() { @Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, timeFormat, globalDateCache); } }; }