/** * Returns the current set of region metadata for this process, * initializing it if it has not yet been explicitly initialized before. * * @return the current set of region metadata */ public static RegionMetadata getRegionMetadata() { RegionMetadata rval = regionMetadata; if (rval != null) { return rval; } synchronized (RegionUtils.class) { if (regionMetadata == null) { initialize(); } } return regionMetadata; }
/** * This method no longer attempts to retrieve region metadata from * CloudFront, as that file is no longer being maintained and the version * bundled with the SDK is likely to be more up-to-date. * <p/> * It's deprecated to signal that it no longer has any possibility of * retrieving a newer set of metadata than was previously loaded. If you * are simply wanting to reinitialize from the bundled region metadata, * call {@code initialize}. If you want to maintain your own remote * copy of the region metadata and periodically refresh it at runtime, * call {@code initializeFromURI}. * * @deprecated in favor of {@link #initialize()} */ @Deprecated public static void init() { initialize(); }
/** * Returns the current set of region metadata for this process, * initializing it if it has not yet been explicitly initialized before. * * @return the current set of region metadata */ public static RegionMetadata getRegionMetadata() { RegionMetadata rval = regionMetadata; if (rval != null) { return rval; } synchronized (RegionUtils.class) { if (regionMetadata == null) { initialize(); } } return regionMetadata; }
/** * This method no longer attempts to retrieve region metadata from * CloudFront, as that file is no longer being maintained and the version * bundled with the SDK is likely to be more up-to-date. * <p/> * It's deprecated to signal that it no longer has any possibility of * retrieving a newer set of metadata than was previously loaded. If you * are simply wanting to reinitialize from the bundled region metadata, * call {@code initialize}. If you want to maintain your own remote * copy of the region metadata and periodically refresh it at runtime, * call {@code initializeFromURI}. * * @deprecated in favor of {@link #initialize()} */ @Deprecated public static void init() { initialize(); }
/** * Returns the current set of region metadata for this process, * initializing it if it has not yet been explicitly initialized before. * * @return the current set of region metadata */ public static RegionMetadata getRegionMetadata() { RegionMetadata rval = regionMetadata; if (rval != null) { return rval; } synchronized (RegionUtils.class) { if (regionMetadata == null) { initialize(); } } return regionMetadata; }
/** * This method no longer attempts to retrieve region metadata from * CloudFront, as that file is no longer being maintained and the version * bundled with the SDK is likely to be more up-to-date. * <p/> * It's deprecated to signal that it no longer has any possibility of * retrieving a newer set of metadata than was previously loaded. If you * are simply wanting to reinitialize from the bundled region metadata, * call {@code initialize}. If you want to maintain your own remote * copy of the region metadata and periodically refresh it at runtime, * call {@code initializeFromURI}. * * @deprecated in favor of {@link #initialize()} */ @Deprecated public static void init() { initialize(); }