public class WriteaheadBuffered extends AbstractWrapper
Constructor and Description |
---|
WriteaheadBuffered() |
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, parseArgs
public void add(Chunk event) throws InterruptedException
ChunkReceiver
add
in interface ChunkReceiver
add
in class AbstractWrapper
InterruptedException
- if thread is interrupted while blockingpublic void start(String adaptorID, String type, long offset, ChunkReceiver dest) throws AdaptorException
AbstractWrapper
start
in interface Adaptor
start
in class AbstractWrapper
type
- the application type, who is starting this adaptoroffset
- the stream offset of the first byte sent by this adaptorAdaptorException
public void committed(long l)
committed
in interface NotifyOnCommitAdaptor
committed
in class AbstractWrapper
public long shutdown(AdaptorShutdownPolicy p) throws AdaptorException
Adaptor
shutdown
in interface Adaptor
shutdown
in class AbstractWrapper
AdaptorException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.