org.jboss.jca.core.spi.workmanager.policy

## Interface Policy

-     public interface Policy

  The policy interface defines how the distributed work manager to decide to distribute the work instance to another node. The work instance may contain a DistributableWorkContext which may provide additional information

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `shouldDistribute(DistributedWorkManager dwm, javax.resource.spi.work.DistributableWork work)` Should a distribution of the work happen

- - ### Method Detail

    - #### shouldDistribute

          boolean shouldDistribute(DistributedWorkManager dwm,
                                   javax.resource.spi.work.DistributableWork work)

      Should a distribution of the work happen
      Parameters:
        `dwm` - The invoking distributed work manager
        `work` - The work instance
      Returns:
        True, if the work should be distributed; otherwise false

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