387/461

## glassfish:kernel:connection-queue:onTaskQueuedEvent

on task queued event

Synopsis

    glassfish:kernel:connection-queue:onTaskQueuedEvent(
    java.lang.String listenerName,
    int taskId)

Description

This event is called when a new task is added to a task queue.

Use this event to count the total number of queued tasks.

Parameters

`listenerName`

  The name of the network listener associated with the task queue.

`taskId`

  The ID of the newly queued task.