Interface BlockConsumer<DATA extends java.io.Serializable>

    • Method Detail

      • writeDatagrams

        default void writeDatagrams​(DATA[] aDatagram)
                             throws org.refcodes.component.OpenException
        Writes (sends) a datagram block to a listening DatagramReceiver or BlockReceiver.
        Parameters:
        aDatagram - The datagram to be pushed to the receiving DatagramReceiver or BlockReceiver.
        Throws:
        org.refcodes.component.OpenException - Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
      • writeDatagrams

        void writeDatagrams​(DATA[] aDatagram,
                            int aOffset,
                            int aLength)
                     throws org.refcodes.component.OpenException
        Write datagrams.
        Parameters:
        aDatagram - the datagram
        aOffset - the offset
        aLength - the length
        Throws:
        org.refcodes.component.OpenException - the open exception