org.erights.e.elib.vat
Class PendingEvent

java.lang.Object
  |
  +--org.erights.e.elib.vat.SendingContext
        |
        +--org.erights.e.elib.vat.PendingEvent
All Implemented Interfaces:
EPrintable, Runnable
Direct Known Subclasses:
PendingCall, PendingDelivery, PendingRun

abstract class PendingEvent
extends SendingContext
implements Runnable


Field Summary
private  long myTicket
          The takeTicket taken from myVat by queueing this PendingEvent.
private  Vat myVat
          The Vat onto which this PendingEvent was queued.
 
Fields inherited from class org.erights.e.elib.vat.SendingContext
 
Constructor Summary
(package private) PendingEvent(SendingContext context, Vat vat)
           
(package private) PendingEvent(Vat vat)
           
 
Method Summary
protected abstract  void innerRun()
          Override this to do the real work of run().
 void printContextOn(TextWriter out)
          Enabled:
 void report(String msg, Throwable problem)
          Trace at warning level that this event caused this problem.
 void run()
          Do now the event that this PendingEvent represents.
 
Methods inherited from class org.erights.e.elib.vat.SendingContext
report, toString, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.erights.e.elib.oldeio.EPrintable
__printOn
 

Field Detail

myVat

private final Vat myVat
The Vat onto which this PendingEvent was queued.


myTicket

private final long myTicket
The takeTicket taken from myVat by queueing this PendingEvent.

Constructor Detail

PendingEvent

PendingEvent(Vat vat)
Parameters:
vat - The Vat onto which this PendingEvent will be queued. Note that this may be different than Vat.getCurrentVat().

PendingEvent

PendingEvent(SendingContext context,
             Vat vat)
Parameters:
context - The context to be recorded as the one causing this event to be queued.
vat - The Vat onto which this PendingEvent will be queued. Note that this may be different than Vat.getCurrentVat().
Method Detail

run

public final void run()
Do now the event that this PendingEvent represents.

Does bookkeeping of debugging info around call to innerRun(), including catching all thrown Exceptions that escape from innerRun() reporting them rather than propogating them.

Specified by:
run in interface Runnable
See Also:
java.lang.Thread#run()

report

public void report(String msg,
                   Throwable problem)
Trace at warning level that this event caused this problem.


innerRun

protected abstract void innerRun()
Override this to do the real work of run().


printContextOn

public void printContextOn(TextWriter out)
                    throws IOException
Description copied from class: SendingContext
Enabled:

Overrides:
printContextOn in class SendingContext
IOException


comments?