public class JournalWriteActor extends AbstractActorProcessor<JournalRingItem>
Constructor and Description |
---|
JournalWriteActor(JournalFile journalFile) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getThreadName()
Returns the current thread name.
|
void |
onProcessComplete()
Called when all items in the queue are processed.
|
void |
process(JournalRingItem entry)
Process a single item.
|
java.lang.String |
toString() |
onProcessStart
public JournalWriteActor(JournalFile journalFile)
public java.lang.String getThreadName()
AbstractActorProcessor
getThreadName
in interface ActorProcessor<JournalRingItem>
getThreadName
in class AbstractActorProcessor<JournalRingItem>
public final void process(JournalRingItem entry) throws java.io.IOException
AbstractActorProcessor
process
in interface ActorProcessor<JournalRingItem>
process
in class AbstractActorProcessor<JournalRingItem>
java.io.IOException
public void onProcessComplete() throws java.lang.Exception
AbstractActorProcessor
onProcessComplete
in interface ActorProcessor<JournalRingItem>
onProcessComplete
in class AbstractActorProcessor<JournalRingItem>
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object