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 TypeMethodDescriptionReturns 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:
-
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:
-