DefaultStreamManager instead@Deprecated public final class DefaultStreamWriter extends Object implements StreamWriter
| Constructor and Description |
|---|
DefaultStreamWriter(StreamManagerFactory streamManagerFactory,
co.cask.cdap.proto.Id.Stream streamId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createStream()
Deprecated.
|
protected void |
finalize()
Deprecated.
|
void |
send(byte[] content)
Deprecated.
|
void |
send(byte[] content,
int off,
int len)
Deprecated.
|
void |
send(ByteBuffer buffer)
Deprecated.
|
void |
send(Map<String,String> headers,
byte[] content)
Deprecated.
|
void |
send(Map<String,String> headers,
byte[] content,
int off,
int len)
Deprecated.
|
void |
send(Map<String,String> headers,
ByteBuffer buffer)
Deprecated.
|
void |
send(Map<String,String> headers,
String content)
Deprecated.
|
void |
send(String content)
Deprecated.
|
@Inject public DefaultStreamWriter(StreamManagerFactory streamManagerFactory, 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.