PlacementConstraint.Visitablepublic static class PlacementConstraint.TimedPlacementConstraint extends java.lang.Object implements PlacementConstraint.Visitable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
PlacementConstraint.TimedPlacementConstraint.DelayUnit |
The unit of scheduling delay.
|
| Constructor | Description |
|---|---|
TimedPlacementConstraint(PlacementConstraint.AbstractConstraint constraint) |
|
TimedPlacementConstraint(PlacementConstraint.AbstractConstraint constraint,
long schedulingDelay) |
|
TimedPlacementConstraint(PlacementConstraint.AbstractConstraint constraint,
long schedulingDelay,
PlacementConstraint.TimedPlacementConstraint.DelayUnit delayUnit) |
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
accept(PlacementConstraint.Visitor<T> visitor) |
Visitor pattern.
|
boolean |
equals(java.lang.Object o) |
|
PlacementConstraint.AbstractConstraint |
getConstraint() |
Get the constraint that has to be satisfied within the time window.
|
PlacementConstraint.TimedPlacementConstraint.DelayUnit |
getDelayUnit() |
The unit of the scheduling delay.
|
long |
getSchedulingDelay() |
Get the scheduling delay value that determines the time window within
which the constraint has to be satisfied.
|
int |
hashCode() |
|
void |
setConstraint(PlacementConstraint.AbstractConstraint constraint) |
Sets the constraint that has to be satisfied within the time window.
|
public TimedPlacementConstraint(PlacementConstraint.AbstractConstraint constraint, long schedulingDelay, PlacementConstraint.TimedPlacementConstraint.DelayUnit delayUnit)
public TimedPlacementConstraint(PlacementConstraint.AbstractConstraint constraint, long schedulingDelay)
public TimedPlacementConstraint(PlacementConstraint.AbstractConstraint constraint)
public PlacementConstraint.AbstractConstraint getConstraint()
public void setConstraint(PlacementConstraint.AbstractConstraint constraint)
constraint - the constraint to be satisfiedpublic long getSchedulingDelay()
public PlacementConstraint.TimedPlacementConstraint.DelayUnit getDelayUnit()
public <T> T accept(PlacementConstraint.Visitor<T> visitor)
PlacementConstraint.Visitableaccept in interface PlacementConstraint.VisitableT - defines the type that the visitor will use and the return type
of the accept.visitor - visitor to be usedpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.