org.jscience.net
Interface URLCache.RefreshListener

All Superinterfaces:
java.util.EventListener
Enclosing class:
URLCache

public static interface URLCache.RefreshListener
extends java.util.EventListener

RefreshListener objects can register with URLCache objects to be notified when the URLCache object is refreshed

See Also:
URLCache.addRefreshListener(URLCache.RefreshListener), URLCache.refresh()

Method Summary
 void refreshedURLCache(URLCache uc, boolean refreshSuccessful, java.io.IOException reasonForFailure)
          This method is called when a call to URLCache.refresh() completes.
 

Method Detail

refreshedURLCache

void refreshedURLCache(URLCache uc,
                       boolean refreshSuccessful,
                       java.io.IOException reasonForFailure)
This method is called when a call to URLCache.refresh() completes. This method is to return quickly as a hold-up here delays the completion of a call to URLCache.refresh()! The object monitor of the given URLCache instance is held while this method executes, which blocks further refresh() calls; it does not block access to previously cached data, however.

Parameters:
uc - The URLCache object that performed the refresh
refreshSuccessful - indicating whether the cache was successfully updated;
reasonForFailure - contains the exception that caused the refresh to fail; is null if update was successful
See Also:
URLCache.refresh()