ariba.util.core
Class EventLoop

java.lang.Object
  extended by ariba.util.core.EventQueue
      extended by ariba.util.core.EventLoop
All Implemented Interfaces:
java.lang.Runnable

public class EventLoop
extends EventQueue
implements java.lang.Runnable

A simple event loop


Field Summary
static java.lang.String ClassName
           
 
Constructor Summary
EventLoop()
          Create a new EventLoop using a new LinkedTimerQueue.
EventLoop(TimerQueue queue)
          Create a new EventLoop using the specified TimerQueue.
 
Method Summary
 void run()
          Runnable interface method implemented to process Events as they appear in the queue.
 void setExceptionEvent(EventExceptionListener e)
           
 void stopRunning()
          Stops the EventLoop once control returns from processing the current EventProcessor.
 
Methods inherited from class ariba.util.core.EventQueue
addEvent, getNextEvent, getNextEventIfAny, queueLength
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ClassName

public static final java.lang.String ClassName
See Also:
Constant Field Values
Constructor Detail

EventLoop

public EventLoop()
Create a new EventLoop using a new LinkedTimerQueue.


EventLoop

public EventLoop(TimerQueue queue)
Create a new EventLoop using the specified TimerQueue.

Parameters:
queue - The TimerQueue to use.
Method Detail

setExceptionEvent

public void setExceptionEvent(EventExceptionListener e)

run

public void run()
Runnable interface method implemented to process Events as they appear in the queue.

Specified by:
run in interface java.lang.Runnable

stopRunning

public void stopRunning()
Stops the EventLoop once control returns from processing the current EventProcessor.



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.