Hi,<br>I am using the following code to retrieve the metadata file.<br>FileBackedHttpResource resource = new FileBackedHttpResource( metadataUrl, metadataFile );<br>ResourceBackedMetadataProvider metadataProvider = new ResourceBackedMetadataProvider( new Timer(), resource );<br>
metadataProvider.setParserPool( new BasicParserPool() );<br>metadataProvider.setRequireValidMetadata( true );<br>metadataProvider.initialize();<br clear="all"><br>Question 1:<br>I am not sure how to appropriately set the first parameter when initiate a ResourceBackedMetadataProvider(Timer timer, Resource resource) object. What should I do to the Timer? I think my current way is not ideal. Can you give me some concrete example to show when the Timer is useful?<br>
<br>Quetion 2:<br>If I do not set anything else, I think the metadataProvider contains some default time for refresh delay, cache duration, and interval. I assume the metadataProvider will automatically refresh the local cached metadata file, is it?<br>
<br>Best,<br>Yaowen<br>