com.redhat.persistence
Class EventProcessor

java.lang.Object
  extended bycom.redhat.persistence.EventProcessor

public abstract class EventProcessor
extends Object

Event processor.

Since:
2003-02-20
Version:
$Revision: #4 $ $Date: 2004/04/07 $
Author:
Rafael H. Schloming <rhs@mit.edu>

Field Summary
static String versionId
           
 
Constructor Summary
EventProcessor()
           
 
Method Summary
protected abstract  void cleanUp(boolean isCommit)
          During this method, calls into the session to which the event processor is attached are not allowed.
protected abstract  void flush()
           
protected abstract  void write(Event ev)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

EventProcessor

public EventProcessor()
Method Detail

cleanUp

protected abstract void cleanUp(boolean isCommit)
During this method, calls into the session to which the event processor is attached are not allowed.

Parameters:
isCommit - indicates whether the clean up corresponds to a commit. If true, the event processor should throw an exception if it is not in a consistent state. This exception will prevent the commit from actually taking place. If false, exceptions should not be thrown.

write

protected abstract void write(Event ev)

flush

protected abstract void flush()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC