public abstract class Flusher
extends java.lang.Object
implements java.io.Flushable, java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
Flusher.Config |
static interface |
Flusher.Instantiator |
| Modifier and Type | Field and Description |
|---|---|
protected Buffer |
buffer |
protected Sender |
sender |
| Modifier | Constructor and Description |
|---|---|
protected |
Flusher(Buffer buffer,
Sender sender,
Flusher.Config config) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
beforeClosingBuffer() |
void |
close() |
void |
flush() |
protected abstract void |
flushInternal(boolean force) |
Buffer |
getBuffer() |
int |
getFlushIntervalMillis() |
Sender |
getSender() |
int |
getWaitUntilBufferFlushed() |
int |
getWaitUntilTerminated() |
boolean |
isTerminated() |
void |
onUpdate() |
java.lang.String |
toString() |
protected Flusher(Buffer buffer, Sender sender, Flusher.Config config)
public Buffer getBuffer()
protected abstract void flushInternal(boolean force)
throws java.io.IOException
java.io.IOExceptionprotected abstract void beforeClosingBuffer()
throws java.io.IOException
java.io.IOExceptionpublic void onUpdate()
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic boolean isTerminated()
public Sender getSender()
public int getFlushIntervalMillis()
public int getWaitUntilBufferFlushed()
public int getWaitUntilTerminated()
public java.lang.String toString()
toString in class java.lang.Object