org.jboss.jca.core.workmanager.notification

## Class AbstractNotificationListener

- java.lang.Object
- - org.jboss.jca.core.workmanager.notification.AbstractNotificationListener

- All Implemented Interfaces:
    org.jboss.jca.core.spi.workmanager.notification.NotificationListener
  Direct Known Subclasses:
    AbstractPolicy, AbstractSelector

      public abstract class AbstractNotificationListener
      extends java.lang.Object
      implements org.jboss.jca.core.spi.workmanager.notification.NotificationListener

  An abstract notification listener
  Author:
    Jesper Pedersen

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected java.util.Map<java.lang.String,java.util.Map<org.jboss.jca.core.spi.workmanager.Address,java.lang.Long>>` | `longRunning` Long running
    `protected java.util.Map<java.lang.String,java.util.Map<org.jboss.jca.core.spi.workmanager.Address,java.lang.Long>>` | `shortRunning` Short running

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractNotificationListener()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `deltaDoWorkAccepted()` Delta doWork accepted
    `void` | `deltaDoWorkRejected()` Delta doWork rejected
    `void` | `deltaScheduleWorkAccepted()` Delta scheduleWork accepted
    `void` | `deltaScheduleWorkRejected()` Delta scheduleWork rejected
    `void` | `deltaStartWorkAccepted()` Delta startWork accepted
    `void` | `deltaStartWorkRejected()` Delta startWork rejected
    `void` | `deltaWorkFailed()` Delta work failed
    `void` | `deltaWorkSuccessful()` Delta work successful
    `void` | `join(org.jboss.jca.core.spi.workmanager.Address address)` A distributed work manager joined
    `void` | `leave(org.jboss.jca.core.spi.workmanager.Address address)` A distributed work manager left
    `void` | `updateLongRunningFree(org.jboss.jca.core.spi.workmanager.Address address, long free)` Update the long thread pool information for a distributed work manager
    `void` | `updateShortRunningFree(org.jboss.jca.core.spi.workmanager.Address address, long free)` Update the short thread pool information for a distributed work manager

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### shortRunning

          protected java.util.Map<java.lang.String,java.util.Map<org.jboss.jca.core.spi.workmanager.Address,java.lang.Long>> shortRunning

      Short running

    - #### longRunning

          protected java.util.Map<java.lang.String,java.util.Map<org.jboss.jca.core.spi.workmanager.Address,java.lang.Long>> longRunning

      Long running

  - ### Constructor Detail

    - #### AbstractNotificationListener

          public AbstractNotificationListener()

      Constructor

  - ### Method Detail

    - #### join

          public void join(org.jboss.jca.core.spi.workmanager.Address address)

      A distributed work manager joined
      Specified by:
        `join` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`
      Parameters:
        `address` - The address

    - #### leave

          public void leave(org.jboss.jca.core.spi.workmanager.Address address)

      A distributed work manager left
      Specified by:
        `leave` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`
      Parameters:
        `address` - The address

    - #### updateShortRunningFree

          public void updateShortRunningFree(org.jboss.jca.core.spi.workmanager.Address address,
                                             long free)

      Update the short thread pool information for a distributed work manager
      Specified by:
        `updateShortRunningFree` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`
      Parameters:
        `address` - The address
        `free` - The number of free threads

    - #### updateLongRunningFree

          public void updateLongRunningFree(org.jboss.jca.core.spi.workmanager.Address address,
                                            long free)

      Update the long thread pool information for a distributed work manager
      Specified by:
        `updateLongRunningFree` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`
      Parameters:
        `address` - The address
        `free` - The number of free threads

    - #### deltaDoWorkAccepted

          public void deltaDoWorkAccepted()

      Delta doWork accepted
      Specified by:
        `deltaDoWorkAccepted` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`

    - #### deltaDoWorkRejected

          public void deltaDoWorkRejected()

      Delta doWork rejected
      Specified by:
        `deltaDoWorkRejected` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`

    - #### deltaStartWorkAccepted

          public void deltaStartWorkAccepted()

      Delta startWork accepted
      Specified by:
        `deltaStartWorkAccepted` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`

    - #### deltaStartWorkRejected

          public void deltaStartWorkRejected()

      Delta startWork rejected
      Specified by:
        `deltaStartWorkRejected` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`

    - #### deltaScheduleWorkAccepted

          public void deltaScheduleWorkAccepted()

      Delta scheduleWork accepted
      Specified by:
        `deltaScheduleWorkAccepted` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`

    - #### deltaScheduleWorkRejected

          public void deltaScheduleWorkRejected()

      Delta scheduleWork rejected
      Specified by:
        `deltaScheduleWorkRejected` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`

    - #### deltaWorkSuccessful

          public void deltaWorkSuccessful()

      Delta work successful
      Specified by:
        `deltaWorkSuccessful` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`

    - #### deltaWorkFailed

          public void deltaWorkFailed()

      Delta work failed
      Specified by:
        `deltaWorkFailed` in interface `org.jboss.jca.core.spi.workmanager.notification.NotificationListener`

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)