Class TransportProtocolVersionNegotiator
java.lang.Object
org.apache.nifi.remote.StandardVersionNegotiator
org.apache.nifi.remote.client.http.TransportProtocolVersionNegotiator
- All Implemented Interfaces:
VersionNegotiator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns a transaction protocol version for this transport protocol version.Methods inherited from class org.apache.nifi.remote.StandardVersionNegotiator
getPreferredVersion, getPreferredVersion, getSupportedVersions, getVersion, isVersionSupported, setVersion
-
Constructor Details
-
TransportProtocolVersionNegotiator
public TransportProtocolVersionNegotiator(int... supportedVersions)
-
-
Method Details
-
getTransactionProtocolVersion
public int getTransactionProtocolVersion()Returns a transaction protocol version for this transport protocol version. This method lets transport protocol to move forward independently from transaction protocol.- Returns:
- a transaction protocol version
-