public interface VersionedProtocol
| Modifier and Type | Method | Description |
|---|---|---|
ProtocolSignature |
getProtocolSignature(java.lang.String protocol,
long clientVersion,
int clientMethodsHash) |
Return protocol version corresponding to protocol interface.
|
long |
getProtocolVersion(java.lang.String protocol,
long clientVersion) |
Return protocol version corresponding to protocol interface.
|
long getProtocolVersion(java.lang.String protocol,
long clientVersion)
throws java.io.IOException
protocol - The classname of the protocol interfaceclientVersion - The version of the protocol that the client speaksjava.io.IOException - if any IO error occursProtocolSignature getProtocolSignature(java.lang.String protocol, long clientVersion, int clientMethodsHash) throws java.io.IOException
protocol - The classname of the protocol interfaceclientVersion - The version of the protocol that the client speaksclientMethodsHash - the hashcode of client protocol methodsjava.io.IOException - raised on errors performing I/O.for a default implementationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.