Class GrizzlyWriter
- java.lang.Object
-
- org.glassfish.tyrus.spi.Writer
-
- org.glassfish.tyrus.container.grizzly.client.GrizzlyWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class GrizzlyWriter extends Writer
- Author:
- Pavel Bucek
-
-
Constructor Summary
Constructors Constructor Description GrizzlyWriter(Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()voidwrite(java.nio.ByteBuffer buffer, CompletionHandler<java.nio.ByteBuffer> completionHandler)A backward compatible method called fromWriter.write(ByteBuffer, CompletionHandler, WriterInfo)to handover the data for a connection to the transport.
-
-
-
Constructor Detail
-
GrizzlyWriter
public GrizzlyWriter(Connection connection)
-
-
Method Detail
-
write
public void write(java.nio.ByteBuffer buffer, CompletionHandler<java.nio.ByteBuffer> completionHandler)Description copied from class:WriterA 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.
-
close
public void close()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-