|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ScrobbleCache
A ScrobbleCache is able to cache SubmissionData instances for later submission
to the Last.fm servers.
| Method Summary | |
|---|---|
void |
cacheScrobble(java.util.Collection<SubmissionData> submissions)
Caches a collection of SubmissionData. |
void |
cacheScrobble(SubmissionData... submissions)
Caches one or more SubmissionData. |
void |
clearScrobbleCache()
Clears all cached scrobbles from this cache. |
boolean |
isEmpty()
Checks if the cache contains any scrobbles. |
void |
scrobble(Scrobbler scrobbler)
Tries to scrobble all cached scrobbles. |
| Method Detail |
|---|
void cacheScrobble(SubmissionData... submissions)
SubmissionData.
submissions - The submissionsvoid cacheScrobble(java.util.Collection<SubmissionData> submissions)
SubmissionData.
submissions - The submissionsboolean isEmpty()
true if this cache is empty
void scrobble(Scrobbler scrobbler)
throws java.io.IOException
scrobbler - A Scrobbler instance
java.io.IOException - on I/O errors
java.lang.IllegalStateException - if the Scrobbler is not fully initialized (i.e. no handshake performed)void clearScrobbleCache()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||