Interface OutputSupplier

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

May be used to associate (pending) Output events with another event.

As an example consider readily available data (not to be produced lazily) that is to be emitted once a connection to a receiver has been established. In this case the OpenSocketConnection event may be associated with an output supplier. The handler for the ClientConnected event can then check if the OpenSocketConnection event has an associated output supplier and call the supplier’s emit(org.jgrapes.io.IOSubchannel) method.

Since:
2.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    emit(IOSubchannel channel)
    Emit the Output events.
  • Method Details