@celerispay/hazelcast-client 3.12.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (746) hide show
  1. package/.nvmrc +1 -0
  2. package/CHANGELOG.md +116 -0
  3. package/CONFIG.md +503 -0
  4. package/FAILOVER_FIXES.md +284 -0
  5. package/LICENSE +202 -0
  6. package/QUICK_START.md +143 -0
  7. package/README.md +178 -0
  8. package/RELEASE_SUMMARY.md +180 -0
  9. package/config-schema.json +343 -0
  10. package/hazelcast-client-default.json +56 -0
  11. package/hazelcast-client-full.json +137 -0
  12. package/lib/Address.d.ts +17 -0
  13. package/lib/Address.js +65 -0
  14. package/lib/BitsUtil.d.ts +69 -0
  15. package/lib/BitsUtil.js +202 -0
  16. package/lib/BuildInfo.d.ts +9 -0
  17. package/lib/BuildInfo.js +53 -0
  18. package/lib/ClientInfo.d.ts +15 -0
  19. package/lib/ClientInfo.js +27 -0
  20. package/lib/ClientMessage.d.ts +52 -0
  21. package/lib/ClientMessage.js +217 -0
  22. package/lib/ClusterDataFactory.d.ts +4 -0
  23. package/lib/ClusterDataFactory.js +31 -0
  24. package/lib/ClusterDataFactoryHelper.d.ts +5 -0
  25. package/lib/ClusterDataFactoryHelper.js +26 -0
  26. package/lib/DataStoreHashMap.d.ts +20 -0
  27. package/lib/DataStoreHashMap.js +112 -0
  28. package/lib/DistributedObject.d.ts +22 -0
  29. package/lib/DistributedObject.js +17 -0
  30. package/lib/HazelcastClient.d.ts +201 -0
  31. package/lib/HazelcastClient.js +370 -0
  32. package/lib/HazelcastError.d.ts +114 -0
  33. package/lib/HazelcastError.js +389 -0
  34. package/lib/HeartbeatService.d.ts +30 -0
  35. package/lib/HeartbeatService.js +108 -0
  36. package/lib/LifecycleService.d.ts +32 -0
  37. package/lib/LifecycleService.js +105 -0
  38. package/lib/ListenerMessageCodec.d.ts +6 -0
  39. package/lib/ListenerMessageCodec.js +17 -0
  40. package/lib/ListenerService.d.ts +35 -0
  41. package/lib/ListenerService.js +233 -0
  42. package/lib/LockReferenceIdGenerator.d.ts +6 -0
  43. package/lib/LockReferenceIdGenerator.js +29 -0
  44. package/lib/PartitionService.d.ts +38 -0
  45. package/lib/PartitionService.js +118 -0
  46. package/lib/Util.d.ts +47 -0
  47. package/lib/Util.js +351 -0
  48. package/lib/aggregation/Aggregator.d.ts +74 -0
  49. package/lib/aggregation/Aggregator.js +277 -0
  50. package/lib/aggregation/AggregatorFactory.d.ts +26 -0
  51. package/lib/aggregation/AggregatorFactory.js +66 -0
  52. package/lib/aggregation/Aggregators.d.ts +96 -0
  53. package/lib/aggregation/Aggregators.js +149 -0
  54. package/lib/codec/AddressCodec.d.ts +6 -0
  55. package/lib/codec/AddressCodec.js +33 -0
  56. package/lib/codec/AtomicLongAddAndGetCodec.d.ts +7 -0
  57. package/lib/codec/AtomicLongAddAndGetCodec.js +56 -0
  58. package/lib/codec/AtomicLongCompareAndSetCodec.d.ts +7 -0
  59. package/lib/codec/AtomicLongCompareAndSetCodec.js +58 -0
  60. package/lib/codec/AtomicLongDecrementAndGetCodec.d.ts +7 -0
  61. package/lib/codec/AtomicLongDecrementAndGetCodec.js +54 -0
  62. package/lib/codec/AtomicLongGetAndAddCodec.d.ts +7 -0
  63. package/lib/codec/AtomicLongGetAndAddCodec.js +56 -0
  64. package/lib/codec/AtomicLongGetAndIncrementCodec.d.ts +7 -0
  65. package/lib/codec/AtomicLongGetAndIncrementCodec.js +54 -0
  66. package/lib/codec/AtomicLongGetAndSetCodec.d.ts +7 -0
  67. package/lib/codec/AtomicLongGetAndSetCodec.js +56 -0
  68. package/lib/codec/AtomicLongGetCodec.d.ts +7 -0
  69. package/lib/codec/AtomicLongGetCodec.js +54 -0
  70. package/lib/codec/AtomicLongIncrementAndGetCodec.d.ts +7 -0
  71. package/lib/codec/AtomicLongIncrementAndGetCodec.js +54 -0
  72. package/lib/codec/AtomicLongMessageType.d.ts +15 -0
  73. package/lib/codec/AtomicLongMessageType.js +37 -0
  74. package/lib/codec/AtomicLongSetCodec.d.ts +5 -0
  75. package/lib/codec/AtomicLongSetCodec.js +47 -0
  76. package/lib/codec/ClientAddDistributedObjectListenerCodec.d.ts +8 -0
  77. package/lib/codec/ClientAddDistributedObjectListenerCodec.js +74 -0
  78. package/lib/codec/ClientAddMembershipListenerCodec.d.ts +8 -0
  79. package/lib/codec/ClientAddMembershipListenerCodec.js +107 -0
  80. package/lib/codec/ClientAuthenticationCodec.d.ts +7 -0
  81. package/lib/codec/ClientAuthenticationCodec.js +114 -0
  82. package/lib/codec/ClientAuthenticationCustomCodec.d.ts +7 -0
  83. package/lib/codec/ClientAuthenticationCustomCodec.js +112 -0
  84. package/lib/codec/ClientCreateProxyCodec.d.ts +6 -0
  85. package/lib/codec/ClientCreateProxyCodec.js +50 -0
  86. package/lib/codec/ClientDestroyProxyCodec.d.ts +5 -0
  87. package/lib/codec/ClientDestroyProxyCodec.js +47 -0
  88. package/lib/codec/ClientGetDistributedObjectsCodec.d.ts +7 -0
  89. package/lib/codec/ClientGetDistributedObjectsCodec.js +59 -0
  90. package/lib/codec/ClientMessageType.d.ts +18 -0
  91. package/lib/codec/ClientMessageType.js +40 -0
  92. package/lib/codec/ClientPingCodec.d.ts +5 -0
  93. package/lib/codec/ClientPingCodec.js +42 -0
  94. package/lib/codec/ClientRemoveDistributedObjectListenerCodec.d.ts +7 -0
  95. package/lib/codec/ClientRemoveDistributedObjectListenerCodec.js +54 -0
  96. package/lib/codec/ClientStatisticsCodec.d.ts +5 -0
  97. package/lib/codec/ClientStatisticsCodec.js +42 -0
  98. package/lib/codec/DistributedObjectInfoCodec.d.ts +5 -0
  99. package/lib/codec/DistributedObjectInfoCodec.js +27 -0
  100. package/lib/codec/EntryViewCodec.d.ts +7 -0
  101. package/lib/codec/EntryViewCodec.js +56 -0
  102. package/lib/codec/FlakeIdGeneratorMessageType.d.ts +3 -0
  103. package/lib/codec/FlakeIdGeneratorMessageType.js +25 -0
  104. package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.d.ts +7 -0
  105. package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.js +60 -0
  106. package/lib/codec/GetPartitionsCodec.d.ts +9 -0
  107. package/lib/codec/GetPartitionsCodec.js +45 -0
  108. package/lib/codec/ListAddAllCodec.d.ts +7 -0
  109. package/lib/codec/ListAddAllCodec.js +62 -0
  110. package/lib/codec/ListAddAllWithIndexCodec.d.ts +7 -0
  111. package/lib/codec/ListAddAllWithIndexCodec.js +64 -0
  112. package/lib/codec/ListAddCodec.d.ts +7 -0
  113. package/lib/codec/ListAddCodec.js +56 -0
  114. package/lib/codec/ListAddListenerCodec.d.ts +8 -0
  115. package/lib/codec/ListAddListenerCodec.js +80 -0
  116. package/lib/codec/ListAddWithIndexCodec.d.ts +6 -0
  117. package/lib/codec/ListAddWithIndexCodec.js +49 -0
  118. package/lib/codec/ListClearCodec.d.ts +5 -0
  119. package/lib/codec/ListClearCodec.js +45 -0
  120. package/lib/codec/ListCompareAndRemoveAllCodec.d.ts +7 -0
  121. package/lib/codec/ListCompareAndRemoveAllCodec.js +62 -0
  122. package/lib/codec/ListCompareAndRetainAllCodec.d.ts +7 -0
  123. package/lib/codec/ListCompareAndRetainAllCodec.js +62 -0
  124. package/lib/codec/ListContainsAllCodec.d.ts +7 -0
  125. package/lib/codec/ListContainsAllCodec.js +62 -0
  126. package/lib/codec/ListContainsCodec.d.ts +7 -0
  127. package/lib/codec/ListContainsCodec.js +56 -0
  128. package/lib/codec/ListGetAllCodec.d.ts +7 -0
  129. package/lib/codec/ListGetAllCodec.js +61 -0
  130. package/lib/codec/ListGetCodec.d.ts +7 -0
  131. package/lib/codec/ListGetCodec.js +58 -0
  132. package/lib/codec/ListIndexOfCodec.d.ts +7 -0
  133. package/lib/codec/ListIndexOfCodec.js +56 -0
  134. package/lib/codec/ListIsEmptyCodec.d.ts +7 -0
  135. package/lib/codec/ListIsEmptyCodec.js +54 -0
  136. package/lib/codec/ListLastIndexOfCodec.d.ts +7 -0
  137. package/lib/codec/ListLastIndexOfCodec.js +56 -0
  138. package/lib/codec/ListMessageType.d.ts +25 -0
  139. package/lib/codec/ListMessageType.js +47 -0
  140. package/lib/codec/ListRemoveCodec.d.ts +7 -0
  141. package/lib/codec/ListRemoveCodec.js +56 -0
  142. package/lib/codec/ListRemoveListenerCodec.d.ts +7 -0
  143. package/lib/codec/ListRemoveListenerCodec.js +56 -0
  144. package/lib/codec/ListRemoveWithIndexCodec.d.ts +7 -0
  145. package/lib/codec/ListRemoveWithIndexCodec.js +58 -0
  146. package/lib/codec/ListSetCodec.d.ts +7 -0
  147. package/lib/codec/ListSetCodec.js +60 -0
  148. package/lib/codec/ListSizeCodec.d.ts +7 -0
  149. package/lib/codec/ListSizeCodec.js +54 -0
  150. package/lib/codec/ListSubCodec.d.ts +7 -0
  151. package/lib/codec/ListSubCodec.js +65 -0
  152. package/lib/codec/LockForceUnlockCodec.d.ts +5 -0
  153. package/lib/codec/LockForceUnlockCodec.js +47 -0
  154. package/lib/codec/LockGetLockCountCodec.d.ts +7 -0
  155. package/lib/codec/LockGetLockCountCodec.js +54 -0
  156. package/lib/codec/LockGetRemainingLeaseTimeCodec.d.ts +7 -0
  157. package/lib/codec/LockGetRemainingLeaseTimeCodec.js +54 -0
  158. package/lib/codec/LockIsLockedByCurrentThreadCodec.d.ts +7 -0
  159. package/lib/codec/LockIsLockedByCurrentThreadCodec.js +56 -0
  160. package/lib/codec/LockIsLockedCodec.d.ts +7 -0
  161. package/lib/codec/LockIsLockedCodec.js +54 -0
  162. package/lib/codec/LockLockCodec.d.ts +5 -0
  163. package/lib/codec/LockLockCodec.js +51 -0
  164. package/lib/codec/LockMessageType.d.ts +10 -0
  165. package/lib/codec/LockMessageType.js +32 -0
  166. package/lib/codec/LockTryLockCodec.d.ts +7 -0
  167. package/lib/codec/LockTryLockCodec.js +62 -0
  168. package/lib/codec/LockUnlockCodec.d.ts +5 -0
  169. package/lib/codec/LockUnlockCodec.js +49 -0
  170. package/lib/codec/MapAddEntryListenerCodec.d.ts +8 -0
  171. package/lib/codec/MapAddEntryListenerCodec.js +104 -0
  172. package/lib/codec/MapAddEntryListenerToKeyCodec.d.ts +8 -0
  173. package/lib/codec/MapAddEntryListenerToKeyCodec.js +106 -0
  174. package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
  175. package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.js +108 -0
  176. package/lib/codec/MapAddEntryListenerWithPredicateCodec.d.ts +8 -0
  177. package/lib/codec/MapAddEntryListenerWithPredicateCodec.js +106 -0
  178. package/lib/codec/MapAddIndexCodec.d.ts +5 -0
  179. package/lib/codec/MapAddIndexCodec.js +49 -0
  180. package/lib/codec/MapAddNearCacheEntryListenerCodec.d.ts +8 -0
  181. package/lib/codec/MapAddNearCacheEntryListenerCodec.js +135 -0
  182. package/lib/codec/MapAddNearCacheInvalidationListenerCodec.d.ts +8 -0
  183. package/lib/codec/MapAddNearCacheInvalidationListenerCodec.js +138 -0
  184. package/lib/codec/MapAggregateCodec.d.ts +7 -0
  185. package/lib/codec/MapAggregateCodec.js +61 -0
  186. package/lib/codec/MapAggregateWithPredicateCodec.d.ts +7 -0
  187. package/lib/codec/MapAggregateWithPredicateCodec.js +63 -0
  188. package/lib/codec/MapClearCodec.d.ts +5 -0
  189. package/lib/codec/MapClearCodec.js +45 -0
  190. package/lib/codec/MapContainsKeyCodec.d.ts +7 -0
  191. package/lib/codec/MapContainsKeyCodec.js +58 -0
  192. package/lib/codec/MapContainsValueCodec.d.ts +7 -0
  193. package/lib/codec/MapContainsValueCodec.js +56 -0
  194. package/lib/codec/MapDeleteCodec.d.ts +6 -0
  195. package/lib/codec/MapDeleteCodec.js +49 -0
  196. package/lib/codec/MapEntriesWithPredicateCodec.d.ts +7 -0
  197. package/lib/codec/MapEntriesWithPredicateCodec.js +67 -0
  198. package/lib/codec/MapEntrySetCodec.d.ts +7 -0
  199. package/lib/codec/MapEntrySetCodec.js +65 -0
  200. package/lib/codec/MapEvictAllCodec.d.ts +5 -0
  201. package/lib/codec/MapEvictAllCodec.js +45 -0
  202. package/lib/codec/MapEvictCodec.d.ts +7 -0
  203. package/lib/codec/MapEvictCodec.js +58 -0
  204. package/lib/codec/MapExecuteOnAllKeysCodec.d.ts +7 -0
  205. package/lib/codec/MapExecuteOnAllKeysCodec.js +67 -0
  206. package/lib/codec/MapExecuteOnKeyCodec.d.ts +7 -0
  207. package/lib/codec/MapExecuteOnKeyCodec.js +62 -0
  208. package/lib/codec/MapExecuteOnKeysCodec.d.ts +7 -0
  209. package/lib/codec/MapExecuteOnKeysCodec.js +75 -0
  210. package/lib/codec/MapExecuteWithPredicateCodec.d.ts +7 -0
  211. package/lib/codec/MapExecuteWithPredicateCodec.js +69 -0
  212. package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.d.ts +8 -0
  213. package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.js +101 -0
  214. package/lib/codec/MapFlushCodec.d.ts +5 -0
  215. package/lib/codec/MapFlushCodec.js +45 -0
  216. package/lib/codec/MapForceUnlockCodec.d.ts +6 -0
  217. package/lib/codec/MapForceUnlockCodec.js +49 -0
  218. package/lib/codec/MapGetAllCodec.d.ts +7 -0
  219. package/lib/codec/MapGetAllCodec.js +73 -0
  220. package/lib/codec/MapGetCodec.d.ts +7 -0
  221. package/lib/codec/MapGetCodec.js +60 -0
  222. package/lib/codec/MapGetEntryViewCodec.d.ts +7 -0
  223. package/lib/codec/MapGetEntryViewCodec.js +61 -0
  224. package/lib/codec/MapIsEmptyCodec.d.ts +7 -0
  225. package/lib/codec/MapIsEmptyCodec.js +54 -0
  226. package/lib/codec/MapIsLockedCodec.d.ts +7 -0
  227. package/lib/codec/MapIsLockedCodec.js +56 -0
  228. package/lib/codec/MapKeySetCodec.d.ts +7 -0
  229. package/lib/codec/MapKeySetCodec.js +61 -0
  230. package/lib/codec/MapKeySetWithPagingPredicateCodec.d.ts +7 -0
  231. package/lib/codec/MapKeySetWithPagingPredicateCodec.js +63 -0
  232. package/lib/codec/MapKeySetWithPredicateCodec.d.ts +7 -0
  233. package/lib/codec/MapKeySetWithPredicateCodec.js +63 -0
  234. package/lib/codec/MapLoadAllCodec.d.ts +5 -0
  235. package/lib/codec/MapLoadAllCodec.js +47 -0
  236. package/lib/codec/MapLoadGivenKeysCodec.d.ts +5 -0
  237. package/lib/codec/MapLoadGivenKeysCodec.js +55 -0
  238. package/lib/codec/MapLockCodec.d.ts +6 -0
  239. package/lib/codec/MapLockCodec.js +53 -0
  240. package/lib/codec/MapMessageType.d.ts +71 -0
  241. package/lib/codec/MapMessageType.js +93 -0
  242. package/lib/codec/MapPutAllCodec.d.ts +5 -0
  243. package/lib/codec/MapPutAllCodec.js +59 -0
  244. package/lib/codec/MapPutCodec.d.ts +7 -0
  245. package/lib/codec/MapPutCodec.js +64 -0
  246. package/lib/codec/MapPutIfAbsentCodec.d.ts +7 -0
  247. package/lib/codec/MapPutIfAbsentCodec.js +64 -0
  248. package/lib/codec/MapPutTransientCodec.d.ts +6 -0
  249. package/lib/codec/MapPutTransientCodec.js +53 -0
  250. package/lib/codec/MapRemoveCodec.d.ts +7 -0
  251. package/lib/codec/MapRemoveCodec.js +60 -0
  252. package/lib/codec/MapRemoveEntryListenerCodec.d.ts +7 -0
  253. package/lib/codec/MapRemoveEntryListenerCodec.js +56 -0
  254. package/lib/codec/MapRemoveIfSameCodec.d.ts +7 -0
  255. package/lib/codec/MapRemoveIfSameCodec.js +60 -0
  256. package/lib/codec/MapReplaceCodec.d.ts +7 -0
  257. package/lib/codec/MapReplaceCodec.js +62 -0
  258. package/lib/codec/MapReplaceIfSameCodec.d.ts +7 -0
  259. package/lib/codec/MapReplaceIfSameCodec.js +62 -0
  260. package/lib/codec/MapSetCodec.d.ts +6 -0
  261. package/lib/codec/MapSetCodec.js +53 -0
  262. package/lib/codec/MapSizeCodec.d.ts +7 -0
  263. package/lib/codec/MapSizeCodec.js +54 -0
  264. package/lib/codec/MapTryLockCodec.d.ts +7 -0
  265. package/lib/codec/MapTryLockCodec.js +64 -0
  266. package/lib/codec/MapTryPutCodec.d.ts +7 -0
  267. package/lib/codec/MapTryPutCodec.js +62 -0
  268. package/lib/codec/MapTryRemoveCodec.d.ts +7 -0
  269. package/lib/codec/MapTryRemoveCodec.js +60 -0
  270. package/lib/codec/MapUnlockCodec.d.ts +6 -0
  271. package/lib/codec/MapUnlockCodec.js +51 -0
  272. package/lib/codec/MapValuesCodec.d.ts +7 -0
  273. package/lib/codec/MapValuesCodec.js +61 -0
  274. package/lib/codec/MapValuesWithPagingPredicateCodec.d.ts +7 -0
  275. package/lib/codec/MapValuesWithPagingPredicateCodec.js +67 -0
  276. package/lib/codec/MapValuesWithPredicateCodec.d.ts +7 -0
  277. package/lib/codec/MapValuesWithPredicateCodec.js +63 -0
  278. package/lib/codec/MemberCodec.d.ts +6 -0
  279. package/lib/codec/MemberCodec.js +49 -0
  280. package/lib/codec/MultiMapAddEntryListenerCodec.d.ts +8 -0
  281. package/lib/codec/MultiMapAddEntryListenerCodec.js +102 -0
  282. package/lib/codec/MultiMapAddEntryListenerToKeyCodec.d.ts +8 -0
  283. package/lib/codec/MultiMapAddEntryListenerToKeyCodec.js +104 -0
  284. package/lib/codec/MultiMapClearCodec.d.ts +5 -0
  285. package/lib/codec/MultiMapClearCodec.js +45 -0
  286. package/lib/codec/MultiMapContainsEntryCodec.d.ts +7 -0
  287. package/lib/codec/MultiMapContainsEntryCodec.js +60 -0
  288. package/lib/codec/MultiMapContainsKeyCodec.d.ts +7 -0
  289. package/lib/codec/MultiMapContainsKeyCodec.js +58 -0
  290. package/lib/codec/MultiMapContainsValueCodec.d.ts +7 -0
  291. package/lib/codec/MultiMapContainsValueCodec.js +56 -0
  292. package/lib/codec/MultiMapEntrySetCodec.d.ts +7 -0
  293. package/lib/codec/MultiMapEntrySetCodec.js +65 -0
  294. package/lib/codec/MultiMapForceUnlockCodec.d.ts +6 -0
  295. package/lib/codec/MultiMapForceUnlockCodec.js +49 -0
  296. package/lib/codec/MultiMapGetCodec.d.ts +7 -0
  297. package/lib/codec/MultiMapGetCodec.js +65 -0
  298. package/lib/codec/MultiMapIsLockedCodec.d.ts +7 -0
  299. package/lib/codec/MultiMapIsLockedCodec.js +56 -0
  300. package/lib/codec/MultiMapKeySetCodec.d.ts +7 -0
  301. package/lib/codec/MultiMapKeySetCodec.js +61 -0
  302. package/lib/codec/MultiMapLockCodec.d.ts +6 -0
  303. package/lib/codec/MultiMapLockCodec.js +53 -0
  304. package/lib/codec/MultiMapMessageType.d.ts +23 -0
  305. package/lib/codec/MultiMapMessageType.js +45 -0
  306. package/lib/codec/MultiMapPutCodec.d.ts +7 -0
  307. package/lib/codec/MultiMapPutCodec.js +60 -0
  308. package/lib/codec/MultiMapRemoveCodec.d.ts +7 -0
  309. package/lib/codec/MultiMapRemoveCodec.js +65 -0
  310. package/lib/codec/MultiMapRemoveEntryCodec.d.ts +7 -0
  311. package/lib/codec/MultiMapRemoveEntryCodec.js +60 -0
  312. package/lib/codec/MultiMapRemoveEntryListenerCodec.d.ts +7 -0
  313. package/lib/codec/MultiMapRemoveEntryListenerCodec.js +56 -0
  314. package/lib/codec/MultiMapSizeCodec.d.ts +7 -0
  315. package/lib/codec/MultiMapSizeCodec.js +54 -0
  316. package/lib/codec/MultiMapTryLockCodec.d.ts +7 -0
  317. package/lib/codec/MultiMapTryLockCodec.js +64 -0
  318. package/lib/codec/MultiMapUnlockCodec.d.ts +6 -0
  319. package/lib/codec/MultiMapUnlockCodec.js +51 -0
  320. package/lib/codec/MultiMapValueCountCodec.d.ts +7 -0
  321. package/lib/codec/MultiMapValueCountCodec.js +58 -0
  322. package/lib/codec/MultiMapValuesCodec.d.ts +7 -0
  323. package/lib/codec/MultiMapValuesCodec.js +61 -0
  324. package/lib/codec/PNCounterAddCodec.d.ts +8 -0
  325. package/lib/codec/PNCounterAddCodec.js +90 -0
  326. package/lib/codec/PNCounterGetCodec.d.ts +8 -0
  327. package/lib/codec/PNCounterGetCodec.js +86 -0
  328. package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.d.ts +7 -0
  329. package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.js +54 -0
  330. package/lib/codec/PNCounterMessageType.d.ts +5 -0
  331. package/lib/codec/PNCounterMessageType.js +27 -0
  332. package/lib/codec/QueueAddAllCodec.d.ts +7 -0
  333. package/lib/codec/QueueAddAllCodec.js +62 -0
  334. package/lib/codec/QueueAddListenerCodec.d.ts +8 -0
  335. package/lib/codec/QueueAddListenerCodec.js +80 -0
  336. package/lib/codec/QueueClearCodec.d.ts +5 -0
  337. package/lib/codec/QueueClearCodec.js +45 -0
  338. package/lib/codec/QueueCompareAndRemoveAllCodec.d.ts +7 -0
  339. package/lib/codec/QueueCompareAndRemoveAllCodec.js +62 -0
  340. package/lib/codec/QueueCompareAndRetainAllCodec.d.ts +7 -0
  341. package/lib/codec/QueueCompareAndRetainAllCodec.js +62 -0
  342. package/lib/codec/QueueContainsAllCodec.d.ts +7 -0
  343. package/lib/codec/QueueContainsAllCodec.js +62 -0
  344. package/lib/codec/QueueContainsCodec.d.ts +7 -0
  345. package/lib/codec/QueueContainsCodec.js +56 -0
  346. package/lib/codec/QueueDrainToCodec.d.ts +7 -0
  347. package/lib/codec/QueueDrainToCodec.js +61 -0
  348. package/lib/codec/QueueDrainToMaxSizeCodec.d.ts +7 -0
  349. package/lib/codec/QueueDrainToMaxSizeCodec.js +63 -0
  350. package/lib/codec/QueueIsEmptyCodec.d.ts +7 -0
  351. package/lib/codec/QueueIsEmptyCodec.js +54 -0
  352. package/lib/codec/QueueIteratorCodec.d.ts +7 -0
  353. package/lib/codec/QueueIteratorCodec.js +61 -0
  354. package/lib/codec/QueueMessageType.d.ts +22 -0
  355. package/lib/codec/QueueMessageType.js +44 -0
  356. package/lib/codec/QueueOfferCodec.d.ts +7 -0
  357. package/lib/codec/QueueOfferCodec.js +58 -0
  358. package/lib/codec/QueuePeekCodec.d.ts +7 -0
  359. package/lib/codec/QueuePeekCodec.js +56 -0
  360. package/lib/codec/QueuePollCodec.d.ts +7 -0
  361. package/lib/codec/QueuePollCodec.js +58 -0
  362. package/lib/codec/QueuePutCodec.d.ts +6 -0
  363. package/lib/codec/QueuePutCodec.js +47 -0
  364. package/lib/codec/QueueRemainingCapacityCodec.d.ts +7 -0
  365. package/lib/codec/QueueRemainingCapacityCodec.js +54 -0
  366. package/lib/codec/QueueRemoveCodec.d.ts +7 -0
  367. package/lib/codec/QueueRemoveCodec.js +56 -0
  368. package/lib/codec/QueueRemoveListenerCodec.d.ts +7 -0
  369. package/lib/codec/QueueRemoveListenerCodec.js +56 -0
  370. package/lib/codec/QueueSizeCodec.d.ts +7 -0
  371. package/lib/codec/QueueSizeCodec.js +54 -0
  372. package/lib/codec/QueueTakeCodec.d.ts +7 -0
  373. package/lib/codec/QueueTakeCodec.js +56 -0
  374. package/lib/codec/ReplicatedMapAddEntryListenerCodec.d.ts +8 -0
  375. package/lib/codec/ReplicatedMapAddEntryListenerCodec.js +100 -0
  376. package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.d.ts +8 -0
  377. package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.js +102 -0
  378. package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
  379. package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.js +104 -0
  380. package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.d.ts +8 -0
  381. package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.js +102 -0
  382. package/lib/codec/ReplicatedMapClearCodec.d.ts +5 -0
  383. package/lib/codec/ReplicatedMapClearCodec.js +45 -0
  384. package/lib/codec/ReplicatedMapContainsKeyCodec.d.ts +7 -0
  385. package/lib/codec/ReplicatedMapContainsKeyCodec.js +56 -0
  386. package/lib/codec/ReplicatedMapContainsValueCodec.d.ts +7 -0
  387. package/lib/codec/ReplicatedMapContainsValueCodec.js +56 -0
  388. package/lib/codec/ReplicatedMapEntrySetCodec.d.ts +7 -0
  389. package/lib/codec/ReplicatedMapEntrySetCodec.js +65 -0
  390. package/lib/codec/ReplicatedMapGetCodec.d.ts +7 -0
  391. package/lib/codec/ReplicatedMapGetCodec.js +58 -0
  392. package/lib/codec/ReplicatedMapIsEmptyCodec.d.ts +7 -0
  393. package/lib/codec/ReplicatedMapIsEmptyCodec.js +54 -0
  394. package/lib/codec/ReplicatedMapKeySetCodec.d.ts +7 -0
  395. package/lib/codec/ReplicatedMapKeySetCodec.js +61 -0
  396. package/lib/codec/ReplicatedMapMessageType.d.ts +20 -0
  397. package/lib/codec/ReplicatedMapMessageType.js +42 -0
  398. package/lib/codec/ReplicatedMapPutAllCodec.d.ts +5 -0
  399. package/lib/codec/ReplicatedMapPutAllCodec.js +59 -0
  400. package/lib/codec/ReplicatedMapPutCodec.d.ts +7 -0
  401. package/lib/codec/ReplicatedMapPutCodec.js +62 -0
  402. package/lib/codec/ReplicatedMapRemoveCodec.d.ts +7 -0
  403. package/lib/codec/ReplicatedMapRemoveCodec.js +58 -0
  404. package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.d.ts +7 -0
  405. package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.js +56 -0
  406. package/lib/codec/ReplicatedMapSizeCodec.d.ts +7 -0
  407. package/lib/codec/ReplicatedMapSizeCodec.js +54 -0
  408. package/lib/codec/ReplicatedMapValuesCodec.d.ts +7 -0
  409. package/lib/codec/ReplicatedMapValuesCodec.js +61 -0
  410. package/lib/codec/RingbufferAddAllCodec.d.ts +7 -0
  411. package/lib/codec/RingbufferAddAllCodec.js +64 -0
  412. package/lib/codec/RingbufferAddCodec.d.ts +7 -0
  413. package/lib/codec/RingbufferAddCodec.js +58 -0
  414. package/lib/codec/RingbufferCapacityCodec.d.ts +7 -0
  415. package/lib/codec/RingbufferCapacityCodec.js +54 -0
  416. package/lib/codec/RingbufferHeadSequenceCodec.d.ts +7 -0
  417. package/lib/codec/RingbufferHeadSequenceCodec.js +54 -0
  418. package/lib/codec/RingbufferMessageType.d.ts +11 -0
  419. package/lib/codec/RingbufferMessageType.js +33 -0
  420. package/lib/codec/RingbufferReadManyCodec.d.ts +7 -0
  421. package/lib/codec/RingbufferReadManyCodec.js +92 -0
  422. package/lib/codec/RingbufferReadOneCodec.d.ts +7 -0
  423. package/lib/codec/RingbufferReadOneCodec.js +58 -0
  424. package/lib/codec/RingbufferRemainingCapacityCodec.d.ts +7 -0
  425. package/lib/codec/RingbufferRemainingCapacityCodec.js +54 -0
  426. package/lib/codec/RingbufferSizeCodec.d.ts +7 -0
  427. package/lib/codec/RingbufferSizeCodec.js +54 -0
  428. package/lib/codec/RingbufferTailSequenceCodec.d.ts +7 -0
  429. package/lib/codec/RingbufferTailSequenceCodec.js +54 -0
  430. package/lib/codec/SemaphoreAcquireCodec.d.ts +5 -0
  431. package/lib/codec/SemaphoreAcquireCodec.js +47 -0
  432. package/lib/codec/SemaphoreAvailablePermitsCodec.d.ts +7 -0
  433. package/lib/codec/SemaphoreAvailablePermitsCodec.js +54 -0
  434. package/lib/codec/SemaphoreDrainPermitsCodec.d.ts +7 -0
  435. package/lib/codec/SemaphoreDrainPermitsCodec.js +54 -0
  436. package/lib/codec/SemaphoreInitCodec.d.ts +7 -0
  437. package/lib/codec/SemaphoreInitCodec.js +56 -0
  438. package/lib/codec/SemaphoreMessageType.d.ts +9 -0
  439. package/lib/codec/SemaphoreMessageType.js +31 -0
  440. package/lib/codec/SemaphoreReducePermitsCodec.d.ts +5 -0
  441. package/lib/codec/SemaphoreReducePermitsCodec.js +47 -0
  442. package/lib/codec/SemaphoreReleaseCodec.d.ts +5 -0
  443. package/lib/codec/SemaphoreReleaseCodec.js +47 -0
  444. package/lib/codec/SemaphoreTryAcquireCodec.d.ts +7 -0
  445. package/lib/codec/SemaphoreTryAcquireCodec.js +58 -0
  446. package/lib/codec/SetAddAllCodec.d.ts +7 -0
  447. package/lib/codec/SetAddAllCodec.js +62 -0
  448. package/lib/codec/SetAddCodec.d.ts +7 -0
  449. package/lib/codec/SetAddCodec.js +56 -0
  450. package/lib/codec/SetAddListenerCodec.d.ts +8 -0
  451. package/lib/codec/SetAddListenerCodec.js +80 -0
  452. package/lib/codec/SetClearCodec.d.ts +5 -0
  453. package/lib/codec/SetClearCodec.js +45 -0
  454. package/lib/codec/SetCompareAndRemoveAllCodec.d.ts +7 -0
  455. package/lib/codec/SetCompareAndRemoveAllCodec.js +62 -0
  456. package/lib/codec/SetCompareAndRetainAllCodec.d.ts +7 -0
  457. package/lib/codec/SetCompareAndRetainAllCodec.js +62 -0
  458. package/lib/codec/SetContainsAllCodec.d.ts +7 -0
  459. package/lib/codec/SetContainsAllCodec.js +62 -0
  460. package/lib/codec/SetContainsCodec.d.ts +7 -0
  461. package/lib/codec/SetContainsCodec.js +56 -0
  462. package/lib/codec/SetGetAllCodec.d.ts +7 -0
  463. package/lib/codec/SetGetAllCodec.js +61 -0
  464. package/lib/codec/SetIsEmptyCodec.d.ts +7 -0
  465. package/lib/codec/SetIsEmptyCodec.js +54 -0
  466. package/lib/codec/SetMessageType.d.ts +15 -0
  467. package/lib/codec/SetMessageType.js +37 -0
  468. package/lib/codec/SetRemoveCodec.d.ts +7 -0
  469. package/lib/codec/SetRemoveCodec.js +56 -0
  470. package/lib/codec/SetRemoveListenerCodec.d.ts +7 -0
  471. package/lib/codec/SetRemoveListenerCodec.js +56 -0
  472. package/lib/codec/SetSizeCodec.d.ts +7 -0
  473. package/lib/codec/SetSizeCodec.js +54 -0
  474. package/lib/codec/UUIDCodec.d.ts +5 -0
  475. package/lib/codec/UUIDCodec.js +29 -0
  476. package/lib/config/ClientCloudConfig.d.ts +13 -0
  477. package/lib/config/ClientCloudConfig.js +34 -0
  478. package/lib/config/ClientNetworkConfig.d.ts +43 -0
  479. package/lib/config/ClientNetworkConfig.js +64 -0
  480. package/lib/config/Config.d.ts +61 -0
  481. package/lib/config/Config.js +138 -0
  482. package/lib/config/ConfigBuilder.d.ts +26 -0
  483. package/lib/config/ConfigBuilder.js +322 -0
  484. package/lib/config/ConfigPatternMatcher.d.ts +12 -0
  485. package/lib/config/ConfigPatternMatcher.js +70 -0
  486. package/lib/config/EvictionPolicy.d.ts +9 -0
  487. package/lib/config/EvictionPolicy.js +27 -0
  488. package/lib/config/FlakeIdGeneratorConfig.d.ts +26 -0
  489. package/lib/config/FlakeIdGeneratorConfig.js +56 -0
  490. package/lib/config/GroupConfig.d.ts +14 -0
  491. package/lib/config/GroupConfig.js +35 -0
  492. package/lib/config/ImportConfig.d.ts +4 -0
  493. package/lib/config/ImportConfig.js +17 -0
  494. package/lib/config/InMemoryFormat.d.ts +10 -0
  495. package/lib/config/InMemoryFormat.js +28 -0
  496. package/lib/config/JsonConfigLocator.d.ts +16 -0
  497. package/lib/config/JsonConfigLocator.js +103 -0
  498. package/lib/config/JsonStringDeserializationPolicy.d.ts +17 -0
  499. package/lib/config/JsonStringDeserializationPolicy.js +35 -0
  500. package/lib/config/ListenerConfig.d.ts +8 -0
  501. package/lib/config/ListenerConfig.js +33 -0
  502. package/lib/config/NearCacheConfig.d.ts +25 -0
  503. package/lib/config/NearCacheConfig.js +59 -0
  504. package/lib/config/Properties.d.ts +5 -0
  505. package/lib/config/Properties.js +17 -0
  506. package/lib/config/ReliableTopicConfig.d.ts +8 -0
  507. package/lib/config/ReliableTopicConfig.js +38 -0
  508. package/lib/config/SSLConfig.d.ts +34 -0
  509. package/lib/config/SSLConfig.js +51 -0
  510. package/lib/config/SerializationConfig.d.ts +29 -0
  511. package/lib/config/SerializationConfig.js +38 -0
  512. package/lib/config/StringSerializationPolicy.d.ts +22 -0
  513. package/lib/config/StringSerializationPolicy.js +40 -0
  514. package/lib/connection/AddressProvider.d.ts +11 -0
  515. package/lib/connection/AddressProvider.js +17 -0
  516. package/lib/connection/AddressTranslator.d.ts +21 -0
  517. package/lib/connection/AddressTranslator.js +17 -0
  518. package/lib/connection/BasicSSLOptionsFactory.d.ts +14 -0
  519. package/lib/connection/BasicSSLOptionsFactory.js +67 -0
  520. package/lib/connection/DefaultAddressProvider.d.ts +15 -0
  521. package/lib/connection/DefaultAddressProvider.js +38 -0
  522. package/lib/connection/DefaultAddressTranslator.d.ts +11 -0
  523. package/lib/connection/DefaultAddressTranslator.js +33 -0
  524. package/lib/connection/SSLOptionsFactory.d.ts +7 -0
  525. package/lib/connection/SSLOptionsFactory.js +17 -0
  526. package/lib/core/Comparator.d.ts +21 -0
  527. package/lib/core/Comparator.js +17 -0
  528. package/lib/core/ConnectionHeartbeatListener.d.ts +16 -0
  529. package/lib/core/ConnectionHeartbeatListener.js +17 -0
  530. package/lib/core/DistributedObjectListener.d.ts +24 -0
  531. package/lib/core/DistributedObjectListener.js +30 -0
  532. package/lib/core/EntryListener.d.ts +51 -0
  533. package/lib/core/EntryListener.js +32 -0
  534. package/lib/core/EntryView.d.ts +16 -0
  535. package/lib/core/EntryView.js +23 -0
  536. package/lib/core/EventType.d.ts +12 -0
  537. package/lib/core/EventType.js +31 -0
  538. package/lib/core/HazelcastJsonValue.d.ts +32 -0
  539. package/lib/core/HazelcastJsonValue.js +56 -0
  540. package/lib/core/ItemListener.d.ts +38 -0
  541. package/lib/core/ItemListener.js +35 -0
  542. package/lib/core/MapListener.d.ts +29 -0
  543. package/lib/core/MapListener.js +29 -0
  544. package/lib/core/Member.d.ts +23 -0
  545. package/lib/core/Member.js +44 -0
  546. package/lib/core/MemberAttributeEvent.d.ts +37 -0
  547. package/lib/core/MemberAttributeEvent.js +45 -0
  548. package/lib/core/MemberSelector.d.ts +4 -0
  549. package/lib/core/MemberSelector.js +17 -0
  550. package/lib/core/MemberSelectors.d.ts +8 -0
  551. package/lib/core/MemberSelectors.js +33 -0
  552. package/lib/core/MembershipEvent.d.ts +20 -0
  553. package/lib/core/MembershipEvent.js +30 -0
  554. package/lib/core/MembershipListener.d.ts +22 -0
  555. package/lib/core/MembershipListener.js +17 -0
  556. package/lib/core/OverflowPolicy.d.ts +4 -0
  557. package/lib/core/OverflowPolicy.js +22 -0
  558. package/lib/core/Predicate.d.ts +28 -0
  559. package/lib/core/Predicate.js +113 -0
  560. package/lib/core/ReadOnlyLazyList.d.ts +12 -0
  561. package/lib/core/ReadOnlyLazyList.js +74 -0
  562. package/lib/core/RestValue.d.ts +15 -0
  563. package/lib/core/RestValue.js +51 -0
  564. package/lib/core/UUID.d.ts +9 -0
  565. package/lib/core/UUID.js +44 -0
  566. package/lib/core/VectorClock.d.ts +7 -0
  567. package/lib/core/VectorClock.js +48 -0
  568. package/lib/discovery/HazelcastCloudAddressProvider.d.ts +10 -0
  569. package/lib/discovery/HazelcastCloudAddressProvider.js +35 -0
  570. package/lib/discovery/HazelcastCloudAddressTranslator.d.ts +13 -0
  571. package/lib/discovery/HazelcastCloudAddressTranslator.js +54 -0
  572. package/lib/discovery/HazelcastCloudDiscovery.d.ts +25 -0
  573. package/lib/discovery/HazelcastCloudDiscovery.js +85 -0
  574. package/lib/index.d.ts +26 -0
  575. package/lib/index.js +64 -0
  576. package/lib/invocation/ClientConnection.d.ts +82 -0
  577. package/lib/invocation/ClientConnection.js +307 -0
  578. package/lib/invocation/ClientConnectionManager.d.ts +56 -0
  579. package/lib/invocation/ClientConnectionManager.js +298 -0
  580. package/lib/invocation/ClientEventRegistration.d.ts +10 -0
  581. package/lib/invocation/ClientEventRegistration.js +30 -0
  582. package/lib/invocation/ClusterService.d.ts +99 -0
  583. package/lib/invocation/ClusterService.js +417 -0
  584. package/lib/invocation/ConnectionAuthenticator.d.ts +14 -0
  585. package/lib/invocation/ConnectionAuthenticator.js +88 -0
  586. package/lib/invocation/InvocationService.d.ts +138 -0
  587. package/lib/invocation/InvocationService.js +387 -0
  588. package/lib/invocation/Murmur.d.ts +2 -0
  589. package/lib/invocation/Murmur.js +65 -0
  590. package/lib/invocation/RegistrationKey.d.ts +16 -0
  591. package/lib/invocation/RegistrationKey.js +48 -0
  592. package/lib/logging/DefaultLogger.d.ts +12 -0
  593. package/lib/logging/DefaultLogger.js +48 -0
  594. package/lib/logging/ILogger.d.ts +49 -0
  595. package/lib/logging/ILogger.js +17 -0
  596. package/lib/logging/LoggingService.d.ts +16 -0
  597. package/lib/logging/LoggingService.js +50 -0
  598. package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.d.ts +10 -0
  599. package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.js +34 -0
  600. package/lib/nearcache/DataRecord.d.ts +33 -0
  601. package/lib/nearcache/DataRecord.js +109 -0
  602. package/lib/nearcache/MetadataContainer.d.ts +18 -0
  603. package/lib/nearcache/MetadataContainer.js +56 -0
  604. package/lib/nearcache/MetadataFetcher.d.ts +20 -0
  605. package/lib/nearcache/MetadataFetcher.js +92 -0
  606. package/lib/nearcache/NearCache.d.ts +89 -0
  607. package/lib/nearcache/NearCache.js +250 -0
  608. package/lib/nearcache/NearCacheManager.d.ts +13 -0
  609. package/lib/nearcache/NearCacheManager.js +50 -0
  610. package/lib/nearcache/RepairingHandler.d.ts +26 -0
  611. package/lib/nearcache/RepairingHandler.js +114 -0
  612. package/lib/nearcache/RepairingTask.d.ts +26 -0
  613. package/lib/nearcache/RepairingTask.js +117 -0
  614. package/lib/nearcache/StaleReadDetector.d.ts +7 -0
  615. package/lib/nearcache/StaleReadDetector.js +2 -0
  616. package/lib/nearcache/StaleReadDetectorImpl.d.ts +13 -0
  617. package/lib/nearcache/StaleReadDetectorImpl.js +35 -0
  618. package/lib/protocol/ClientProtocolErrorCodes.d.ts +91 -0
  619. package/lib/protocol/ClientProtocolErrorCodes.js +112 -0
  620. package/lib/protocol/ErrorCodec.d.ts +11 -0
  621. package/lib/protocol/ErrorCodec.js +50 -0
  622. package/lib/protocol/ErrorFactory.d.ts +8 -0
  623. package/lib/protocol/ErrorFactory.js +92 -0
  624. package/lib/protocol/StackTraceElementCodec.d.ts +8 -0
  625. package/lib/protocol/StackTraceElementCodec.js +38 -0
  626. package/lib/proxy/AtomicLongProxy.d.ts +17 -0
  627. package/lib/proxy/AtomicLongProxy.js +72 -0
  628. package/lib/proxy/BaseProxy.d.ts +89 -0
  629. package/lib/proxy/BaseProxy.js +191 -0
  630. package/lib/proxy/FlakeIdGenerator.d.ts +47 -0
  631. package/lib/proxy/FlakeIdGenerator.js +17 -0
  632. package/lib/proxy/FlakeIdGeneratorProxy.d.ts +13 -0
  633. package/lib/proxy/FlakeIdGeneratorProxy.js +48 -0
  634. package/lib/proxy/IAtomicLong.d.ts +16 -0
  635. package/lib/proxy/IAtomicLong.js +17 -0
  636. package/lib/proxy/IList.d.ts +132 -0
  637. package/lib/proxy/IList.js +17 -0
  638. package/lib/proxy/ILock.d.ts +54 -0
  639. package/lib/proxy/ILock.js +17 -0
  640. package/lib/proxy/IMap.d.ts +328 -0
  641. package/lib/proxy/IMap.js +17 -0
  642. package/lib/proxy/IQueue.d.ts +128 -0
  643. package/lib/proxy/IQueue.js +17 -0
  644. package/lib/proxy/ISemaphore.d.ts +53 -0
  645. package/lib/proxy/ISemaphore.js +17 -0
  646. package/lib/proxy/ISet.d.ts +89 -0
  647. package/lib/proxy/ISet.js +17 -0
  648. package/lib/proxy/ListProxy.d.ts +31 -0
  649. package/lib/proxy/ListProxy.js +165 -0
  650. package/lib/proxy/LockProxy.d.ts +16 -0
  651. package/lib/proxy/LockProxy.js +78 -0
  652. package/lib/proxy/MapProxy.d.ts +82 -0
  653. package/lib/proxy/MapProxy.js +651 -0
  654. package/lib/proxy/MultiMap.d.ts +153 -0
  655. package/lib/proxy/MultiMap.js +17 -0
  656. package/lib/proxy/MultiMapProxy.d.ts +33 -0
  657. package/lib/proxy/MultiMapProxy.js +238 -0
  658. package/lib/proxy/NearCachedMapProxy.d.ts +41 -0
  659. package/lib/proxy/NearCachedMapProxy.js +284 -0
  660. package/lib/proxy/PNCounter.d.ts +162 -0
  661. package/lib/proxy/PNCounter.js +17 -0
  662. package/lib/proxy/PNCounterProxy.d.ts +30 -0
  663. package/lib/proxy/PNCounterProxy.js +181 -0
  664. package/lib/proxy/PartitionSpecificProxy.d.ts +10 -0
  665. package/lib/proxy/PartitionSpecificProxy.js +52 -0
  666. package/lib/proxy/ProxyManager.d.ts +40 -0
  667. package/lib/proxy/ProxyManager.js +202 -0
  668. package/lib/proxy/QueueProxy.d.ts +28 -0
  669. package/lib/proxy/QueueProxy.js +198 -0
  670. package/lib/proxy/ReplicatedMap.d.ts +149 -0
  671. package/lib/proxy/ReplicatedMap.js +17 -0
  672. package/lib/proxy/ReplicatedMapProxy.d.ts +34 -0
  673. package/lib/proxy/ReplicatedMapProxy.js +256 -0
  674. package/lib/proxy/Ringbuffer.d.ts +115 -0
  675. package/lib/proxy/Ringbuffer.js +17 -0
  676. package/lib/proxy/SemaphoreProxy.d.ts +15 -0
  677. package/lib/proxy/SemaphoreProxy.js +73 -0
  678. package/lib/proxy/SetProxy.d.ts +22 -0
  679. package/lib/proxy/SetProxy.js +130 -0
  680. package/lib/proxy/flakeid/AutoBatcher.d.ts +30 -0
  681. package/lib/proxy/flakeid/AutoBatcher.js +104 -0
  682. package/lib/proxy/ringbuffer/LazyReadResultSet.d.ts +16 -0
  683. package/lib/proxy/ringbuffer/LazyReadResultSet.js +54 -0
  684. package/lib/proxy/ringbuffer/ReadResultSet.d.ts +41 -0
  685. package/lib/proxy/ringbuffer/ReadResultSet.js +17 -0
  686. package/lib/proxy/ringbuffer/RingbufferProxy.d.ts +19 -0
  687. package/lib/proxy/ringbuffer/RingbufferProxy.js +98 -0
  688. package/lib/proxy/topic/ITopic.d.ts +9 -0
  689. package/lib/proxy/topic/ITopic.js +17 -0
  690. package/lib/proxy/topic/Message.d.ts +8 -0
  691. package/lib/proxy/topic/Message.js +23 -0
  692. package/lib/proxy/topic/MessageListener.d.ts +2 -0
  693. package/lib/proxy/topic/MessageListener.js +2 -0
  694. package/lib/proxy/topic/ReliableTopicListenerRunner.d.ts +20 -0
  695. package/lib/proxy/topic/ReliableTopicListenerRunner.js +73 -0
  696. package/lib/proxy/topic/ReliableTopicMessage.d.ts +19 -0
  697. package/lib/proxy/topic/ReliableTopicMessage.js +53 -0
  698. package/lib/proxy/topic/ReliableTopicProxy.d.ts +31 -0
  699. package/lib/proxy/topic/ReliableTopicProxy.js +151 -0
  700. package/lib/proxy/topic/TopicOverloadPolicy.d.ts +23 -0
  701. package/lib/proxy/topic/TopicOverloadPolicy.js +41 -0
  702. package/lib/serialization/Data.d.ts +114 -0
  703. package/lib/serialization/Data.js +17 -0
  704. package/lib/serialization/DefaultPredicates.d.ts +131 -0
  705. package/lib/serialization/DefaultPredicates.js +465 -0
  706. package/lib/serialization/DefaultSerializer.d.ts +134 -0
  707. package/lib/serialization/DefaultSerializer.js +442 -0
  708. package/lib/serialization/HeapData.d.ts +44 -0
  709. package/lib/serialization/HeapData.js +104 -0
  710. package/lib/serialization/ObjectData.d.ts +102 -0
  711. package/lib/serialization/ObjectData.js +566 -0
  712. package/lib/serialization/PredicateFactory.d.ts +15 -0
  713. package/lib/serialization/PredicateFactory.js +46 -0
  714. package/lib/serialization/Serializable.d.ts +23 -0
  715. package/lib/serialization/Serializable.js +17 -0
  716. package/lib/serialization/SerializationService.d.ts +60 -0
  717. package/lib/serialization/SerializationService.js +312 -0
  718. package/lib/serialization/SerializationUtil.d.ts +3 -0
  719. package/lib/serialization/SerializationUtil.js +31 -0
  720. package/lib/serialization/portable/ClassDefinition.d.ts +54 -0
  721. package/lib/serialization/portable/ClassDefinition.js +140 -0
  722. package/lib/serialization/portable/ClassDefinitionBuilder.d.ts +35 -0
  723. package/lib/serialization/portable/ClassDefinitionBuilder.js +126 -0
  724. package/lib/serialization/portable/ClassDefinitionContext.d.ts +9 -0
  725. package/lib/serialization/portable/ClassDefinitionContext.js +51 -0
  726. package/lib/serialization/portable/ClassDefinitionWriter.d.ts +35 -0
  727. package/lib/serialization/portable/ClassDefinitionWriter.js +123 -0
  728. package/lib/serialization/portable/DefaultPortableReader.d.ts +43 -0
  729. package/lib/serialization/portable/DefaultPortableReader.js +188 -0
  730. package/lib/serialization/portable/DefaultPortableWriter.d.ts +37 -0
  731. package/lib/serialization/portable/DefaultPortableWriter.js +156 -0
  732. package/lib/serialization/portable/MorphingPortableReader.d.ts +31 -0
  733. package/lib/serialization/portable/MorphingPortableReader.js +189 -0
  734. package/lib/serialization/portable/PortableContext.d.ts +16 -0
  735. package/lib/serialization/portable/PortableContext.js +126 -0
  736. package/lib/serialization/portable/PortableSerializer.d.ts +68 -0
  737. package/lib/serialization/portable/PortableSerializer.js +94 -0
  738. package/lib/statistics/Statistics.d.ts +50 -0
  739. package/lib/statistics/Statistics.js +232 -0
  740. package/lib/util/ArrayComparator.d.ts +1 -0
  741. package/lib/util/ArrayComparator.js +17 -0
  742. package/lib/util/UuidUtil.d.ts +4 -0
  743. package/lib/util/UuidUtil.js +35 -0
  744. package/lib.es6.d.ts +18650 -0
  745. package/package.json +64 -0
  746. package/tsconfig.json +20 -0
@@ -0,0 +1,651 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ var __extends = (this && this.__extends) || (function () {
18
+ var extendStatics = Object.setPrototypeOf ||
19
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
20
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
21
+ return function (d, b) {
22
+ extendStatics(d, b);
23
+ function __() { this.constructor = d; }
24
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25
+ };
26
+ })();
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var Promise = require("bluebird");
29
+ var MapAddEntryListenerCodec_1 = require("../codec/MapAddEntryListenerCodec");
30
+ var MapAddEntryListenerToKeyCodec_1 = require("../codec/MapAddEntryListenerToKeyCodec");
31
+ var MapAddEntryListenerToKeyWithPredicateCodec_1 = require("../codec/MapAddEntryListenerToKeyWithPredicateCodec");
32
+ var MapAddEntryListenerWithPredicateCodec_1 = require("../codec/MapAddEntryListenerWithPredicateCodec");
33
+ var MapAddIndexCodec_1 = require("../codec/MapAddIndexCodec");
34
+ var MapAggregateCodec_1 = require("../codec/MapAggregateCodec");
35
+ var MapAggregateWithPredicateCodec_1 = require("../codec/MapAggregateWithPredicateCodec");
36
+ var MapClearCodec_1 = require("../codec/MapClearCodec");
37
+ var MapContainsKeyCodec_1 = require("../codec/MapContainsKeyCodec");
38
+ var MapContainsValueCodec_1 = require("../codec/MapContainsValueCodec");
39
+ var MapDeleteCodec_1 = require("../codec/MapDeleteCodec");
40
+ var MapEntriesWithPredicateCodec_1 = require("../codec/MapEntriesWithPredicateCodec");
41
+ var MapEntrySetCodec_1 = require("../codec/MapEntrySetCodec");
42
+ var MapEvictAllCodec_1 = require("../codec/MapEvictAllCodec");
43
+ var MapEvictCodec_1 = require("../codec/MapEvictCodec");
44
+ var MapExecuteOnAllKeysCodec_1 = require("../codec/MapExecuteOnAllKeysCodec");
45
+ var MapExecuteOnKeyCodec_1 = require("../codec/MapExecuteOnKeyCodec");
46
+ var MapExecuteOnKeysCodec_1 = require("../codec/MapExecuteOnKeysCodec");
47
+ var MapExecuteWithPredicateCodec_1 = require("../codec/MapExecuteWithPredicateCodec");
48
+ var MapFlushCodec_1 = require("../codec/MapFlushCodec");
49
+ var MapForceUnlockCodec_1 = require("../codec/MapForceUnlockCodec");
50
+ var MapGetAllCodec_1 = require("../codec/MapGetAllCodec");
51
+ var MapGetCodec_1 = require("../codec/MapGetCodec");
52
+ var MapGetEntryViewCodec_1 = require("../codec/MapGetEntryViewCodec");
53
+ var MapIsEmptyCodec_1 = require("../codec/MapIsEmptyCodec");
54
+ var MapIsLockedCodec_1 = require("../codec/MapIsLockedCodec");
55
+ var MapKeySetCodec_1 = require("../codec/MapKeySetCodec");
56
+ var MapKeySetWithPagingPredicateCodec_1 = require("../codec/MapKeySetWithPagingPredicateCodec");
57
+ var MapKeySetWithPredicateCodec_1 = require("../codec/MapKeySetWithPredicateCodec");
58
+ var MapLoadAllCodec_1 = require("../codec/MapLoadAllCodec");
59
+ var MapLoadGivenKeysCodec_1 = require("../codec/MapLoadGivenKeysCodec");
60
+ var MapLockCodec_1 = require("../codec/MapLockCodec");
61
+ var MapPutAllCodec_1 = require("../codec/MapPutAllCodec");
62
+ var MapPutCodec_1 = require("../codec/MapPutCodec");
63
+ var MapPutIfAbsentCodec_1 = require("../codec/MapPutIfAbsentCodec");
64
+ var MapPutTransientCodec_1 = require("../codec/MapPutTransientCodec");
65
+ var MapRemoveCodec_1 = require("../codec/MapRemoveCodec");
66
+ var MapRemoveEntryListenerCodec_1 = require("../codec/MapRemoveEntryListenerCodec");
67
+ var MapRemoveIfSameCodec_1 = require("../codec/MapRemoveIfSameCodec");
68
+ var MapReplaceCodec_1 = require("../codec/MapReplaceCodec");
69
+ var MapReplaceIfSameCodec_1 = require("../codec/MapReplaceIfSameCodec");
70
+ var MapSetCodec_1 = require("../codec/MapSetCodec");
71
+ var MapSizeCodec_1 = require("../codec/MapSizeCodec");
72
+ var MapTryLockCodec_1 = require("../codec/MapTryLockCodec");
73
+ var MapTryPutCodec_1 = require("../codec/MapTryPutCodec");
74
+ var MapTryRemoveCodec_1 = require("../codec/MapTryRemoveCodec");
75
+ var MapUnlockCodec_1 = require("../codec/MapUnlockCodec");
76
+ var MapValuesCodec_1 = require("../codec/MapValuesCodec");
77
+ var MapValuesWithPagingPredicateCodec_1 = require("../codec/MapValuesWithPagingPredicateCodec");
78
+ var MapValuesWithPredicateCodec_1 = require("../codec/MapValuesWithPredicateCodec");
79
+ var EventType_1 = require("../core/EventType");
80
+ var MapListener_1 = require("../core/MapListener");
81
+ var Predicate_1 = require("../core/Predicate");
82
+ var ReadOnlyLazyList_1 = require("../core/ReadOnlyLazyList");
83
+ var DefaultPredicates_1 = require("../serialization/DefaultPredicates");
84
+ var SerializationUtil = require("../serialization/SerializationUtil");
85
+ var Util_1 = require("../Util");
86
+ var BaseProxy_1 = require("./BaseProxy");
87
+ var EntryListener_1 = require("../core/EntryListener");
88
+ var MapProxy = /** @class */ (function (_super) {
89
+ __extends(MapProxy, _super);
90
+ function MapProxy() {
91
+ return _super !== null && _super.apply(this, arguments) || this;
92
+ }
93
+ MapProxy.prototype.aggregate = function (aggregator) {
94
+ Util_1.assertNotNull(aggregator);
95
+ var aggregatorData = this.toData(aggregator);
96
+ return this.encodeInvokeOnRandomTarget(MapAggregateCodec_1.MapAggregateCodec, aggregatorData);
97
+ };
98
+ MapProxy.prototype.aggregateWithPredicate = function (aggregator, predicate) {
99
+ Util_1.assertNotNull(aggregator);
100
+ Util_1.assertNotNull(predicate);
101
+ this.checkNotPagingPredicate(predicate);
102
+ var aggregatorData = this.toData(aggregator);
103
+ var predicateData = this.toData(predicate);
104
+ return this.encodeInvokeOnRandomTarget(MapAggregateWithPredicateCodec_1.MapAggregateWithPredicateCodec, aggregatorData, predicateData);
105
+ };
106
+ MapProxy.prototype.executeOnKeys = function (keys, entryProcessor) {
107
+ Util_1.assertNotNull(keys);
108
+ Util_1.assertArray(keys);
109
+ if (keys.length === 0) {
110
+ return Promise.resolve([]);
111
+ }
112
+ else {
113
+ var toObject = this.toObject.bind(this);
114
+ var keysData = SerializationUtil.serializeList(this.toData.bind(this), keys);
115
+ var proData = this.toData(entryProcessor);
116
+ return this.encodeInvokeOnRandomTarget(MapExecuteOnKeysCodec_1.MapExecuteOnKeysCodec, proData, keysData)
117
+ .then(SerializationUtil.deserializeEntryList.bind(this, toObject));
118
+ }
119
+ };
120
+ MapProxy.prototype.executeOnKey = function (key, entryProcessor) {
121
+ Util_1.assertNotNull(key);
122
+ Util_1.assertNotNull(entryProcessor);
123
+ var keyData = this.toData(key);
124
+ var proData = this.toData(entryProcessor);
125
+ return this.executeOnKeyInternal(keyData, proData);
126
+ };
127
+ MapProxy.prototype.executeOnEntries = function (entryProcessor, predicate) {
128
+ if (predicate === void 0) { predicate = null; }
129
+ Util_1.assertNotNull(entryProcessor);
130
+ var proData = this.toData(entryProcessor);
131
+ var toObject = this.toObject.bind(this);
132
+ if (predicate == null) {
133
+ return this.encodeInvokeOnRandomTarget(MapExecuteOnAllKeysCodec_1.MapExecuteOnAllKeysCodec, proData)
134
+ .then(SerializationUtil.deserializeEntryList.bind(this, toObject));
135
+ }
136
+ else {
137
+ var predData = this.toData(predicate);
138
+ return this.encodeInvokeOnRandomTarget(MapExecuteWithPredicateCodec_1.MapExecuteWithPredicateCodec, proData, predData)
139
+ .then(SerializationUtil.deserializeEntryList.bind(this, toObject));
140
+ }
141
+ };
142
+ MapProxy.prototype.entrySetWithPredicate = function (predicate) {
143
+ Util_1.assertNotNull(predicate);
144
+ var toObject = this.toObject.bind(this);
145
+ if (predicate instanceof DefaultPredicates_1.PagingPredicate) {
146
+ predicate.setIterationType(Predicate_1.IterationType.ENTRY);
147
+ var pData = this.toData(predicate);
148
+ return this.encodeInvokeOnRandomTarget(MapValuesWithPagingPredicateCodec_1.MapValuesWithPagingPredicateCodec, pData).then(function (rawValues) {
149
+ var deserValues = rawValues.map(function (ite) {
150
+ return [toObject(ite[0]), toObject(ite[1])];
151
+ });
152
+ return Util_1.getSortedQueryResultSet(deserValues, predicate);
153
+ });
154
+ }
155
+ else {
156
+ var pData = this.toData(predicate);
157
+ var deserializedSet_1 = [];
158
+ return this.encodeInvokeOnRandomTarget(MapEntriesWithPredicateCodec_1.MapEntriesWithPredicateCodec, pData).then(function (entrySet) {
159
+ entrySet.forEach(function (entry) {
160
+ deserializedSet_1.push([toObject(entry[0]), toObject(entry[1])]);
161
+ });
162
+ return deserializedSet_1;
163
+ });
164
+ }
165
+ };
166
+ MapProxy.prototype.keySetWithPredicate = function (predicate) {
167
+ Util_1.assertNotNull(predicate);
168
+ var toObject = this.toObject.bind(this);
169
+ if (predicate instanceof DefaultPredicates_1.PagingPredicate) {
170
+ predicate.setIterationType(Predicate_1.IterationType.KEY);
171
+ var predData = this.toData(predicate);
172
+ return this.encodeInvokeOnRandomTarget(MapKeySetWithPagingPredicateCodec_1.MapKeySetWithPagingPredicateCodec, predData).then(function (rawValues) {
173
+ var deserValues = rawValues.map(function (ite) {
174
+ return [toObject(ite), null];
175
+ });
176
+ return Util_1.getSortedQueryResultSet(deserValues, predicate);
177
+ });
178
+ }
179
+ else {
180
+ var predicateData = this.toData(predicate);
181
+ return this.encodeInvokeOnRandomTarget(MapKeySetWithPredicateCodec_1.MapKeySetWithPredicateCodec, predicateData).then(function (entrySet) {
182
+ return entrySet.map(toObject);
183
+ });
184
+ }
185
+ };
186
+ MapProxy.prototype.valuesWithPredicate = function (predicate) {
187
+ var _this = this;
188
+ Util_1.assertNotNull(predicate);
189
+ var toObject = this.toObject.bind(this);
190
+ if (predicate instanceof DefaultPredicates_1.PagingPredicate) {
191
+ predicate.setIterationType(Predicate_1.IterationType.VALUE);
192
+ var predData = this.toData(predicate);
193
+ return this.encodeInvokeOnRandomTarget(MapValuesWithPagingPredicateCodec_1.MapValuesWithPagingPredicateCodec, predData).then(function (rawValues) {
194
+ var desValues = rawValues.map(function (ite) {
195
+ return [toObject(ite[0]), toObject(ite[1])];
196
+ });
197
+ return new ReadOnlyLazyList_1.ReadOnlyLazyList(Util_1.getSortedQueryResultSet(desValues, predicate), _this.client.getSerializationService());
198
+ });
199
+ }
200
+ else {
201
+ var predicateData = this.toData(predicate);
202
+ return this.encodeInvokeOnRandomTarget(MapValuesWithPredicateCodec_1.MapValuesWithPredicateCodec, predicateData).then(function (rawValues) {
203
+ return new ReadOnlyLazyList_1.ReadOnlyLazyList(rawValues, _this.client.getSerializationService());
204
+ });
205
+ }
206
+ };
207
+ MapProxy.prototype.addEntryListenerWithPredicate = function (listener, predicate, key, includeValue) {
208
+ return this.addEntryListenerInternal(listener, predicate, key, includeValue);
209
+ };
210
+ MapProxy.prototype.containsKey = function (key) {
211
+ Util_1.assertNotNull(key);
212
+ var keyData = this.toData(key);
213
+ return this.containsKeyInternal(keyData);
214
+ };
215
+ MapProxy.prototype.containsValue = function (value) {
216
+ Util_1.assertNotNull(value);
217
+ var valueData = this.toData(value);
218
+ return this.encodeInvokeOnRandomTarget(MapContainsValueCodec_1.MapContainsValueCodec, valueData);
219
+ };
220
+ MapProxy.prototype.put = function (key, value, ttl) {
221
+ if (ttl === void 0) { ttl = -1; }
222
+ Util_1.assertNotNull(key);
223
+ Util_1.assertNotNull(value);
224
+ var keyData = this.toData(key);
225
+ var valueData = this.toData(value);
226
+ return this.putInternal(keyData, valueData, ttl);
227
+ };
228
+ MapProxy.prototype.putAll = function (pairs) {
229
+ var partitionService = this.client.getPartitionService();
230
+ var partitionsToKeys = {};
231
+ var pair;
232
+ var pairId;
233
+ for (pairId in pairs) {
234
+ pair = pairs[pairId];
235
+ var keyData = this.toData(pair[0]);
236
+ var pId = partitionService.getPartitionId(keyData);
237
+ if (!partitionsToKeys[pId]) {
238
+ partitionsToKeys[pId] = [];
239
+ }
240
+ partitionsToKeys[pId].push([keyData, this.toData(pair[1])]);
241
+ }
242
+ return this.putAllInternal(partitionsToKeys);
243
+ };
244
+ MapProxy.prototype.get = function (key) {
245
+ Util_1.assertNotNull(key);
246
+ var keyData = this.toData(key);
247
+ return this.getInternal(keyData);
248
+ };
249
+ MapProxy.prototype.remove = function (key, value) {
250
+ if (value === void 0) { value = null; }
251
+ Util_1.assertNotNull(key);
252
+ var keyData = this.toData(key);
253
+ return this.removeInternal(keyData, value);
254
+ };
255
+ MapProxy.prototype.size = function () {
256
+ return this.encodeInvokeOnRandomTarget(MapSizeCodec_1.MapSizeCodec);
257
+ };
258
+ MapProxy.prototype.clear = function () {
259
+ return this.encodeInvokeOnRandomTarget(MapClearCodec_1.MapClearCodec);
260
+ };
261
+ MapProxy.prototype.isEmpty = function () {
262
+ return this.encodeInvokeOnRandomTarget(MapIsEmptyCodec_1.MapIsEmptyCodec);
263
+ };
264
+ MapProxy.prototype.getAll = function (keys) {
265
+ Util_1.assertNotNull(keys);
266
+ Util_1.assertArray(keys);
267
+ var partitionService = this.client.getPartitionService();
268
+ var partitionsToKeys = {};
269
+ var key;
270
+ for (var i in keys) {
271
+ key = keys[i];
272
+ var keyData = this.toData(key);
273
+ var pId = partitionService.getPartitionId(keyData);
274
+ if (!partitionsToKeys[pId]) {
275
+ partitionsToKeys[pId] = [];
276
+ }
277
+ partitionsToKeys[pId].push(keyData);
278
+ }
279
+ var result = [];
280
+ return this.getAllInternal(partitionsToKeys, result).then(function () {
281
+ return result;
282
+ });
283
+ };
284
+ MapProxy.prototype.delete = function (key) {
285
+ Util_1.assertNotNull(key);
286
+ var keyData = this.toData(key);
287
+ return this.deleteInternal(keyData);
288
+ };
289
+ MapProxy.prototype.entrySet = function () {
290
+ var deserializedSet = [];
291
+ var toObject = this.toObject.bind(this);
292
+ return this.encodeInvokeOnRandomTarget(MapEntrySetCodec_1.MapEntrySetCodec).then(function (entrySet) {
293
+ entrySet.forEach(function (entry) {
294
+ deserializedSet.push([toObject(entry[0]), toObject(entry[1])]);
295
+ });
296
+ return deserializedSet;
297
+ });
298
+ };
299
+ MapProxy.prototype.evict = function (key) {
300
+ Util_1.assertNotNull(key);
301
+ var keyData = this.toData(key);
302
+ return this.evictInternal(keyData);
303
+ };
304
+ MapProxy.prototype.evictAll = function () {
305
+ return this.encodeInvokeOnRandomTarget(MapEvictAllCodec_1.MapEvictAllCodec);
306
+ };
307
+ MapProxy.prototype.flush = function () {
308
+ return this.encodeInvokeOnRandomTarget(MapFlushCodec_1.MapFlushCodec);
309
+ };
310
+ MapProxy.prototype.lock = function (key, ttl) {
311
+ if (ttl === void 0) { ttl = -1; }
312
+ Util_1.assertNotNull(key);
313
+ var keyData = this.toData(key);
314
+ return this.encodeInvokeOnKeyWithTimeout(Number.MAX_SAFE_INTEGER, MapLockCodec_1.MapLockCodec, keyData, keyData, 0, ttl, 0);
315
+ };
316
+ MapProxy.prototype.isLocked = function (key) {
317
+ Util_1.assertNotNull(key);
318
+ var keyData = this.toData(key);
319
+ return this.encodeInvokeOnKey(MapIsLockedCodec_1.MapIsLockedCodec, keyData, keyData);
320
+ };
321
+ MapProxy.prototype.unlock = function (key) {
322
+ Util_1.assertNotNull(key);
323
+ var keyData = this.toData(key);
324
+ return this.encodeInvokeOnKey(MapUnlockCodec_1.MapUnlockCodec, keyData, keyData, 0, 0);
325
+ };
326
+ MapProxy.prototype.forceUnlock = function (key) {
327
+ Util_1.assertNotNull(key);
328
+ var keyData = this.toData(key);
329
+ return this.encodeInvokeOnKey(MapForceUnlockCodec_1.MapForceUnlockCodec, keyData, keyData, 0);
330
+ };
331
+ MapProxy.prototype.keySet = function () {
332
+ var toObject = this.toObject.bind(this);
333
+ return this.encodeInvokeOnRandomTarget(MapKeySetCodec_1.MapKeySetCodec).then(function (entrySet) {
334
+ return entrySet.map(toObject);
335
+ });
336
+ };
337
+ MapProxy.prototype.loadAll = function (keys, replaceExistingValues) {
338
+ if (keys === void 0) { keys = null; }
339
+ if (replaceExistingValues === void 0) { replaceExistingValues = true; }
340
+ if (keys == null) {
341
+ return this.encodeInvokeOnRandomTarget(MapLoadAllCodec_1.MapLoadAllCodec, replaceExistingValues);
342
+ }
343
+ else {
344
+ var toData = this.toData.bind(this);
345
+ var keysData = keys.map(toData);
346
+ return this.encodeInvokeOnRandomTarget(MapLoadGivenKeysCodec_1.MapLoadGivenKeysCodec, keysData, replaceExistingValues);
347
+ }
348
+ };
349
+ MapProxy.prototype.putIfAbsent = function (key, value, ttl) {
350
+ if (ttl === void 0) { ttl = -1; }
351
+ Util_1.assertNotNull(key);
352
+ Util_1.assertNotNull(value);
353
+ var keyData = this.toData(key);
354
+ var valueData = this.toData(value);
355
+ return this.putIfAbsentInternal(keyData, valueData, ttl);
356
+ };
357
+ MapProxy.prototype.putTransient = function (key, value, ttl) {
358
+ if (ttl === void 0) { ttl = -1; }
359
+ Util_1.assertNotNull(key);
360
+ Util_1.assertNotNull(value);
361
+ var keyData = this.toData(key);
362
+ var valueData = this.toData(value);
363
+ return this.putTransientInternal(keyData, valueData, ttl);
364
+ };
365
+ MapProxy.prototype.replace = function (key, newValue) {
366
+ Util_1.assertNotNull(key);
367
+ Util_1.assertNotNull(newValue);
368
+ var keyData = this.toData(key);
369
+ var newValueData = this.toData(newValue);
370
+ return this.replaceInternal(keyData, newValueData);
371
+ };
372
+ MapProxy.prototype.replaceIfSame = function (key, oldValue, newValue) {
373
+ Util_1.assertNotNull(key);
374
+ Util_1.assertNotNull(oldValue);
375
+ Util_1.assertNotNull(newValue);
376
+ var keyData = this.toData(key);
377
+ var newValueData = this.toData(newValue);
378
+ var oldValueData = this.toData(oldValue);
379
+ return this.replaceIfSameInternal(keyData, oldValueData, newValueData);
380
+ };
381
+ MapProxy.prototype.set = function (key, value, ttl) {
382
+ if (ttl === void 0) { ttl = -1; }
383
+ Util_1.assertNotNull(key);
384
+ Util_1.assertNotNull(value);
385
+ var keyData = this.toData(key);
386
+ var valueData = this.toData(value);
387
+ return this.setInternal(keyData, valueData, ttl);
388
+ };
389
+ MapProxy.prototype.values = function () {
390
+ var _this = this;
391
+ return this.encodeInvokeOnRandomTarget(MapValuesCodec_1.MapValuesCodec).then(function (valuesData) {
392
+ return new ReadOnlyLazyList_1.ReadOnlyLazyList(valuesData, _this.client.getSerializationService());
393
+ });
394
+ };
395
+ MapProxy.prototype.getEntryView = function (key) {
396
+ Util_1.assertNotNull(key);
397
+ var keyData = this.toData(key);
398
+ return this.encodeInvokeOnKey(MapGetEntryViewCodec_1.MapGetEntryViewCodec, keyData, keyData, 0);
399
+ };
400
+ MapProxy.prototype.addIndex = function (attribute, ordered) {
401
+ return this.encodeInvokeOnRandomTarget(MapAddIndexCodec_1.MapAddIndexCodec, attribute, ordered);
402
+ };
403
+ MapProxy.prototype.tryLock = function (key, timeout, lease) {
404
+ if (timeout === void 0) { timeout = 0; }
405
+ if (lease === void 0) { lease = -1; }
406
+ Util_1.assertNotNull(key);
407
+ var keyData = this.toData(key);
408
+ return this.encodeInvokeOnKeyWithTimeout(Number.MAX_SAFE_INTEGER, MapTryLockCodec_1.MapTryLockCodec, keyData, keyData, 0, lease, timeout, 0);
409
+ };
410
+ MapProxy.prototype.tryPut = function (key, value, timeout) {
411
+ Util_1.assertNotNull(key);
412
+ Util_1.assertNotNull(value);
413
+ var keyData = this.toData(key);
414
+ var valueData = this.toData(value);
415
+ return this.tryPutInternal(keyData, valueData, timeout);
416
+ };
417
+ MapProxy.prototype.tryRemove = function (key, timeout) {
418
+ Util_1.assertNotNull(key);
419
+ var keyData = this.toData(key);
420
+ return this.tryRemoveInternal(keyData, timeout);
421
+ };
422
+ MapProxy.prototype.addEntryListener = function (listener, key, includeValue) {
423
+ if (includeValue === void 0) { includeValue = false; }
424
+ return this.addEntryListenerInternal(listener, undefined, key, includeValue);
425
+ };
426
+ MapProxy.prototype.removeEntryListener = function (listenerId) {
427
+ return this.client.getListenerService().deregisterListener(listenerId);
428
+ };
429
+ MapProxy.prototype.executeOnKeyInternal = function (keyData, proData) {
430
+ return this.encodeInvokeOnKey(MapExecuteOnKeyCodec_1.MapExecuteOnKeyCodec, keyData, proData, keyData, 1);
431
+ };
432
+ MapProxy.prototype.containsKeyInternal = function (keyData) {
433
+ return this.encodeInvokeOnKey(MapContainsKeyCodec_1.MapContainsKeyCodec, keyData, keyData, 0);
434
+ };
435
+ MapProxy.prototype.putInternal = function (keyData, valueData, ttl) {
436
+ return this.encodeInvokeOnKey(MapPutCodec_1.MapPutCodec, keyData, keyData, valueData, 0, ttl);
437
+ };
438
+ MapProxy.prototype.putAllInternal = function (partitionsToKeysData) {
439
+ var partitionPromises = [];
440
+ for (var partition in partitionsToKeysData) {
441
+ partitionPromises.push(this.encodeInvokeOnPartition(MapPutAllCodec_1.MapPutAllCodec, Number(partition), partitionsToKeysData[partition]));
442
+ }
443
+ return Promise.all(partitionPromises).then(function () {
444
+ return;
445
+ });
446
+ };
447
+ MapProxy.prototype.getInternal = function (keyData) {
448
+ return this.encodeInvokeOnKey(MapGetCodec_1.MapGetCodec, keyData, keyData, 0);
449
+ };
450
+ MapProxy.prototype.removeInternal = function (keyData, value) {
451
+ if (value === void 0) { value = null; }
452
+ if (value == null) {
453
+ return this.encodeInvokeOnKey(MapRemoveCodec_1.MapRemoveCodec, keyData, keyData, 0);
454
+ }
455
+ else {
456
+ var valueData = this.toData(value);
457
+ return this.encodeInvokeOnKey(MapRemoveIfSameCodec_1.MapRemoveIfSameCodec, keyData, keyData, valueData, 0);
458
+ }
459
+ };
460
+ MapProxy.prototype.getAllInternal = function (partitionsToKeys, result) {
461
+ if (result === void 0) { result = []; }
462
+ var partitionPromises = [];
463
+ for (var partition in partitionsToKeys) {
464
+ partitionPromises.push(this.encodeInvokeOnPartition(MapGetAllCodec_1.MapGetAllCodec, Number(partition), partitionsToKeys[partition]));
465
+ }
466
+ var toObject = this.toObject.bind(this);
467
+ var deserializeEntry = function (entry) {
468
+ return [toObject(entry[0]), toObject(entry[1])];
469
+ };
470
+ return Promise.all(partitionPromises).then(function (serializedEntryArrayArray) {
471
+ var serializedEntryArray = Array.prototype.concat.apply([], serializedEntryArrayArray);
472
+ result.push.apply(result, (serializedEntryArray.map(deserializeEntry)));
473
+ return serializedEntryArray;
474
+ });
475
+ };
476
+ MapProxy.prototype.deleteInternal = function (keyData) {
477
+ return this.encodeInvokeOnKey(MapDeleteCodec_1.MapDeleteCodec, keyData, keyData, 0);
478
+ };
479
+ MapProxy.prototype.evictInternal = function (keyData) {
480
+ return this.encodeInvokeOnKey(MapEvictCodec_1.MapEvictCodec, keyData, keyData, 0);
481
+ };
482
+ MapProxy.prototype.putIfAbsentInternal = function (keyData, valueData, ttl) {
483
+ return this.encodeInvokeOnKey(MapPutIfAbsentCodec_1.MapPutIfAbsentCodec, keyData, keyData, valueData, 0, ttl);
484
+ };
485
+ MapProxy.prototype.putTransientInternal = function (keyData, valueData, ttl) {
486
+ return this.encodeInvokeOnKey(MapPutTransientCodec_1.MapPutTransientCodec, keyData, keyData, valueData, 0, ttl);
487
+ };
488
+ MapProxy.prototype.replaceInternal = function (keyData, newValueData) {
489
+ return this.encodeInvokeOnKey(MapReplaceCodec_1.MapReplaceCodec, keyData, keyData, newValueData, 0);
490
+ };
491
+ MapProxy.prototype.replaceIfSameInternal = function (keyData, oldValueData, newValueData) {
492
+ return this.encodeInvokeOnKey(MapReplaceIfSameCodec_1.MapReplaceIfSameCodec, keyData, keyData, oldValueData, newValueData, 0);
493
+ };
494
+ MapProxy.prototype.setInternal = function (keyData, valueData, ttl) {
495
+ return this.encodeInvokeOnKey(MapSetCodec_1.MapSetCodec, keyData, keyData, valueData, 0, ttl);
496
+ };
497
+ MapProxy.prototype.tryPutInternal = function (keyData, valueData, timeout) {
498
+ return this.encodeInvokeOnKey(MapTryPutCodec_1.MapTryPutCodec, keyData, keyData, valueData, 0, timeout);
499
+ };
500
+ MapProxy.prototype.tryRemoveInternal = function (keyData, timeout) {
501
+ return this.encodeInvokeOnKey(MapTryRemoveCodec_1.MapTryRemoveCodec, keyData, keyData, 0, timeout);
502
+ };
503
+ MapProxy.prototype.addEntryListenerInternal = function (listener, predicate, key, includeValue) {
504
+ var _this = this;
505
+ var flags = null;
506
+ var conversionTable = {
507
+ added: EventType_1.EventType.ADDED,
508
+ mapCleared: EventType_1.EventType.CLEAR_ALL,
509
+ evicted: EventType_1.EventType.EVICTED,
510
+ mapEvicted: EventType_1.EventType.EVICT_ALL,
511
+ merged: EventType_1.EventType.MERGED,
512
+ removed: EventType_1.EventType.REMOVED,
513
+ updated: EventType_1.EventType.UPDATED,
514
+ expired: EventType_1.EventType.EXPIRED,
515
+ loaded: EventType_1.EventType.LOADED,
516
+ };
517
+ for (var funcName in conversionTable) {
518
+ if (listener[funcName]) {
519
+ /* tslint:disable:no-bitwise */
520
+ flags = flags | conversionTable[funcName];
521
+ }
522
+ }
523
+ var toObject = this.toObject.bind(this);
524
+ var entryEventHandler = function (
525
+ /* tslint:disable-next-line:no-shadowed-variable */
526
+ key, value, oldValue, mergingValue, eventType, uuid, numberOfAffectedEntries) {
527
+ var member = _this.client.getClusterService().getMember(uuid);
528
+ var name = _this.name;
529
+ key = toObject(key);
530
+ value = toObject(value);
531
+ oldValue = toObject(oldValue);
532
+ mergingValue = toObject(mergingValue);
533
+ var entryEvent = new EntryListener_1.EntryEvent(name, key, value, oldValue, mergingValue, member);
534
+ var mapEvent = new MapListener_1.MapEvent(name, numberOfAffectedEntries, member);
535
+ switch (eventType) {
536
+ case EventType_1.EventType.ADDED:
537
+ listener.added.apply(null, [entryEvent]);
538
+ break;
539
+ case EventType_1.EventType.REMOVED:
540
+ listener.removed.apply(null, [entryEvent]);
541
+ break;
542
+ case EventType_1.EventType.UPDATED:
543
+ listener.updated.apply(null, [entryEvent]);
544
+ break;
545
+ case EventType_1.EventType.EVICTED:
546
+ listener.evicted.apply(null, [entryEvent]);
547
+ break;
548
+ case EventType_1.EventType.EVICT_ALL:
549
+ listener.mapEvicted.apply(null, [mapEvent]);
550
+ break;
551
+ case EventType_1.EventType.CLEAR_ALL:
552
+ listener.mapCleared.apply(null, [mapEvent]);
553
+ break;
554
+ case EventType_1.EventType.MERGED:
555
+ listener.merged.apply(null, [entryEvent]);
556
+ break;
557
+ case EventType_1.EventType.EXPIRED:
558
+ listener.expired.apply(null, [entryEvent]);
559
+ break;
560
+ case EventType_1.EventType.LOADED:
561
+ listener.loaded.apply(null, [entryEvent]);
562
+ break;
563
+ }
564
+ };
565
+ var codec;
566
+ var listenerHandler;
567
+ if (key && predicate) {
568
+ var keyData = this.toData(key);
569
+ var predicateData = this.toData(predicate);
570
+ codec = this.createEntryListenerToKeyWithPredicate(this.name, keyData, predicateData, includeValue, flags);
571
+ listenerHandler = MapAddEntryListenerToKeyWithPredicateCodec_1.MapAddEntryListenerToKeyWithPredicateCodec.handle;
572
+ }
573
+ else if (key && !predicate) {
574
+ var keyData = this.toData(key);
575
+ codec = this.createEntryListenerToKey(this.name, keyData, includeValue, flags);
576
+ listenerHandler = MapAddEntryListenerToKeyCodec_1.MapAddEntryListenerToKeyCodec.handle;
577
+ }
578
+ else if (!key && predicate) {
579
+ var predicateData = this.toData(predicate);
580
+ codec = this.createEntryListenerWithPredicate(this.name, predicateData, includeValue, flags);
581
+ listenerHandler = MapAddEntryListenerWithPredicateCodec_1.MapAddEntryListenerWithPredicateCodec.handle;
582
+ }
583
+ else {
584
+ codec = this.createEntryListener(this.name, includeValue, flags);
585
+ listenerHandler = MapAddEntryListenerCodec_1.MapAddEntryListenerCodec.handle;
586
+ }
587
+ return this.client.getListenerService()
588
+ .registerListener(codec, function (m) {
589
+ listenerHandler(m, entryEventHandler, toObject);
590
+ });
591
+ };
592
+ MapProxy.prototype.createEntryListenerToKey = function (name, keyData, includeValue, flags) {
593
+ return {
594
+ encodeAddRequest: function (localOnly) {
595
+ return MapAddEntryListenerToKeyCodec_1.MapAddEntryListenerToKeyCodec.encodeRequest(name, keyData, includeValue, flags, localOnly);
596
+ },
597
+ decodeAddResponse: function (msg) {
598
+ return MapAddEntryListenerToKeyCodec_1.MapAddEntryListenerToKeyCodec.decodeResponse(msg).response;
599
+ },
600
+ encodeRemoveRequest: function (listenerId) {
601
+ return MapRemoveEntryListenerCodec_1.MapRemoveEntryListenerCodec.encodeRequest(name, listenerId);
602
+ },
603
+ };
604
+ };
605
+ MapProxy.prototype.createEntryListenerToKeyWithPredicate = function (name, keyData, predicateData, includeValue, flags) {
606
+ return {
607
+ encodeAddRequest: function (localOnly) {
608
+ return MapAddEntryListenerToKeyWithPredicateCodec_1.MapAddEntryListenerToKeyWithPredicateCodec.encodeRequest(name, keyData, predicateData, includeValue, flags, localOnly);
609
+ },
610
+ decodeAddResponse: function (msg) {
611
+ return MapAddEntryListenerToKeyWithPredicateCodec_1.MapAddEntryListenerToKeyWithPredicateCodec.decodeResponse(msg).response;
612
+ },
613
+ encodeRemoveRequest: function (listenerId) {
614
+ return MapRemoveEntryListenerCodec_1.MapRemoveEntryListenerCodec.encodeRequest(name, listenerId);
615
+ },
616
+ };
617
+ };
618
+ MapProxy.prototype.createEntryListenerWithPredicate = function (name, predicateData, includeValue, flags) {
619
+ return {
620
+ encodeAddRequest: function (localOnly) {
621
+ return MapAddEntryListenerWithPredicateCodec_1.MapAddEntryListenerWithPredicateCodec.encodeRequest(name, predicateData, includeValue, flags, localOnly);
622
+ },
623
+ decodeAddResponse: function (msg) {
624
+ return MapAddEntryListenerWithPredicateCodec_1.MapAddEntryListenerWithPredicateCodec.decodeResponse(msg).response;
625
+ },
626
+ encodeRemoveRequest: function (listenerId) {
627
+ return MapRemoveEntryListenerCodec_1.MapRemoveEntryListenerCodec.encodeRequest(name, listenerId);
628
+ },
629
+ };
630
+ };
631
+ MapProxy.prototype.createEntryListener = function (name, includeValue, flags) {
632
+ return {
633
+ encodeAddRequest: function (localOnly) {
634
+ return MapAddEntryListenerCodec_1.MapAddEntryListenerCodec.encodeRequest(name, includeValue, flags, localOnly);
635
+ },
636
+ decodeAddResponse: function (msg) {
637
+ return MapAddEntryListenerCodec_1.MapAddEntryListenerCodec.decodeResponse(msg).response;
638
+ },
639
+ encodeRemoveRequest: function (listenerId) {
640
+ return MapRemoveEntryListenerCodec_1.MapRemoveEntryListenerCodec.encodeRequest(name, listenerId);
641
+ },
642
+ };
643
+ };
644
+ MapProxy.prototype.checkNotPagingPredicate = function (v) {
645
+ if (v instanceof DefaultPredicates_1.PagingPredicate) {
646
+ throw new RangeError('Paging predicate is not supported.');
647
+ }
648
+ };
649
+ return MapProxy;
650
+ }(BaseProxy_1.BaseProxy));
651
+ exports.MapProxy = MapProxy;