Interface PayloadWriter<T>

  • Type Parameters:
    T - The type of Objects to write.
    All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, java.io.Flushable
    All Known Subinterfaces:
    GrpcPayloadWriter<T>, HttpPayloadWriter<T>
    All Known Implementing Classes:
    ConnectablePayloadWriter

    public interface PayloadWriter<T>
    extends java.io.Closeable, java.io.Flushable
    An interface which mimics behavior like OutputStream, but allows for writing of objects of type PayloadWriter.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void write​(T t)
      Write an object of type PayloadWriter.
      • Methods inherited from interface java.io.Closeable

        close
      • Methods inherited from interface java.io.Flushable

        flush
    • Method Detail

      • write

        void write​(T t)
            throws java.io.IOException
        Write an object of type PayloadWriter.
        Parameters:
        t - the object to write.
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if this has been closed.