站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

CachingDestinationResolver (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.jms.support.destination
Interface CachingDestinationResolver

All Superinterfaces:
DestinationResolver
All Known Implementing Classes:
JndiDestinationResolver

public interface CachingDestinationResolver
extends DestinationResolver

Extension of the DestinationResolver interface, exposing methods for clearing the cache.

Since:
2.0
Author:
Juergen Hoeller

Method Summary
 void clearCache()
          Clear the entire destination cache.
 void removeFromCache(String destinationName)
          Remove the destination with the given name from the cache (if cached by this resolver in the first place).
 
Methods inherited from interface org.springframework.jms.support.destination.DestinationResolver
resolveDestinationName
 

Method Detail

removeFromCache

void removeFromCache(String destinationName)
Remove the destination with the given name from the cache (if cached by this resolver in the first place).

To be called if access to the specified destination failed, assuming that the JMS Destination object might have become invalid.

Parameters:
destinationName - the name of the destination

clearCache

void clearCache()
Clear the entire destination cache.

To be called in case of general JMS provider failure.


The Spring Framework

Copyright © 2002-2007 The Spring Framework.