Class GrizzlyWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class GrizzlyWriter
    extends Writer
    Author:
    Pavel Bucek (pavel.bucek at oracle.com)
    • Constructor Detail

      • GrizzlyWriter

        public GrizzlyWriter​(org.glassfish.grizzly.Connection connection)
    • Method Detail

      • write

        public void write​(java.nio.ByteBuffer buffer,
                          CompletionHandler<java.nio.ByteBuffer> completionHandler)
        Description copied from class: Writer

        A backward compatible method called from Writer.write(ByteBuffer, CompletionHandler, WriterInfo) to handover the data for a connection to the transport. The transport writes bytes to underlying connection. Tyrus runtime must not use the buffer until the write is completed.

        The method will be removed in the next major version.

        Specified by:
        write in class Writer
        Parameters:
        buffer - bytes to write.
        completionHandler - completion handler to know the write status.
      • close

        public void close()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object