public interface IModule
| Modifier and Type | Method and Description |
|---|---|
void |
configureTorrentClient(TorrentClient.Builder builder)
Registers all the mandatory components to the
TorrentClient.Builder. |
List<Class<IModule>> |
getDependsOn()
Returns the extensions which must be present to allow this module to work at all.
|
int |
getRelatedBep()
Returns the number of the BEP to which this module is related.
|
void |
onBuild(TorrentClient torrentClient)
Event called as the last method in the build process of the
TorrentClient.Builder#build() call. |
void |
onPostHandshake(Peer peer)
Called when the peer has successfully passed the handshake with us.
|
void |
onShutdown()
Event called when the TorrentClient is being shutdown.
|
void configureTorrentClient(TorrentClient.Builder builder)
TorrentClient.Builder.builder - The torrent client builder to which the module is being registeredint getRelatedBep()
List<Class<IModule>> getDependsOn()
void onPostHandshake(Peer peer) throws IOException
peer - The peer who passed the handshakeIOExceptionvoid onBuild(TorrentClient torrentClient) throws ModuleBuildException
TorrentClient.Builder#build() call.ModuleBuildException - When the module can not build itself correctlyvoid onShutdown()
Copyright © 2016. All rights reserved.