Class ZoneIdToZoneSupplier

  • All Implemented Interfaces:
    com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,​Zone>>, Supplier<com.google.common.cache.LoadingCache<String,​Zone>>

    public class ZoneIdToZoneSupplier
    extends Object
    implements com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String,​Zone>>
    Supplies a cache that maps from zone IDs to zones.
    • Constructor Detail

      • ZoneIdToZoneSupplier

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

      • get

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