public final class DefaultStreamWriter extends Object implements StreamWriter
| Constructor and Description |
|---|
DefaultStreamWriter(co.cask.cdap.data.stream.service.StreamHandler streamHandler,
co.cask.cdap.proto.Id.Stream streamId) |
| Modifier and Type | Method and Description |
|---|---|
void |
createStream() |
protected void |
finalize() |
void |
send(byte[] content) |
void |
send(byte[] content,
int off,
int len) |
void |
send(ByteBuffer buffer) |
void |
send(Map<String,String> headers,
byte[] content) |
void |
send(Map<String,String> headers,
byte[] content,
int off,
int len) |
void |
send(Map<String,String> headers,
ByteBuffer buffer) |
void |
send(Map<String,String> headers,
String content) |
void |
send(String content) |
@Inject
public DefaultStreamWriter(co.cask.cdap.data.stream.service.StreamHandler streamHandler,
co.cask.cdap.proto.Id.Stream streamId)
throws IOException
IOExceptionpublic void createStream()
throws IOException
createStream in interface StreamWriterIOExceptionpublic void send(String content) throws IOException
send in interface StreamWriterIOExceptionpublic void send(byte[] content)
throws IOException
send in interface StreamWriterIOExceptionpublic void send(byte[] content,
int off,
int len)
throws IOException
send in interface StreamWriterIOExceptionpublic void send(ByteBuffer buffer) throws IOException
send in interface StreamWriterIOExceptionpublic void send(Map<String,String> headers, String content) throws IOException
send in interface StreamWriterIOExceptionpublic void send(Map<String,String> headers, byte[] content) throws IOException
send in interface StreamWriterIOExceptionpublic void send(Map<String,String> headers, byte[] content, int off, int len) throws IOException
send in interface StreamWriterIOExceptionpublic void send(Map<String,String> headers, ByteBuffer buffer) throws IOException
send in interface StreamWriterIOExceptionCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.