org.jclouds.cloudstack.suppliers
Class ZoneIdToZoneSupplier

java.lang.Object
  extended by org.jclouds.cloudstack.suppliers.ZoneIdToZoneSupplier
All Implemented Interfaces:
com.google.common.base.Supplier<com.google.common.cache.LoadingCache<Long,Zone>>

public class ZoneIdToZoneSupplier
extends Object
implements com.google.common.base.Supplier<com.google.common.cache.LoadingCache<Long,Zone>>

Supplies a cache that maps from zone IDs to zones.

Author:
Richard Downer

Constructor Summary
ZoneIdToZoneSupplier(com.google.common.cache.CacheLoader<Long,Zone> zoneIdToZone, long expirationSecs)
           
 
Method Summary
 com.google.common.cache.LoadingCache<Long,Zone> get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoneIdToZoneSupplier

@Inject
public ZoneIdToZoneSupplier(com.google.common.cache.CacheLoader<Long,Zone> zoneIdToZone,
                                   @Named(value="jclouds.session-interval")
                                   long expirationSecs)
Method Detail

get

public com.google.common.cache.LoadingCache<Long,Zone> get()
Specified by:
get in interface com.google.common.base.Supplier<com.google.common.cache.LoadingCache<Long,Zone>>


Copyright © 2009-2012 jclouds. All Rights Reserved.