public class MemBuffered extends AbstractWrapper
| Constructor and Description |
|---|
MemBuffered() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Chunk event)
Add a chunk to the queue, potentially blocking.
|
void |
committed(long l) |
long |
shutdown(AdaptorShutdownPolicy p)
Signals this adaptor to come to an orderly stop.
|
void |
start(String adaptorID,
String type,
long offset,
ChunkReceiver dest)
Note that the name of the inner class will get parsed out as a type
|
getCurrentStatus, getType, parseArgspublic void add(Chunk event) throws InterruptedException
ChunkReceiveradd in interface ChunkReceiveradd in class AbstractWrapperInterruptedException - if thread is interrupted while blockingpublic void start(String adaptorID, String type, long offset, ChunkReceiver dest) throws AdaptorException
AbstractWrapperstart in interface Adaptorstart in class AbstractWrappertype - the application type, who is starting this adaptoroffset - the stream offset of the first byte sent by this adaptorAdaptorExceptionpublic void committed(long l)
committed in interface NotifyOnCommitAdaptorcommitted in class AbstractWrapperpublic long shutdown(AdaptorShutdownPolicy p) throws AdaptorException
Adaptorshutdown in interface Adaptorshutdown in class AbstractWrapperAdaptorExceptionCopyright © ${year} The Apache Software Foundation