Interface MainlineDHTManager

All Known Implementing Classes:
MainlineDHTManagerImpl

public interface MainlineDHTManager
Used for registering and unregistering plugins which connect to the mainline DHT network. Plugins must implement the MainlineDHTProvider interface and register with this class so that the client can indicate it provides DHT support.
Since:
3.0.4.3
  • Method Details

    • setProvider

      void setProvider(MainlineDHTProvider provider)
      Registers an object to be used for mainline DHT support. There is only one slot available, so if multiple plugins attempt to register themselves, only the last one will be used. If you pass null as an argument, it will cause the client to disable support for mainline DHT.
    • getProvider

      MainlineDHTProvider getProvider()
      Returns the current DHT provider, or null if there isn't one.