Rio Project 4.2 API Documentation
org.rioproject.resources.client
Class LookupCachePool.SharedLookupCache
java.lang.Object
org.rioproject.resources.client.LookupCachePool.SharedLookupCache
- All Implemented Interfaces:
- LookupCache
- Enclosing class:
- LookupCachePool
public class LookupCachePool.SharedLookupCache
- extends Object
- implements LookupCache
The SharedLookupCache implements a LookupCache and delegates all method
invocations to it's LookupDiscoveryManager, and maintains a
reference counter for how many clients are sharing the instance. The reference
counter is used to determine if the LookupDiscoveryManager should be
terminated. The reference counter is increments each time this instance is
shared, and decremented each time the terminate method is called. If the
reference counter goes to zero upon termination the LookupDiscoveryManager
will be terminated
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookupCachePool.SharedLookupCache
public LookupCachePool.SharedLookupCache(LookupCache lCache,
ServiceTemplate template,
org.rioproject.resources.client.LookupCachePool.SDMWrapper sdmWrapper)
lookup
public ServiceItem lookup(ServiceItemFilter filter)
- Specified by:
lookup in interface LookupCache
lookup
public ServiceItem[] lookup(ServiceItemFilter filter,
int maxMatches)
- Specified by:
lookup in interface LookupCache
lookupRemote
public ServiceItem[] lookupRemote(ServiceItemFilter filter,
int maxMatches)
addListener
public void addListener(ServiceDiscoveryListener listener)
- Specified by:
addListener in interface LookupCache
removeListener
public void removeListener(ServiceDiscoveryListener listener)
- Specified by:
removeListener in interface LookupCache
discard
public void discard(Object o)
- Specified by:
discard in interface LookupCache
terminate
public void terminate()
- Specified by:
terminate in interface LookupCache
Copyright © 2006-2011 Rio Project. All Rights Reserved.