Top Description Constructors Methods
org.glassfish.pfl.tf.timer.spi

public Class TimerEventController

extends TimerEventControllerBase
Class Inheritance

Creates timer events and sends them to all registered event handlers. Multiple controllers may be created from the same TimerFactory.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
enter(Timer timer)

Generate a TimerEvent representing the entry to a particular timer.

public void
exit(Timer timer)

Generate a TimerEvent representing the exit from a particular timer.

private void
Inherited from org.glassfish.pfl.tf.timer.spi.TimerEventControllerBase:
deregisterhandlerspropagateregister

Constructor Detail

TimerEventControllerback to summary
public TimerEventController(TimerFactory factory, String name)

Method Detail

enterback to summary
public void enter(Timer timer)

Generate a TimerEvent representing the entry to a particular timer. This event is sent to all registered TimerEventHandlers. An event is only generated in case timer.isActivated() is true.

exitback to summary
public void exit(Timer timer)

Generate a TimerEvent representing the exit from a particular timer. This event is sent to all registered TimerEventHandlers. An event is only generated in case timer.isActivated() is true.

handleback to summary
private void handle(Timer timer, TimerEvent.TimerEventType type)