[#BloombergLP-bdlt-DefaultTimetableCache-initialize-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DefaultTimetableCache.adoc[DefaultTimetableCache]::initialize :relfileprefix: ../../../ :mrdocs: `initialize` overloads == Synopses Declared in `<bdlt_defaulttimetablecache.h>` Initialize the default `TimetableCache` object managed by this class to use the specified `loader` to obtain timetables, to have no timeout, and to use the specified `allocator` to supply memory. If the default cache is already in the initialized state, this method has no effect. Return 0 on success, and a non‐zero value otherwise. The behavior is undefined unless `loader` and `allocator` remain valid until a subsequent call to `destroy`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlt/DefaultTimetableCache/initialize-04.adoc[initialize]( xref:BloombergLP/bdlt/TimetableLoader.adoc[TimetableLoader]* loader, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator); ---- [.small]#xref:BloombergLP/bdlt/DefaultTimetableCache/initialize-04.adoc[_» more..._]# Initialize the default `TimetableCache` object managed by this class to use the specified `loader` to obtain timetables, to have the specified `timeout`, and to use the specified `allocator` to supply memory. If the default cache is already in the initialized state, this method has no effect. Return 0 on success, and a non‐zero value otherwise. The behavior is undefined unless `loader` and `allocator` remain valid until a subsequent call to `destroy`, and `bsls::TimeInterval() <= timeout <= bsls::TimeInterval(INT_MAX, 0)`. Note that a `timeout` value of 0 indicates that a timetable will be loaded into the default cache by _each_ (successful) call to `TimetableCache::getTimetable` on the cache returned by `instance`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdlt/DefaultTimetableCache/initialize-07.adoc[initialize]( xref:BloombergLP/bdlt/TimetableLoader.adoc[TimetableLoader]* loader, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& timeout, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator); ---- [.small]#xref:BloombergLP/bdlt/DefaultTimetableCache/initialize-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#