public class WaterMark extends AbstractPolicy
longRunning, shortRunning
Constructor and Description |
---|
WaterMark()
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getWatermark()
Get the water mark value
|
void |
setWatermark(int value)
Set the water mark value
|
boolean |
shouldDistribute(DistributedWorkManager dwm,
javax.resource.spi.work.DistributableWork work)
Should a distribution of the work happen
|
getShouldDistribute
deltaDoWorkAccepted, deltaDoWorkRejected, deltaScheduleWorkAccepted, deltaScheduleWorkRejected, deltaStartWorkAccepted, deltaStartWorkRejected, deltaWorkFailed, deltaWorkSuccessful, join, leave, updateLongRunningFree, updateShortRunningFree
public boolean shouldDistribute(DistributedWorkManager dwm, javax.resource.spi.work.DistributableWork work)
shouldDistribute
in interface Policy
shouldDistribute
in class AbstractPolicy
dwm
- The invoking distributed work managerwork
- The work instancepublic int getWatermark()
public void setWatermark(int value)
value
- The valueCopyright © 2013 IronJacamar (http://www.ironjacamar.org)