Package jenkins.scm.impl.avatars
Interface AvatarImageSource
-
- All Known Implementing Classes:
UrlAvatarCacheSource
public interface AvatarImageSource
Interface for Avatar Cache Item SourceThis defines a source for avatar to be ached and implementation to fetch it
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canFetch()
Make sure we can fetchAvatarImage
fetch()
Fetch image from sourceString
getId()
Get unique hash key for this item to be used for caching
-
-
-
Method Detail
-
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
-
-