- java.lang.Object
-
- org.glassfish.tyrus.spi.Writer
-
- io.helidon.webserver.tyrus.TyrusWriterPublisher
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Flow.Publisher<DataChunk>
public class TyrusWriterPublisher extends org.glassfish.tyrus.spi.Writer implements Flow.Publisher<DataChunk>
Class TyrusWriterProducer.
-
-
Constructor Summary
Constructors Constructor Description TyrusWriterPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
subscribe(Flow.Subscriber<? super DataChunk> newSubscriber)
void
write(ByteBuffer byteBuffer, org.glassfish.tyrus.spi.CompletionHandler<ByteBuffer> handler)
-
-
-
Method Detail
-
write
public void write(ByteBuffer byteBuffer, org.glassfish.tyrus.spi.CompletionHandler<ByteBuffer> handler)
- Specified by:
write
in classorg.glassfish.tyrus.spi.Writer
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
subscribe
public void subscribe(Flow.Subscriber<? super DataChunk> newSubscriber)
- Specified by:
subscribe
in interfaceFlow.Publisher<DataChunk>
-
-