public abstract class Writer extends Object implements Closeable
WebSocketEngine.UpgradeInfo.createConnection(org.glassfish.tyrus.spi.Writer, org.glassfish.tyrus.spi.Connection.CloseListener)
after
a successful upgrade.Constructor and Description |
---|
Writer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
write(ByteBuffer buffer,
CompletionHandler<ByteBuffer> completionHandler)
Tyrus runtime calls this method to handover the data for a connection
to the transport.
|
public abstract void write(ByteBuffer buffer, CompletionHandler<ByteBuffer> completionHandler)
buffer
- bytes to write.completionHandler
- completion handler to know the write status.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.