public interface VersionNegotiator
| Modifier and Type | Method and Description |
|---|---|
int |
getPreferredVersion() |
Integer |
getPreferredVersion(int maxVersion)
Gets the preferred version of this resource that is no greater than the given maxVersion.
|
List<Integer> |
getSupportedVersions() |
int |
getVersion() |
boolean |
isVersionSupported(int version)
Indicates whether or not the specified version is supported by this resource
|
void |
setVersion(int version)
Sets the version of this resource to the specified version.
|
int getVersion()
void setVersion(int version)
throws IllegalArgumentException
version - the version to setIllegalArgumentException - if the given Version is not supported by this resource, as is indicated by the isVersionSupported(int) methodint getPreferredVersion()
Integer getPreferredVersion(int maxVersion)
maxVersion, then null is
returnedmaxVersion - the maximum version desiredboolean isVersionSupported(int version)
version - the version to testCopyright © 2019 Apache NiFi Project. All rights reserved.