public interface ScrobbleCache
ScrobbleCache
is able to cache SubmissionData
instances for later submission
to the Last.fm servers.Modifier and Type | Method and Description |
---|---|
void |
cacheScrobble(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.
|
void cacheScrobble(SubmissionData... submissions)
SubmissionData
.submissions
- The submissionsvoid cacheScrobble(Collection<SubmissionData> submissions)
SubmissionData
.submissions
- The submissionsboolean isEmpty()
true
if this cache is emptyvoid scrobble(Scrobbler scrobbler) throws IOException
scrobbler
- A Scrobbler
instanceIOException
- on I/O errorsIllegalStateException
- if the Scrobbler
is not fully initialized (i.e. no handshake performed)void clearScrobbleCache()