Type Parameters:
D - The type of data objects derived from transfer.

public interface HandlerHost<D>
Host that dispatches transfers to registered handlers depending on the transferred commodities types.
Since:
5.2.16
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A transfer handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    <A> void
    registerHandler(@NotNull TransferType<A> type, @NotNull HandlerHost.Handler<D,A> handler)
    Registers a supplier for the hosted gadget itself.
  • Method Details

    • registerHandler

      <A> void registerHandler(@NotNull @NotNull TransferType<A> type, @NotNull @NotNull HandlerHost.Handler<D,A> handler)
      Registers a supplier for the hosted gadget itself.
      Type Parameters:
      A - The type of a transferred commodity.
      Parameters:
      type - The type of transfer being registered.
      handler - The supplier to be registered.
      Since:
      5.2.16