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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Version
getWanProtocolVersion()
Returns the WAN protocol version.void
setWanProtocolVersion(Version version)
Sets the WAN protocol version.
-
-
-
Method Detail
-
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
void setWanProtocolVersion(Version version)
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)
-
-