Package javax.events
Class Events

Public Method clearPendingFireCount

boolean clearPendingFireCount(AsyncEvent event)

static void clearPendingFireCount(int eventId)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

clearPendingFireCount(AsyncEvent event) method:

Parameter Description
event async event for which fire counter should be cleared

There is a counter associated with each event. It's possible that the counter is incremented faster than the corresponding event handler can process requests. This method will clear the fire counter for the specified event.

Returns Range Description
cleared true ... false whether a pending event is cleared or not

clearPendingFireCount(int eventId) method:

Parameter Description
eventId eventId for which fire counter should be cleared

This method will clear the fire counter for the event specified by its ID. If ALL_EVENTS is specified then all fire counters are cleared.

Example

   private Events events = new Events();
   ...
      this.events.clearPendingFireCount(event);

This example creates a new events instance and clears the pending event.

Note