Interface ProxyRegistry

All Superinterfaces:
Registry

public interface ProxyRegistry extends Registry
Owns the transports used to reach the other servers.
  • Method Summary

    Modifier and Type
    Method
    Description
    Every registered transport, enabled or not.
    boolean
    Whether at least one transport is usable, which decides if messages leave this server at all.
    boolean
    hasEnabledProxy(Predicate<Proxy> proxyPredicate)
    Whether at least one usable transport matches the test.
    void
    registry(Proxy proxy)
    Adds a transport.
    void
    Closes every transport and opens the ones the current config enables.

    Methods inherited from interface Registry

    onDisable, onEnable
  • Method Details

    • getProxies

      List<Proxy> getProxies()
      Every registered transport, enabled or not.
      Returns:
      the transports
    • hasEnabledProxy

      boolean hasEnabledProxy()
      Whether at least one transport is usable, which decides if messages leave this server at all.
      Returns:
      true if any transport is enabled
    • hasEnabledProxy

      boolean hasEnabledProxy(Predicate<Proxy> proxyPredicate)
      Whether at least one usable transport matches the test.
      Parameters:
      proxyPredicate - the test
      Returns:
      true if a matching transport is enabled
    • registry

      void registry(Proxy proxy)
      Adds a transport.
      Parameters:
      proxy - the transport to add
    • reload

      void reload()
      Closes every transport and opens the ones the current config enables.