|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITorrentStateListener
A listener for monitoring what the associated torrent is currently doing.
Field Summary | |
---|---|
static int |
EXCHANGING
Used to indicate that the torrent is currently exchanging or waiting to exchange pieces with other peers. |
static int |
FINISHED
Used to indicate the torrent has been completed. |
static int |
HASH_CHECKING
Used to indicate that the torrent is currently performing a hash check for file integrity for all of its pieces. |
static int |
STARTED
Used to indicate that the torrent has finished the preprocessing setup and is about to start by communicating with the tracker. |
static int |
STOPPED
Used to indicate that the torrent is no longer connected. |
Method Summary | |
---|---|
void |
stateChanged(int state)
This method is called to indicate a change in the torrent's current status. |
Field Detail |
---|
static final int STARTED
static final int EXCHANGING
static final int STOPPED
Torrent.stop()
,
Constant Field Valuesstatic final int FINISHED
static final int HASH_CHECKING
Torrent.performHashCheck()
,
Constant Field ValuesMethod Detail |
---|
void stateChanged(int state)
state
- the new state that the torrent is inSTARTED
,
EXCHANGING
,
STOPPED
,
FINISHED
,
HASH_CHECKING
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |