Class GetRegionForBucket

  • All Implemented Interfaces:
    com.google.common.base.Function<String,​com.google.common.base.Optional<String>>, Function<String,​com.google.common.base.Optional<String>>

    @Singleton
    public class GetRegionForBucket
    extends Object
    implements com.google.common.base.Function<String,​com.google.common.base.Optional<String>>
    • Field Detail

      • logger

        protected Logger logger
      • bucketToRegion

        protected final com.google.common.cache.LoadingCache<String,​com.google.common.base.Optional<String>> bucketToRegion
    • Constructor Detail

      • GetRegionForBucket

        @Inject
        public GetRegionForBucket​(com.google.common.cache.LoadingCache<String,​com.google.common.base.Optional<String>> bucketToRegion)
    • Method Detail

      • apply

        public com.google.common.base.Optional<String> apply​(String bucket)
        Specified by:
        apply in interface com.google.common.base.Function<String,​com.google.common.base.Optional<String>>
        Specified by:
        apply in interface Function<String,​com.google.common.base.Optional<String>>