public class TreasureDataSender
extends java.lang.Object
implements java.io.Closeable, org.komamitsu.fluency.ingester.sender.Sender
| Modifier and Type | Class and Description |
|---|---|
static class |
TreasureDataSender.Config |
| Constructor and Description |
|---|
TreasureDataSender() |
TreasureDataSender(TreasureDataSender.Config config) |
| Modifier and Type | Method and Description |
|---|---|
protected com.treasuredata.client.TDClient |
buildClient() |
void |
close() |
com.treasuredata.client.TDClient |
getClient() |
int |
getMaxRetryInternalMs() |
float |
getRetryFactor() |
int |
getRetryInternalMs() |
int |
getRetryMax() |
int |
getWorkBufSize() |
void |
send(java.lang.String dbAndTableTag,
java.nio.ByteBuffer dataBuffer) |
public TreasureDataSender()
public TreasureDataSender(TreasureDataSender.Config config)
protected com.treasuredata.client.TDClient buildClient()
public com.treasuredata.client.TDClient getClient()
public int getRetryInternalMs()
public int getMaxRetryInternalMs()
public float getRetryFactor()
public int getRetryMax()
public int getWorkBufSize()
public void send(java.lang.String dbAndTableTag,
java.nio.ByteBuffer dataBuffer)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException