K - key typeV - value typepublic interface VersionAwareConstructorFunction<K,V> extends ConstructorFunction<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
createNew(K arg,
Version clusterVersion,
Version wanProtocolVersion)
Creates a new instance of an object given the construction argument and
the version of the object.
|
createNewV createNew(K arg, Version clusterVersion, Version wanProtocolVersion)
clusterVersion or the wanProtocolVersion paraarg - construction argumentclusterVersion - version of the object it should create - it's cluster version bound, since
objects change between release only. May be Version.UNKNOWN if the
WAN protocol version is set or cluster version is not availablewanProtocolVersion - WAN protocol version. May be Version.UNKNOWN if the
cluster version is set or WAN protocol version is not availableCopyright © 2019 Hazelcast, Inc.. All rights reserved.