Package org.klomp.snark
Interface CompleteListener
- All Known Implementing Classes:
SnarkManager
,UpdateRunner
public interface CompleteListener
Callback for Snark events.
- Since:
- 0.9.4 moved from Snark.java
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(Snark snark, String message) void
getSavedComments
(Snark snark) boolean
getSavedTorrentBitField
(Snark snark) long
getSavedTorrentTime
(Snark snark) not really listeners but the easiest way to get back to an optional SnarkManagerlong
getSavedUploaded
(Snark snark) gotMetaInfo
(Snark snark) We transitioned from magnet mode, we have now initialized our metainfo and storage.void
void
locked_saveComments
(Snark snark, CommentSet comments) boolean
void
torrentComplete
(Snark snark) void
updateStatus
(Snark snark)
-
Method Details
-
torrentComplete
-
updateStatus
-
gotMetaInfo
We transitioned from magnet mode, we have now initialized our metainfo and storage. The listener should now call getMetaInfo() and save the data to disk.- Returns:
- the new name for the torrent or null on error
- Since:
- 0.8.4
-
fatal
- Since:
- 0.9
-
addMessage
- Since:
- 0.9.2
-
gotPiece
- Since:
- 0.9.4
-
getSavedTorrentTime
not really listeners but the easiest way to get back to an optional SnarkManager -
getSavedTorrentBitField
-
getSavedPreserveNamesSetting
- Since:
- 0.9.15
-
getSavedUploaded
- Since:
- 0.9.15
-
getSavedComments
- Since:
- 0.9.31
-
locked_saveComments
- Since:
- 0.9.31
-
shouldAutoStart
boolean shouldAutoStart()- Since:
- 0.9.42
-