Class ExternalResource
- java.lang.Object
-
- org.apache.flink.api.common.resources.Resource<ExternalResource>
-
- org.apache.flink.api.common.resources.ExternalResource
-
- All Implemented Interfaces:
Serializable
,Comparable<Resource>
@Internal public class ExternalResource extends Resource<ExternalResource>
An external resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExternalResource(String name, double value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExternalResource
create(BigDecimal value)
Create a new instance of the sub resource.
-
-
-
Constructor Detail
-
ExternalResource
public ExternalResource(String name, double value)
-
-
Method Detail
-
create
protected ExternalResource create(BigDecimal value)
Description copied from class:Resource
Create a new instance of the sub resource.- Specified by:
create
in classResource<ExternalResource>
- Parameters:
value
- The value of the resource- Returns:
- A new instance of the sub resource
-
-