Package com.hazelcast.nio
Interface WanProtocolVersionAware
- All Known Subinterfaces:
ObjectDataInput
,ObjectDataOutput
public interface WanProtocolVersionAware
An instance which is used in WAN and supports versioning. The version
indicates the version of the WAN protocol.
-
Method Summary
Modifier and Type Method Description Version
getWanProtocolVersion()
Returns the WAN protocol version.void
setWanProtocolVersion(Version version)
Sets the WAN protocol version.
-
Method Details
-
getWanProtocolVersion
Version getWanProtocolVersion()Returns the WAN protocol version. This method is similar toVersionAware.getVersion()
but is used in WAN replication, not in message exchange inside a single cluster.- Returns:
- the WAN protocol version or
Version.UNKNOWN
if not set - See Also:
VersionAware.getVersion()
-
setWanProtocolVersion
Sets the WAN protocol version. This method is similar toVersionAware.setVersion(Version)
but is used in WAN replication, not in message exchange inside a single cluster.- Parameters:
version
- the WAN protocol version- See Also:
VersionAware.setVersion(Version)
-