Interface AvatarImageSource

All Known Implementing Classes:
UrlAvatarCacheSource

public interface AvatarImageSource
Interface for Avatar Cache Item Source

This defines a source for avatar to be ached and implementation to fetch it

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Make sure we can fetch
    Fetch image from source
    Get unique hash key for this item to be used for caching
  • Method Details

    • fetch

      AvatarImage fetch()
      Fetch image from source
      Returns:
      image as AvatarImage object
    • getId

      String getId()
      Get unique hash key for this item to be used for caching
    • canFetch

      boolean canFetch()
      Make sure we can fetch
      Returns:
      true if can fetch