@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.
- package/.nvmrc +1 -0
- package/CHANGELOG.md +116 -0
- package/CONFIG.md +503 -0
- package/FAILOVER_FIXES.md +284 -0
- package/LICENSE +202 -0
- package/QUICK_START.md +143 -0
- package/README.md +178 -0
- package/RELEASE_SUMMARY.md +180 -0
- package/config-schema.json +343 -0
- package/hazelcast-client-default.json +56 -0
- package/hazelcast-client-full.json +137 -0
- package/lib/Address.d.ts +17 -0
- package/lib/Address.js +65 -0
- package/lib/BitsUtil.d.ts +69 -0
- package/lib/BitsUtil.js +202 -0
- package/lib/BuildInfo.d.ts +9 -0
- package/lib/BuildInfo.js +53 -0
- package/lib/ClientInfo.d.ts +15 -0
- package/lib/ClientInfo.js +27 -0
- package/lib/ClientMessage.d.ts +52 -0
- package/lib/ClientMessage.js +217 -0
- package/lib/ClusterDataFactory.d.ts +4 -0
- package/lib/ClusterDataFactory.js +31 -0
- package/lib/ClusterDataFactoryHelper.d.ts +5 -0
- package/lib/ClusterDataFactoryHelper.js +26 -0
- package/lib/DataStoreHashMap.d.ts +20 -0
- package/lib/DataStoreHashMap.js +112 -0
- package/lib/DistributedObject.d.ts +22 -0
- package/lib/DistributedObject.js +17 -0
- package/lib/HazelcastClient.d.ts +201 -0
- package/lib/HazelcastClient.js +370 -0
- package/lib/HazelcastError.d.ts +114 -0
- package/lib/HazelcastError.js +389 -0
- package/lib/HeartbeatService.d.ts +30 -0
- package/lib/HeartbeatService.js +108 -0
- package/lib/LifecycleService.d.ts +32 -0
- package/lib/LifecycleService.js +105 -0
- package/lib/ListenerMessageCodec.d.ts +6 -0
- package/lib/ListenerMessageCodec.js +17 -0
- package/lib/ListenerService.d.ts +35 -0
- package/lib/ListenerService.js +233 -0
- package/lib/LockReferenceIdGenerator.d.ts +6 -0
- package/lib/LockReferenceIdGenerator.js +29 -0
- package/lib/PartitionService.d.ts +38 -0
- package/lib/PartitionService.js +118 -0
- package/lib/Util.d.ts +47 -0
- package/lib/Util.js +351 -0
- package/lib/aggregation/Aggregator.d.ts +74 -0
- package/lib/aggregation/Aggregator.js +277 -0
- package/lib/aggregation/AggregatorFactory.d.ts +26 -0
- package/lib/aggregation/AggregatorFactory.js +66 -0
- package/lib/aggregation/Aggregators.d.ts +96 -0
- package/lib/aggregation/Aggregators.js +149 -0
- package/lib/codec/AddressCodec.d.ts +6 -0
- package/lib/codec/AddressCodec.js +33 -0
- package/lib/codec/AtomicLongAddAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongAddAndGetCodec.js +56 -0
- package/lib/codec/AtomicLongCompareAndSetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongCompareAndSetCodec.js +58 -0
- package/lib/codec/AtomicLongDecrementAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongDecrementAndGetCodec.js +54 -0
- package/lib/codec/AtomicLongGetAndAddCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndAddCodec.js +56 -0
- package/lib/codec/AtomicLongGetAndIncrementCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndIncrementCodec.js +54 -0
- package/lib/codec/AtomicLongGetAndSetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndSetCodec.js +56 -0
- package/lib/codec/AtomicLongGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetCodec.js +54 -0
- package/lib/codec/AtomicLongIncrementAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongIncrementAndGetCodec.js +54 -0
- package/lib/codec/AtomicLongMessageType.d.ts +15 -0
- package/lib/codec/AtomicLongMessageType.js +37 -0
- package/lib/codec/AtomicLongSetCodec.d.ts +5 -0
- package/lib/codec/AtomicLongSetCodec.js +47 -0
- package/lib/codec/ClientAddDistributedObjectListenerCodec.d.ts +8 -0
- package/lib/codec/ClientAddDistributedObjectListenerCodec.js +74 -0
- package/lib/codec/ClientAddMembershipListenerCodec.d.ts +8 -0
- package/lib/codec/ClientAddMembershipListenerCodec.js +107 -0
- package/lib/codec/ClientAuthenticationCodec.d.ts +7 -0
- package/lib/codec/ClientAuthenticationCodec.js +114 -0
- package/lib/codec/ClientAuthenticationCustomCodec.d.ts +7 -0
- package/lib/codec/ClientAuthenticationCustomCodec.js +112 -0
- package/lib/codec/ClientCreateProxyCodec.d.ts +6 -0
- package/lib/codec/ClientCreateProxyCodec.js +50 -0
- package/lib/codec/ClientDestroyProxyCodec.d.ts +5 -0
- package/lib/codec/ClientDestroyProxyCodec.js +47 -0
- package/lib/codec/ClientGetDistributedObjectsCodec.d.ts +7 -0
- package/lib/codec/ClientGetDistributedObjectsCodec.js +59 -0
- package/lib/codec/ClientMessageType.d.ts +18 -0
- package/lib/codec/ClientMessageType.js +40 -0
- package/lib/codec/ClientPingCodec.d.ts +5 -0
- package/lib/codec/ClientPingCodec.js +42 -0
- package/lib/codec/ClientRemoveDistributedObjectListenerCodec.d.ts +7 -0
- package/lib/codec/ClientRemoveDistributedObjectListenerCodec.js +54 -0
- package/lib/codec/ClientStatisticsCodec.d.ts +5 -0
- package/lib/codec/ClientStatisticsCodec.js +42 -0
- package/lib/codec/DistributedObjectInfoCodec.d.ts +5 -0
- package/lib/codec/DistributedObjectInfoCodec.js +27 -0
- package/lib/codec/EntryViewCodec.d.ts +7 -0
- package/lib/codec/EntryViewCodec.js +56 -0
- package/lib/codec/FlakeIdGeneratorMessageType.d.ts +3 -0
- package/lib/codec/FlakeIdGeneratorMessageType.js +25 -0
- package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.d.ts +7 -0
- package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.js +60 -0
- package/lib/codec/GetPartitionsCodec.d.ts +9 -0
- package/lib/codec/GetPartitionsCodec.js +45 -0
- package/lib/codec/ListAddAllCodec.d.ts +7 -0
- package/lib/codec/ListAddAllCodec.js +62 -0
- package/lib/codec/ListAddAllWithIndexCodec.d.ts +7 -0
- package/lib/codec/ListAddAllWithIndexCodec.js +64 -0
- package/lib/codec/ListAddCodec.d.ts +7 -0
- package/lib/codec/ListAddCodec.js +56 -0
- package/lib/codec/ListAddListenerCodec.d.ts +8 -0
- package/lib/codec/ListAddListenerCodec.js +80 -0
- package/lib/codec/ListAddWithIndexCodec.d.ts +6 -0
- package/lib/codec/ListAddWithIndexCodec.js +49 -0
- package/lib/codec/ListClearCodec.d.ts +5 -0
- package/lib/codec/ListClearCodec.js +45 -0
- package/lib/codec/ListCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/ListCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/ListCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/ListCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/ListContainsAllCodec.d.ts +7 -0
- package/lib/codec/ListContainsAllCodec.js +62 -0
- package/lib/codec/ListContainsCodec.d.ts +7 -0
- package/lib/codec/ListContainsCodec.js +56 -0
- package/lib/codec/ListGetAllCodec.d.ts +7 -0
- package/lib/codec/ListGetAllCodec.js +61 -0
- package/lib/codec/ListGetCodec.d.ts +7 -0
- package/lib/codec/ListGetCodec.js +58 -0
- package/lib/codec/ListIndexOfCodec.d.ts +7 -0
- package/lib/codec/ListIndexOfCodec.js +56 -0
- package/lib/codec/ListIsEmptyCodec.d.ts +7 -0
- package/lib/codec/ListIsEmptyCodec.js +54 -0
- package/lib/codec/ListLastIndexOfCodec.d.ts +7 -0
- package/lib/codec/ListLastIndexOfCodec.js +56 -0
- package/lib/codec/ListMessageType.d.ts +25 -0
- package/lib/codec/ListMessageType.js +47 -0
- package/lib/codec/ListRemoveCodec.d.ts +7 -0
- package/lib/codec/ListRemoveCodec.js +56 -0
- package/lib/codec/ListRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/ListRemoveListenerCodec.js +56 -0
- package/lib/codec/ListRemoveWithIndexCodec.d.ts +7 -0
- package/lib/codec/ListRemoveWithIndexCodec.js +58 -0
- package/lib/codec/ListSetCodec.d.ts +7 -0
- package/lib/codec/ListSetCodec.js +60 -0
- package/lib/codec/ListSizeCodec.d.ts +7 -0
- package/lib/codec/ListSizeCodec.js +54 -0
- package/lib/codec/ListSubCodec.d.ts +7 -0
- package/lib/codec/ListSubCodec.js +65 -0
- package/lib/codec/LockForceUnlockCodec.d.ts +5 -0
- package/lib/codec/LockForceUnlockCodec.js +47 -0
- package/lib/codec/LockGetLockCountCodec.d.ts +7 -0
- package/lib/codec/LockGetLockCountCodec.js +54 -0
- package/lib/codec/LockGetRemainingLeaseTimeCodec.d.ts +7 -0
- package/lib/codec/LockGetRemainingLeaseTimeCodec.js +54 -0
- package/lib/codec/LockIsLockedByCurrentThreadCodec.d.ts +7 -0
- package/lib/codec/LockIsLockedByCurrentThreadCodec.js +56 -0
- package/lib/codec/LockIsLockedCodec.d.ts +7 -0
- package/lib/codec/LockIsLockedCodec.js +54 -0
- package/lib/codec/LockLockCodec.d.ts +5 -0
- package/lib/codec/LockLockCodec.js +51 -0
- package/lib/codec/LockMessageType.d.ts +10 -0
- package/lib/codec/LockMessageType.js +32 -0
- package/lib/codec/LockTryLockCodec.d.ts +7 -0
- package/lib/codec/LockTryLockCodec.js +62 -0
- package/lib/codec/LockUnlockCodec.d.ts +5 -0
- package/lib/codec/LockUnlockCodec.js +49 -0
- package/lib/codec/MapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerCodec.js +104 -0
- package/lib/codec/MapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerToKeyCodec.js +106 -0
- package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.js +108 -0
- package/lib/codec/MapAddEntryListenerWithPredicateCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerWithPredicateCodec.js +106 -0
- package/lib/codec/MapAddIndexCodec.d.ts +5 -0
- package/lib/codec/MapAddIndexCodec.js +49 -0
- package/lib/codec/MapAddNearCacheEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddNearCacheEntryListenerCodec.js +135 -0
- package/lib/codec/MapAddNearCacheInvalidationListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddNearCacheInvalidationListenerCodec.js +138 -0
- package/lib/codec/MapAggregateCodec.d.ts +7 -0
- package/lib/codec/MapAggregateCodec.js +61 -0
- package/lib/codec/MapAggregateWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapAggregateWithPredicateCodec.js +63 -0
- package/lib/codec/MapClearCodec.d.ts +5 -0
- package/lib/codec/MapClearCodec.js +45 -0
- package/lib/codec/MapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/MapContainsKeyCodec.js +58 -0
- package/lib/codec/MapContainsValueCodec.d.ts +7 -0
- package/lib/codec/MapContainsValueCodec.js +56 -0
- package/lib/codec/MapDeleteCodec.d.ts +6 -0
- package/lib/codec/MapDeleteCodec.js +49 -0
- package/lib/codec/MapEntriesWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapEntriesWithPredicateCodec.js +67 -0
- package/lib/codec/MapEntrySetCodec.d.ts +7 -0
- package/lib/codec/MapEntrySetCodec.js +65 -0
- package/lib/codec/MapEvictAllCodec.d.ts +5 -0
- package/lib/codec/MapEvictAllCodec.js +45 -0
- package/lib/codec/MapEvictCodec.d.ts +7 -0
- package/lib/codec/MapEvictCodec.js +58 -0
- package/lib/codec/MapExecuteOnAllKeysCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnAllKeysCodec.js +67 -0
- package/lib/codec/MapExecuteOnKeyCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnKeyCodec.js +62 -0
- package/lib/codec/MapExecuteOnKeysCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnKeysCodec.js +75 -0
- package/lib/codec/MapExecuteWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapExecuteWithPredicateCodec.js +69 -0
- package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.d.ts +8 -0
- package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.js +101 -0
- package/lib/codec/MapFlushCodec.d.ts +5 -0
- package/lib/codec/MapFlushCodec.js +45 -0
- package/lib/codec/MapForceUnlockCodec.d.ts +6 -0
- package/lib/codec/MapForceUnlockCodec.js +49 -0
- package/lib/codec/MapGetAllCodec.d.ts +7 -0
- package/lib/codec/MapGetAllCodec.js +73 -0
- package/lib/codec/MapGetCodec.d.ts +7 -0
- package/lib/codec/MapGetCodec.js +60 -0
- package/lib/codec/MapGetEntryViewCodec.d.ts +7 -0
- package/lib/codec/MapGetEntryViewCodec.js +61 -0
- package/lib/codec/MapIsEmptyCodec.d.ts +7 -0
- package/lib/codec/MapIsEmptyCodec.js +54 -0
- package/lib/codec/MapIsLockedCodec.d.ts +7 -0
- package/lib/codec/MapIsLockedCodec.js +56 -0
- package/lib/codec/MapKeySetCodec.d.ts +7 -0
- package/lib/codec/MapKeySetCodec.js +61 -0
- package/lib/codec/MapKeySetWithPagingPredicateCodec.d.ts +7 -0
- package/lib/codec/MapKeySetWithPagingPredicateCodec.js +63 -0
- package/lib/codec/MapKeySetWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapKeySetWithPredicateCodec.js +63 -0
- package/lib/codec/MapLoadAllCodec.d.ts +5 -0
- package/lib/codec/MapLoadAllCodec.js +47 -0
- package/lib/codec/MapLoadGivenKeysCodec.d.ts +5 -0
- package/lib/codec/MapLoadGivenKeysCodec.js +55 -0
- package/lib/codec/MapLockCodec.d.ts +6 -0
- package/lib/codec/MapLockCodec.js +53 -0
- package/lib/codec/MapMessageType.d.ts +71 -0
- package/lib/codec/MapMessageType.js +93 -0
- package/lib/codec/MapPutAllCodec.d.ts +5 -0
- package/lib/codec/MapPutAllCodec.js +59 -0
- package/lib/codec/MapPutCodec.d.ts +7 -0
- package/lib/codec/MapPutCodec.js +64 -0
- package/lib/codec/MapPutIfAbsentCodec.d.ts +7 -0
- package/lib/codec/MapPutIfAbsentCodec.js +64 -0
- package/lib/codec/MapPutTransientCodec.d.ts +6 -0
- package/lib/codec/MapPutTransientCodec.js +53 -0
- package/lib/codec/MapRemoveCodec.d.ts +7 -0
- package/lib/codec/MapRemoveCodec.js +60 -0
- package/lib/codec/MapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/MapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/MapRemoveIfSameCodec.d.ts +7 -0
- package/lib/codec/MapRemoveIfSameCodec.js +60 -0
- package/lib/codec/MapReplaceCodec.d.ts +7 -0
- package/lib/codec/MapReplaceCodec.js +62 -0
- package/lib/codec/MapReplaceIfSameCodec.d.ts +7 -0
- package/lib/codec/MapReplaceIfSameCodec.js +62 -0
- package/lib/codec/MapSetCodec.d.ts +6 -0
- package/lib/codec/MapSetCodec.js +53 -0
- package/lib/codec/MapSizeCodec.d.ts +7 -0
- package/lib/codec/MapSizeCodec.js +54 -0
- package/lib/codec/MapTryLockCodec.d.ts +7 -0
- package/lib/codec/MapTryLockCodec.js +64 -0
- package/lib/codec/MapTryPutCodec.d.ts +7 -0
- package/lib/codec/MapTryPutCodec.js +62 -0
- package/lib/codec/MapTryRemoveCodec.d.ts +7 -0
- package/lib/codec/MapTryRemoveCodec.js +60 -0
- package/lib/codec/MapUnlockCodec.d.ts +6 -0
- package/lib/codec/MapUnlockCodec.js +51 -0
- package/lib/codec/MapValuesCodec.d.ts +7 -0
- package/lib/codec/MapValuesCodec.js +61 -0
- package/lib/codec/MapValuesWithPagingPredicateCodec.d.ts +7 -0
- package/lib/codec/MapValuesWithPagingPredicateCodec.js +67 -0
- package/lib/codec/MapValuesWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapValuesWithPredicateCodec.js +63 -0
- package/lib/codec/MemberCodec.d.ts +6 -0
- package/lib/codec/MemberCodec.js +49 -0
- package/lib/codec/MultiMapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MultiMapAddEntryListenerCodec.js +102 -0
- package/lib/codec/MultiMapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/MultiMapAddEntryListenerToKeyCodec.js +104 -0
- package/lib/codec/MultiMapClearCodec.d.ts +5 -0
- package/lib/codec/MultiMapClearCodec.js +45 -0
- package/lib/codec/MultiMapContainsEntryCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsEntryCodec.js +60 -0
- package/lib/codec/MultiMapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsKeyCodec.js +58 -0
- package/lib/codec/MultiMapContainsValueCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsValueCodec.js +56 -0
- package/lib/codec/MultiMapEntrySetCodec.d.ts +7 -0
- package/lib/codec/MultiMapEntrySetCodec.js +65 -0
- package/lib/codec/MultiMapForceUnlockCodec.d.ts +6 -0
- package/lib/codec/MultiMapForceUnlockCodec.js +49 -0
- package/lib/codec/MultiMapGetCodec.d.ts +7 -0
- package/lib/codec/MultiMapGetCodec.js +65 -0
- package/lib/codec/MultiMapIsLockedCodec.d.ts +7 -0
- package/lib/codec/MultiMapIsLockedCodec.js +56 -0
- package/lib/codec/MultiMapKeySetCodec.d.ts +7 -0
- package/lib/codec/MultiMapKeySetCodec.js +61 -0
- package/lib/codec/MultiMapLockCodec.d.ts +6 -0
- package/lib/codec/MultiMapLockCodec.js +53 -0
- package/lib/codec/MultiMapMessageType.d.ts +23 -0
- package/lib/codec/MultiMapMessageType.js +45 -0
- package/lib/codec/MultiMapPutCodec.d.ts +7 -0
- package/lib/codec/MultiMapPutCodec.js +60 -0
- package/lib/codec/MultiMapRemoveCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveCodec.js +65 -0
- package/lib/codec/MultiMapRemoveEntryCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveEntryCodec.js +60 -0
- package/lib/codec/MultiMapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/MultiMapSizeCodec.d.ts +7 -0
- package/lib/codec/MultiMapSizeCodec.js +54 -0
- package/lib/codec/MultiMapTryLockCodec.d.ts +7 -0
- package/lib/codec/MultiMapTryLockCodec.js +64 -0
- package/lib/codec/MultiMapUnlockCodec.d.ts +6 -0
- package/lib/codec/MultiMapUnlockCodec.js +51 -0
- package/lib/codec/MultiMapValueCountCodec.d.ts +7 -0
- package/lib/codec/MultiMapValueCountCodec.js +58 -0
- package/lib/codec/MultiMapValuesCodec.d.ts +7 -0
- package/lib/codec/MultiMapValuesCodec.js +61 -0
- package/lib/codec/PNCounterAddCodec.d.ts +8 -0
- package/lib/codec/PNCounterAddCodec.js +90 -0
- package/lib/codec/PNCounterGetCodec.d.ts +8 -0
- package/lib/codec/PNCounterGetCodec.js +86 -0
- package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.d.ts +7 -0
- package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.js +54 -0
- package/lib/codec/PNCounterMessageType.d.ts +5 -0
- package/lib/codec/PNCounterMessageType.js +27 -0
- package/lib/codec/QueueAddAllCodec.d.ts +7 -0
- package/lib/codec/QueueAddAllCodec.js +62 -0
- package/lib/codec/QueueAddListenerCodec.d.ts +8 -0
- package/lib/codec/QueueAddListenerCodec.js +80 -0
- package/lib/codec/QueueClearCodec.d.ts +5 -0
- package/lib/codec/QueueClearCodec.js +45 -0
- package/lib/codec/QueueCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/QueueCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/QueueCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/QueueCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/QueueContainsAllCodec.d.ts +7 -0
- package/lib/codec/QueueContainsAllCodec.js +62 -0
- package/lib/codec/QueueContainsCodec.d.ts +7 -0
- package/lib/codec/QueueContainsCodec.js +56 -0
- package/lib/codec/QueueDrainToCodec.d.ts +7 -0
- package/lib/codec/QueueDrainToCodec.js +61 -0
- package/lib/codec/QueueDrainToMaxSizeCodec.d.ts +7 -0
- package/lib/codec/QueueDrainToMaxSizeCodec.js +63 -0
- package/lib/codec/QueueIsEmptyCodec.d.ts +7 -0
- package/lib/codec/QueueIsEmptyCodec.js +54 -0
- package/lib/codec/QueueIteratorCodec.d.ts +7 -0
- package/lib/codec/QueueIteratorCodec.js +61 -0
- package/lib/codec/QueueMessageType.d.ts +22 -0
- package/lib/codec/QueueMessageType.js +44 -0
- package/lib/codec/QueueOfferCodec.d.ts +7 -0
- package/lib/codec/QueueOfferCodec.js +58 -0
- package/lib/codec/QueuePeekCodec.d.ts +7 -0
- package/lib/codec/QueuePeekCodec.js +56 -0
- package/lib/codec/QueuePollCodec.d.ts +7 -0
- package/lib/codec/QueuePollCodec.js +58 -0
- package/lib/codec/QueuePutCodec.d.ts +6 -0
- package/lib/codec/QueuePutCodec.js +47 -0
- package/lib/codec/QueueRemainingCapacityCodec.d.ts +7 -0
- package/lib/codec/QueueRemainingCapacityCodec.js +54 -0
- package/lib/codec/QueueRemoveCodec.d.ts +7 -0
- package/lib/codec/QueueRemoveCodec.js +56 -0
- package/lib/codec/QueueRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/QueueRemoveListenerCodec.js +56 -0
- package/lib/codec/QueueSizeCodec.d.ts +7 -0
- package/lib/codec/QueueSizeCodec.js +54 -0
- package/lib/codec/QueueTakeCodec.d.ts +7 -0
- package/lib/codec/QueueTakeCodec.js +56 -0
- package/lib/codec/ReplicatedMapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerCodec.js +100 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.js +102 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.js +104 -0
- package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.js +102 -0
- package/lib/codec/ReplicatedMapClearCodec.d.ts +5 -0
- package/lib/codec/ReplicatedMapClearCodec.js +45 -0
- package/lib/codec/ReplicatedMapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapContainsKeyCodec.js +56 -0
- package/lib/codec/ReplicatedMapContainsValueCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapContainsValueCodec.js +56 -0
- package/lib/codec/ReplicatedMapEntrySetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapEntrySetCodec.js +65 -0
- package/lib/codec/ReplicatedMapGetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapGetCodec.js +58 -0
- package/lib/codec/ReplicatedMapIsEmptyCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapIsEmptyCodec.js +54 -0
- package/lib/codec/ReplicatedMapKeySetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapKeySetCodec.js +61 -0
- package/lib/codec/ReplicatedMapMessageType.d.ts +20 -0
- package/lib/codec/ReplicatedMapMessageType.js +42 -0
- package/lib/codec/ReplicatedMapPutAllCodec.d.ts +5 -0
- package/lib/codec/ReplicatedMapPutAllCodec.js +59 -0
- package/lib/codec/ReplicatedMapPutCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapPutCodec.js +62 -0
- package/lib/codec/ReplicatedMapRemoveCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapRemoveCodec.js +58 -0
- package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/ReplicatedMapSizeCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapSizeCodec.js +54 -0
- package/lib/codec/ReplicatedMapValuesCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapValuesCodec.js +61 -0
- package/lib/codec/RingbufferAddAllCodec.d.ts +7 -0
- package/lib/codec/RingbufferAddAllCodec.js +64 -0
- package/lib/codec/RingbufferAddCodec.d.ts +7 -0
- package/lib/codec/RingbufferAddCodec.js +58 -0
- package/lib/codec/RingbufferCapacityCodec.d.ts +7 -0
- package/lib/codec/RingbufferCapacityCodec.js +54 -0
- package/lib/codec/RingbufferHeadSequenceCodec.d.ts +7 -0
- package/lib/codec/RingbufferHeadSequenceCodec.js +54 -0
- package/lib/codec/RingbufferMessageType.d.ts +11 -0
- package/lib/codec/RingbufferMessageType.js +33 -0
- package/lib/codec/RingbufferReadManyCodec.d.ts +7 -0
- package/lib/codec/RingbufferReadManyCodec.js +92 -0
- package/lib/codec/RingbufferReadOneCodec.d.ts +7 -0
- package/lib/codec/RingbufferReadOneCodec.js +58 -0
- package/lib/codec/RingbufferRemainingCapacityCodec.d.ts +7 -0
- package/lib/codec/RingbufferRemainingCapacityCodec.js +54 -0
- package/lib/codec/RingbufferSizeCodec.d.ts +7 -0
- package/lib/codec/RingbufferSizeCodec.js +54 -0
- package/lib/codec/RingbufferTailSequenceCodec.d.ts +7 -0
- package/lib/codec/RingbufferTailSequenceCodec.js +54 -0
- package/lib/codec/SemaphoreAcquireCodec.d.ts +5 -0
- package/lib/codec/SemaphoreAcquireCodec.js +47 -0
- package/lib/codec/SemaphoreAvailablePermitsCodec.d.ts +7 -0
- package/lib/codec/SemaphoreAvailablePermitsCodec.js +54 -0
- package/lib/codec/SemaphoreDrainPermitsCodec.d.ts +7 -0
- package/lib/codec/SemaphoreDrainPermitsCodec.js +54 -0
- package/lib/codec/SemaphoreInitCodec.d.ts +7 -0
- package/lib/codec/SemaphoreInitCodec.js +56 -0
- package/lib/codec/SemaphoreMessageType.d.ts +9 -0
- package/lib/codec/SemaphoreMessageType.js +31 -0
- package/lib/codec/SemaphoreReducePermitsCodec.d.ts +5 -0
- package/lib/codec/SemaphoreReducePermitsCodec.js +47 -0
- package/lib/codec/SemaphoreReleaseCodec.d.ts +5 -0
- package/lib/codec/SemaphoreReleaseCodec.js +47 -0
- package/lib/codec/SemaphoreTryAcquireCodec.d.ts +7 -0
- package/lib/codec/SemaphoreTryAcquireCodec.js +58 -0
- package/lib/codec/SetAddAllCodec.d.ts +7 -0
- package/lib/codec/SetAddAllCodec.js +62 -0
- package/lib/codec/SetAddCodec.d.ts +7 -0
- package/lib/codec/SetAddCodec.js +56 -0
- package/lib/codec/SetAddListenerCodec.d.ts +8 -0
- package/lib/codec/SetAddListenerCodec.js +80 -0
- package/lib/codec/SetClearCodec.d.ts +5 -0
- package/lib/codec/SetClearCodec.js +45 -0
- package/lib/codec/SetCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/SetCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/SetCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/SetCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/SetContainsAllCodec.d.ts +7 -0
- package/lib/codec/SetContainsAllCodec.js +62 -0
- package/lib/codec/SetContainsCodec.d.ts +7 -0
- package/lib/codec/SetContainsCodec.js +56 -0
- package/lib/codec/SetGetAllCodec.d.ts +7 -0
- package/lib/codec/SetGetAllCodec.js +61 -0
- package/lib/codec/SetIsEmptyCodec.d.ts +7 -0
- package/lib/codec/SetIsEmptyCodec.js +54 -0
- package/lib/codec/SetMessageType.d.ts +15 -0
- package/lib/codec/SetMessageType.js +37 -0
- package/lib/codec/SetRemoveCodec.d.ts +7 -0
- package/lib/codec/SetRemoveCodec.js +56 -0
- package/lib/codec/SetRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/SetRemoveListenerCodec.js +56 -0
- package/lib/codec/SetSizeCodec.d.ts +7 -0
- package/lib/codec/SetSizeCodec.js +54 -0
- package/lib/codec/UUIDCodec.d.ts +5 -0
- package/lib/codec/UUIDCodec.js +29 -0
- package/lib/config/ClientCloudConfig.d.ts +13 -0
- package/lib/config/ClientCloudConfig.js +34 -0
- package/lib/config/ClientNetworkConfig.d.ts +43 -0
- package/lib/config/ClientNetworkConfig.js +64 -0
- package/lib/config/Config.d.ts +61 -0
- package/lib/config/Config.js +138 -0
- package/lib/config/ConfigBuilder.d.ts +26 -0
- package/lib/config/ConfigBuilder.js +322 -0
- package/lib/config/ConfigPatternMatcher.d.ts +12 -0
- package/lib/config/ConfigPatternMatcher.js +70 -0
- package/lib/config/EvictionPolicy.d.ts +9 -0
- package/lib/config/EvictionPolicy.js +27 -0
- package/lib/config/FlakeIdGeneratorConfig.d.ts +26 -0
- package/lib/config/FlakeIdGeneratorConfig.js +56 -0
- package/lib/config/GroupConfig.d.ts +14 -0
- package/lib/config/GroupConfig.js +35 -0
- package/lib/config/ImportConfig.d.ts +4 -0
- package/lib/config/ImportConfig.js +17 -0
- package/lib/config/InMemoryFormat.d.ts +10 -0
- package/lib/config/InMemoryFormat.js +28 -0
- package/lib/config/JsonConfigLocator.d.ts +16 -0
- package/lib/config/JsonConfigLocator.js +103 -0
- package/lib/config/JsonStringDeserializationPolicy.d.ts +17 -0
- package/lib/config/JsonStringDeserializationPolicy.js +35 -0
- package/lib/config/ListenerConfig.d.ts +8 -0
- package/lib/config/ListenerConfig.js +33 -0
- package/lib/config/NearCacheConfig.d.ts +25 -0
- package/lib/config/NearCacheConfig.js +59 -0
- package/lib/config/Properties.d.ts +5 -0
- package/lib/config/Properties.js +17 -0
- package/lib/config/ReliableTopicConfig.d.ts +8 -0
- package/lib/config/ReliableTopicConfig.js +38 -0
- package/lib/config/SSLConfig.d.ts +34 -0
- package/lib/config/SSLConfig.js +51 -0
- package/lib/config/SerializationConfig.d.ts +29 -0
- package/lib/config/SerializationConfig.js +38 -0
- package/lib/config/StringSerializationPolicy.d.ts +22 -0
- package/lib/config/StringSerializationPolicy.js +40 -0
- package/lib/connection/AddressProvider.d.ts +11 -0
- package/lib/connection/AddressProvider.js +17 -0
- package/lib/connection/AddressTranslator.d.ts +21 -0
- package/lib/connection/AddressTranslator.js +17 -0
- package/lib/connection/BasicSSLOptionsFactory.d.ts +14 -0
- package/lib/connection/BasicSSLOptionsFactory.js +67 -0
- package/lib/connection/DefaultAddressProvider.d.ts +15 -0
- package/lib/connection/DefaultAddressProvider.js +38 -0
- package/lib/connection/DefaultAddressTranslator.d.ts +11 -0
- package/lib/connection/DefaultAddressTranslator.js +33 -0
- package/lib/connection/SSLOptionsFactory.d.ts +7 -0
- package/lib/connection/SSLOptionsFactory.js +17 -0
- package/lib/core/Comparator.d.ts +21 -0
- package/lib/core/Comparator.js +17 -0
- package/lib/core/ConnectionHeartbeatListener.d.ts +16 -0
- package/lib/core/ConnectionHeartbeatListener.js +17 -0
- package/lib/core/DistributedObjectListener.d.ts +24 -0
- package/lib/core/DistributedObjectListener.js +30 -0
- package/lib/core/EntryListener.d.ts +51 -0
- package/lib/core/EntryListener.js +32 -0
- package/lib/core/EntryView.d.ts +16 -0
- package/lib/core/EntryView.js +23 -0
- package/lib/core/EventType.d.ts +12 -0
- package/lib/core/EventType.js +31 -0
- package/lib/core/HazelcastJsonValue.d.ts +32 -0
- package/lib/core/HazelcastJsonValue.js +56 -0
- package/lib/core/ItemListener.d.ts +38 -0
- package/lib/core/ItemListener.js +35 -0
- package/lib/core/MapListener.d.ts +29 -0
- package/lib/core/MapListener.js +29 -0
- package/lib/core/Member.d.ts +23 -0
- package/lib/core/Member.js +44 -0
- package/lib/core/MemberAttributeEvent.d.ts +37 -0
- package/lib/core/MemberAttributeEvent.js +45 -0
- package/lib/core/MemberSelector.d.ts +4 -0
- package/lib/core/MemberSelector.js +17 -0
- package/lib/core/MemberSelectors.d.ts +8 -0
- package/lib/core/MemberSelectors.js +33 -0
- package/lib/core/MembershipEvent.d.ts +20 -0
- package/lib/core/MembershipEvent.js +30 -0
- package/lib/core/MembershipListener.d.ts +22 -0
- package/lib/core/MembershipListener.js +17 -0
- package/lib/core/OverflowPolicy.d.ts +4 -0
- package/lib/core/OverflowPolicy.js +22 -0
- package/lib/core/Predicate.d.ts +28 -0
- package/lib/core/Predicate.js +113 -0
- package/lib/core/ReadOnlyLazyList.d.ts +12 -0
- package/lib/core/ReadOnlyLazyList.js +74 -0
- package/lib/core/RestValue.d.ts +15 -0
- package/lib/core/RestValue.js +51 -0
- package/lib/core/UUID.d.ts +9 -0
- package/lib/core/UUID.js +44 -0
- package/lib/core/VectorClock.d.ts +7 -0
- package/lib/core/VectorClock.js +48 -0
- package/lib/discovery/HazelcastCloudAddressProvider.d.ts +10 -0
- package/lib/discovery/HazelcastCloudAddressProvider.js +35 -0
- package/lib/discovery/HazelcastCloudAddressTranslator.d.ts +13 -0
- package/lib/discovery/HazelcastCloudAddressTranslator.js +54 -0
- package/lib/discovery/HazelcastCloudDiscovery.d.ts +25 -0
- package/lib/discovery/HazelcastCloudDiscovery.js +85 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +64 -0
- package/lib/invocation/ClientConnection.d.ts +82 -0
- package/lib/invocation/ClientConnection.js +307 -0
- package/lib/invocation/ClientConnectionManager.d.ts +56 -0
- package/lib/invocation/ClientConnectionManager.js +298 -0
- package/lib/invocation/ClientEventRegistration.d.ts +10 -0
- package/lib/invocation/ClientEventRegistration.js +30 -0
- package/lib/invocation/ClusterService.d.ts +99 -0
- package/lib/invocation/ClusterService.js +417 -0
- package/lib/invocation/ConnectionAuthenticator.d.ts +14 -0
- package/lib/invocation/ConnectionAuthenticator.js +88 -0
- package/lib/invocation/InvocationService.d.ts +138 -0
- package/lib/invocation/InvocationService.js +387 -0
- package/lib/invocation/Murmur.d.ts +2 -0
- package/lib/invocation/Murmur.js +65 -0
- package/lib/invocation/RegistrationKey.d.ts +16 -0
- package/lib/invocation/RegistrationKey.js +48 -0
- package/lib/logging/DefaultLogger.d.ts +12 -0
- package/lib/logging/DefaultLogger.js +48 -0
- package/lib/logging/ILogger.d.ts +49 -0
- package/lib/logging/ILogger.js +17 -0
- package/lib/logging/LoggingService.d.ts +16 -0
- package/lib/logging/LoggingService.js +50 -0
- package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.d.ts +10 -0
- package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.js +34 -0
- package/lib/nearcache/DataRecord.d.ts +33 -0
- package/lib/nearcache/DataRecord.js +109 -0
- package/lib/nearcache/MetadataContainer.d.ts +18 -0
- package/lib/nearcache/MetadataContainer.js +56 -0
- package/lib/nearcache/MetadataFetcher.d.ts +20 -0
- package/lib/nearcache/MetadataFetcher.js +92 -0
- package/lib/nearcache/NearCache.d.ts +89 -0
- package/lib/nearcache/NearCache.js +250 -0
- package/lib/nearcache/NearCacheManager.d.ts +13 -0
- package/lib/nearcache/NearCacheManager.js +50 -0
- package/lib/nearcache/RepairingHandler.d.ts +26 -0
- package/lib/nearcache/RepairingHandler.js +114 -0
- package/lib/nearcache/RepairingTask.d.ts +26 -0
- package/lib/nearcache/RepairingTask.js +117 -0
- package/lib/nearcache/StaleReadDetector.d.ts +7 -0
- package/lib/nearcache/StaleReadDetector.js +2 -0
- package/lib/nearcache/StaleReadDetectorImpl.d.ts +13 -0
- package/lib/nearcache/StaleReadDetectorImpl.js +35 -0
- package/lib/protocol/ClientProtocolErrorCodes.d.ts +91 -0
- package/lib/protocol/ClientProtocolErrorCodes.js +112 -0
- package/lib/protocol/ErrorCodec.d.ts +11 -0
- package/lib/protocol/ErrorCodec.js +50 -0
- package/lib/protocol/ErrorFactory.d.ts +8 -0
- package/lib/protocol/ErrorFactory.js +92 -0
- package/lib/protocol/StackTraceElementCodec.d.ts +8 -0
- package/lib/protocol/StackTraceElementCodec.js +38 -0
- package/lib/proxy/AtomicLongProxy.d.ts +17 -0
- package/lib/proxy/AtomicLongProxy.js +72 -0
- package/lib/proxy/BaseProxy.d.ts +89 -0
- package/lib/proxy/BaseProxy.js +191 -0
- package/lib/proxy/FlakeIdGenerator.d.ts +47 -0
- package/lib/proxy/FlakeIdGenerator.js +17 -0
- package/lib/proxy/FlakeIdGeneratorProxy.d.ts +13 -0
- package/lib/proxy/FlakeIdGeneratorProxy.js +48 -0
- package/lib/proxy/IAtomicLong.d.ts +16 -0
- package/lib/proxy/IAtomicLong.js +17 -0
- package/lib/proxy/IList.d.ts +132 -0
- package/lib/proxy/IList.js +17 -0
- package/lib/proxy/ILock.d.ts +54 -0
- package/lib/proxy/ILock.js +17 -0
- package/lib/proxy/IMap.d.ts +328 -0
- package/lib/proxy/IMap.js +17 -0
- package/lib/proxy/IQueue.d.ts +128 -0
- package/lib/proxy/IQueue.js +17 -0
- package/lib/proxy/ISemaphore.d.ts +53 -0
- package/lib/proxy/ISemaphore.js +17 -0
- package/lib/proxy/ISet.d.ts +89 -0
- package/lib/proxy/ISet.js +17 -0
- package/lib/proxy/ListProxy.d.ts +31 -0
- package/lib/proxy/ListProxy.js +165 -0
- package/lib/proxy/LockProxy.d.ts +16 -0
- package/lib/proxy/LockProxy.js +78 -0
- package/lib/proxy/MapProxy.d.ts +82 -0
- package/lib/proxy/MapProxy.js +651 -0
- package/lib/proxy/MultiMap.d.ts +153 -0
- package/lib/proxy/MultiMap.js +17 -0
- package/lib/proxy/MultiMapProxy.d.ts +33 -0
- package/lib/proxy/MultiMapProxy.js +238 -0
- package/lib/proxy/NearCachedMapProxy.d.ts +41 -0
- package/lib/proxy/NearCachedMapProxy.js +284 -0
- package/lib/proxy/PNCounter.d.ts +162 -0
- package/lib/proxy/PNCounter.js +17 -0
- package/lib/proxy/PNCounterProxy.d.ts +30 -0
- package/lib/proxy/PNCounterProxy.js +181 -0
- package/lib/proxy/PartitionSpecificProxy.d.ts +10 -0
- package/lib/proxy/PartitionSpecificProxy.js +52 -0
- package/lib/proxy/ProxyManager.d.ts +40 -0
- package/lib/proxy/ProxyManager.js +202 -0
- package/lib/proxy/QueueProxy.d.ts +28 -0
- package/lib/proxy/QueueProxy.js +198 -0
- package/lib/proxy/ReplicatedMap.d.ts +149 -0
- package/lib/proxy/ReplicatedMap.js +17 -0
- package/lib/proxy/ReplicatedMapProxy.d.ts +34 -0
- package/lib/proxy/ReplicatedMapProxy.js +256 -0
- package/lib/proxy/Ringbuffer.d.ts +115 -0
- package/lib/proxy/Ringbuffer.js +17 -0
- package/lib/proxy/SemaphoreProxy.d.ts +15 -0
- package/lib/proxy/SemaphoreProxy.js +73 -0
- package/lib/proxy/SetProxy.d.ts +22 -0
- package/lib/proxy/SetProxy.js +130 -0
- package/lib/proxy/flakeid/AutoBatcher.d.ts +30 -0
- package/lib/proxy/flakeid/AutoBatcher.js +104 -0
- package/lib/proxy/ringbuffer/LazyReadResultSet.d.ts +16 -0
- package/lib/proxy/ringbuffer/LazyReadResultSet.js +54 -0
- package/lib/proxy/ringbuffer/ReadResultSet.d.ts +41 -0
- package/lib/proxy/ringbuffer/ReadResultSet.js +17 -0
- package/lib/proxy/ringbuffer/RingbufferProxy.d.ts +19 -0
- package/lib/proxy/ringbuffer/RingbufferProxy.js +98 -0
- package/lib/proxy/topic/ITopic.d.ts +9 -0
- package/lib/proxy/topic/ITopic.js +17 -0
- package/lib/proxy/topic/Message.d.ts +8 -0
- package/lib/proxy/topic/Message.js +23 -0
- package/lib/proxy/topic/MessageListener.d.ts +2 -0
- package/lib/proxy/topic/MessageListener.js +2 -0
- package/lib/proxy/topic/ReliableTopicListenerRunner.d.ts +20 -0
- package/lib/proxy/topic/ReliableTopicListenerRunner.js +73 -0
- package/lib/proxy/topic/ReliableTopicMessage.d.ts +19 -0
- package/lib/proxy/topic/ReliableTopicMessage.js +53 -0
- package/lib/proxy/topic/ReliableTopicProxy.d.ts +31 -0
- package/lib/proxy/topic/ReliableTopicProxy.js +151 -0
- package/lib/proxy/topic/TopicOverloadPolicy.d.ts +23 -0
- package/lib/proxy/topic/TopicOverloadPolicy.js +41 -0
- package/lib/serialization/Data.d.ts +114 -0
- package/lib/serialization/Data.js +17 -0
- package/lib/serialization/DefaultPredicates.d.ts +131 -0
- package/lib/serialization/DefaultPredicates.js +465 -0
- package/lib/serialization/DefaultSerializer.d.ts +134 -0
- package/lib/serialization/DefaultSerializer.js +442 -0
- package/lib/serialization/HeapData.d.ts +44 -0
- package/lib/serialization/HeapData.js +104 -0
- package/lib/serialization/ObjectData.d.ts +102 -0
- package/lib/serialization/ObjectData.js +566 -0
- package/lib/serialization/PredicateFactory.d.ts +15 -0
- package/lib/serialization/PredicateFactory.js +46 -0
- package/lib/serialization/Serializable.d.ts +23 -0
- package/lib/serialization/Serializable.js +17 -0
- package/lib/serialization/SerializationService.d.ts +60 -0
- package/lib/serialization/SerializationService.js +312 -0
- package/lib/serialization/SerializationUtil.d.ts +3 -0
- package/lib/serialization/SerializationUtil.js +31 -0
- package/lib/serialization/portable/ClassDefinition.d.ts +54 -0
- package/lib/serialization/portable/ClassDefinition.js +140 -0
- package/lib/serialization/portable/ClassDefinitionBuilder.d.ts +35 -0
- package/lib/serialization/portable/ClassDefinitionBuilder.js +126 -0
- package/lib/serialization/portable/ClassDefinitionContext.d.ts +9 -0
- package/lib/serialization/portable/ClassDefinitionContext.js +51 -0
- package/lib/serialization/portable/ClassDefinitionWriter.d.ts +35 -0
- package/lib/serialization/portable/ClassDefinitionWriter.js +123 -0
- package/lib/serialization/portable/DefaultPortableReader.d.ts +43 -0
- package/lib/serialization/portable/DefaultPortableReader.js +188 -0
- package/lib/serialization/portable/DefaultPortableWriter.d.ts +37 -0
- package/lib/serialization/portable/DefaultPortableWriter.js +156 -0
- package/lib/serialization/portable/MorphingPortableReader.d.ts +31 -0
- package/lib/serialization/portable/MorphingPortableReader.js +189 -0
- package/lib/serialization/portable/PortableContext.d.ts +16 -0
- package/lib/serialization/portable/PortableContext.js +126 -0
- package/lib/serialization/portable/PortableSerializer.d.ts +68 -0
- package/lib/serialization/portable/PortableSerializer.js +94 -0
- package/lib/statistics/Statistics.d.ts +50 -0
- package/lib/statistics/Statistics.js +232 -0
- package/lib/util/ArrayComparator.d.ts +1 -0
- package/lib/util/ArrayComparator.js +17 -0
- package/lib/util/UuidUtil.d.ts +4 -0
- package/lib/util/UuidUtil.js +35 -0
- package/lib.es6.d.ts +18650 -0
- package/package.json +64 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SerializationConfig } from '../config/SerializationConfig';
|
|
2
|
+
import { Data, DataInput, DataOutput } from './Data';
|
|
3
|
+
import HazelcastClient from '../HazelcastClient';
|
|
4
|
+
export interface SerializationService {
|
|
5
|
+
toData(object: any, paritioningStrategy?: any): Data;
|
|
6
|
+
toObject(data: Data): any;
|
|
7
|
+
writeObject(out: DataOutput, object: any): void;
|
|
8
|
+
readObject(inp: DataInput): any;
|
|
9
|
+
}
|
|
10
|
+
export interface Serializer {
|
|
11
|
+
getId(): number;
|
|
12
|
+
read(input: DataInput): any;
|
|
13
|
+
write(output: DataOutput, object: any): void;
|
|
14
|
+
}
|
|
15
|
+
export declare class SerializationServiceV1 implements SerializationService {
|
|
16
|
+
private registry;
|
|
17
|
+
private serializerNameToId;
|
|
18
|
+
private numberType;
|
|
19
|
+
private serializationConfig;
|
|
20
|
+
private isStandardUTF;
|
|
21
|
+
private client;
|
|
22
|
+
constructor(client: HazelcastClient, serializationConfig: SerializationConfig);
|
|
23
|
+
isData(object: any): boolean;
|
|
24
|
+
toData(object: any, partitioningStrategy?: any): Data;
|
|
25
|
+
toObject(data: Data): any;
|
|
26
|
+
writeObject(out: DataOutput, object: any): void;
|
|
27
|
+
readObject(inp: DataInput): any;
|
|
28
|
+
registerSerializer(name: string, serializer: Serializer): void;
|
|
29
|
+
/**
|
|
30
|
+
* Serialization precedence
|
|
31
|
+
* 1. NULL
|
|
32
|
+
* 2. DataSerializable
|
|
33
|
+
* 3. Portable
|
|
34
|
+
* 4. Default Types
|
|
35
|
+
* * Byte, Boolean, Character, Short, Integer, Long, Float, Double, String
|
|
36
|
+
* * Array of [Byte, Boolean, Character, Short, Integer, Long, Float, Double, String]
|
|
37
|
+
* * Java types [Date, BigInteger, BigDecimal, Class, Enum]
|
|
38
|
+
* 5. Custom serializers
|
|
39
|
+
* 6. Global Serializer
|
|
40
|
+
* 7. Fallback (JSON)
|
|
41
|
+
* @param obj
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
findSerializerFor(obj: any): Serializer;
|
|
45
|
+
protected lookupDefaultSerializer(obj: any): Serializer;
|
|
46
|
+
protected lookupCustomSerializer(obj: any): Serializer;
|
|
47
|
+
protected lookupGlobalSerializer(): Serializer;
|
|
48
|
+
protected isIdentifiedDataSerializable(obj: any): boolean;
|
|
49
|
+
protected isPortableSerializable(obj: any): boolean;
|
|
50
|
+
protected registerDefaultSerializers(): void;
|
|
51
|
+
protected registerIdentifiedFactories(): void;
|
|
52
|
+
protected registerCustomSerializers(): void;
|
|
53
|
+
protected registerGlobalSerializer(): void;
|
|
54
|
+
protected assertValidCustomSerializer(candidate: any): void;
|
|
55
|
+
protected isCustomSerializable(object: any): boolean;
|
|
56
|
+
protected findSerializerByName(name: string, isArray: boolean): Serializer;
|
|
57
|
+
protected findSerializerById(id: number): Serializer;
|
|
58
|
+
protected calculatePartitionHash(object: any, strategy: Function): number;
|
|
59
|
+
private defaultPartitionStrategy(obj);
|
|
60
|
+
}
|
|
@@ -0,0 +1,312 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var AggregatorFactory_1 = require("../aggregation/AggregatorFactory");
|
|
19
|
+
var ClusterDataFactory_1 = require("../ClusterDataFactory");
|
|
20
|
+
var ClusterDataFactoryHelper_1 = require("../ClusterDataFactoryHelper");
|
|
21
|
+
var ReliableTopicMessage_1 = require("../proxy/topic/ReliableTopicMessage");
|
|
22
|
+
var Util = require("../Util");
|
|
23
|
+
var DefaultPredicates = require("./DefaultPredicates");
|
|
24
|
+
var DefaultSerializer_1 = require("./DefaultSerializer");
|
|
25
|
+
var HeapData_1 = require("./HeapData");
|
|
26
|
+
var ObjectData_1 = require("./ObjectData");
|
|
27
|
+
var PortableSerializer_1 = require("./portable/PortableSerializer");
|
|
28
|
+
var PredicateFactory_1 = require("./PredicateFactory");
|
|
29
|
+
var JsonStringDeserializationPolicy_1 = require("../config/JsonStringDeserializationPolicy");
|
|
30
|
+
var StringSerializationPolicy_1 = require("../config/StringSerializationPolicy");
|
|
31
|
+
var RestValue_1 = require("../core/RestValue");
|
|
32
|
+
var SerializationServiceV1 = /** @class */ (function () {
|
|
33
|
+
function SerializationServiceV1(client, serializationConfig) {
|
|
34
|
+
this.client = client;
|
|
35
|
+
this.serializationConfig = serializationConfig;
|
|
36
|
+
this.isStandardUTF = this.serializationConfig.stringSerializationPolicy === StringSerializationPolicy_1.StringSerializationPolicy.STANDARD;
|
|
37
|
+
this.registry = {};
|
|
38
|
+
this.serializerNameToId = {};
|
|
39
|
+
this.registerDefaultSerializers();
|
|
40
|
+
this.registerCustomSerializers();
|
|
41
|
+
this.registerGlobalSerializer();
|
|
42
|
+
}
|
|
43
|
+
SerializationServiceV1.prototype.isData = function (object) {
|
|
44
|
+
if (object instanceof HeapData_1.HeapData) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
SerializationServiceV1.prototype.toData = function (object, partitioningStrategy) {
|
|
52
|
+
if (partitioningStrategy === void 0) { partitioningStrategy = this.defaultPartitionStrategy; }
|
|
53
|
+
if (this.isData(object)) {
|
|
54
|
+
return object;
|
|
55
|
+
}
|
|
56
|
+
var dataOutput = new ObjectData_1.PositionalObjectDataOutput(this, this.serializationConfig.isBigEndian, this.isStandardUTF);
|
|
57
|
+
var serializer = this.findSerializerFor(object);
|
|
58
|
+
// Check if object is partition aware
|
|
59
|
+
if (object != null && object.getPartitionKey) {
|
|
60
|
+
var partitionKey = object.getPartitionKey();
|
|
61
|
+
var serializedPartitionKey = this.toData(partitionKey);
|
|
62
|
+
dataOutput.writeIntBE(this.calculatePartitionHash(serializedPartitionKey, partitioningStrategy));
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
dataOutput.writeIntBE(this.calculatePartitionHash(object, partitioningStrategy));
|
|
66
|
+
}
|
|
67
|
+
dataOutput.writeIntBE(serializer.getId());
|
|
68
|
+
serializer.write(dataOutput, object);
|
|
69
|
+
return new HeapData_1.HeapData(dataOutput.toBuffer());
|
|
70
|
+
};
|
|
71
|
+
SerializationServiceV1.prototype.toObject = function (data) {
|
|
72
|
+
if (data == null) {
|
|
73
|
+
return data;
|
|
74
|
+
}
|
|
75
|
+
if (!data.getType) {
|
|
76
|
+
return data;
|
|
77
|
+
}
|
|
78
|
+
var serializer = this.findSerializerById(data.getType());
|
|
79
|
+
var dataInput = new ObjectData_1.ObjectDataInput(data.toBuffer(), HeapData_1.DATA_OFFSET, this, this.serializationConfig.isBigEndian, this.isStandardUTF);
|
|
80
|
+
return serializer.read(dataInput);
|
|
81
|
+
};
|
|
82
|
+
SerializationServiceV1.prototype.writeObject = function (out, object) {
|
|
83
|
+
var serializer = this.findSerializerFor(object);
|
|
84
|
+
out.writeInt(serializer.getId());
|
|
85
|
+
serializer.write(out, object);
|
|
86
|
+
};
|
|
87
|
+
SerializationServiceV1.prototype.readObject = function (inp) {
|
|
88
|
+
var serializerId = inp.readInt();
|
|
89
|
+
var serializer = this.findSerializerById(serializerId);
|
|
90
|
+
return serializer.read(inp);
|
|
91
|
+
};
|
|
92
|
+
SerializationServiceV1.prototype.registerSerializer = function (name, serializer) {
|
|
93
|
+
if (this.serializerNameToId[name]) {
|
|
94
|
+
throw new RangeError('Given serializer name is already in the registry.');
|
|
95
|
+
}
|
|
96
|
+
if (this.registry[serializer.getId()]) {
|
|
97
|
+
throw new RangeError('Given serializer id is already in the registry.');
|
|
98
|
+
}
|
|
99
|
+
this.serializerNameToId[name] = serializer.getId();
|
|
100
|
+
this.registry[serializer.getId()] = serializer;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Serialization precedence
|
|
104
|
+
* 1. NULL
|
|
105
|
+
* 2. DataSerializable
|
|
106
|
+
* 3. Portable
|
|
107
|
+
* 4. Default Types
|
|
108
|
+
* * Byte, Boolean, Character, Short, Integer, Long, Float, Double, String
|
|
109
|
+
* * Array of [Byte, Boolean, Character, Short, Integer, Long, Float, Double, String]
|
|
110
|
+
* * Java types [Date, BigInteger, BigDecimal, Class, Enum]
|
|
111
|
+
* 5. Custom serializers
|
|
112
|
+
* 6. Global Serializer
|
|
113
|
+
* 7. Fallback (JSON)
|
|
114
|
+
* @param obj
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
SerializationServiceV1.prototype.findSerializerFor = function (obj) {
|
|
118
|
+
if (obj === undefined) {
|
|
119
|
+
throw new RangeError('undefined cannot be serialized.');
|
|
120
|
+
}
|
|
121
|
+
var serializer = null;
|
|
122
|
+
if (obj === null) {
|
|
123
|
+
serializer = this.findSerializerByName('null', false);
|
|
124
|
+
}
|
|
125
|
+
if (serializer === null) {
|
|
126
|
+
serializer = this.lookupDefaultSerializer(obj);
|
|
127
|
+
}
|
|
128
|
+
if (serializer === null) {
|
|
129
|
+
serializer = this.lookupCustomSerializer(obj);
|
|
130
|
+
}
|
|
131
|
+
if (serializer === null) {
|
|
132
|
+
serializer = this.lookupGlobalSerializer();
|
|
133
|
+
}
|
|
134
|
+
if (serializer === null) {
|
|
135
|
+
serializer = this.findSerializerByName('!json', false);
|
|
136
|
+
}
|
|
137
|
+
if (serializer === null) {
|
|
138
|
+
throw new RangeError('There is no suitable serializer for ' + obj + '.');
|
|
139
|
+
}
|
|
140
|
+
return serializer;
|
|
141
|
+
};
|
|
142
|
+
SerializationServiceV1.prototype.lookupDefaultSerializer = function (obj) {
|
|
143
|
+
var serializer = null;
|
|
144
|
+
if (this.isIdentifiedDataSerializable(obj)) {
|
|
145
|
+
return this.findSerializerByName('identified', false);
|
|
146
|
+
}
|
|
147
|
+
if (this.isPortableSerializable(obj)) {
|
|
148
|
+
return this.findSerializerByName('!portable', false);
|
|
149
|
+
}
|
|
150
|
+
var objectType = Util.getType(obj);
|
|
151
|
+
if (objectType === 'array') {
|
|
152
|
+
if (obj.length === 0) {
|
|
153
|
+
serializer = this.findSerializerByName('number', true);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
serializer = this.findSerializerByName(Util.getType(obj[0]), true);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
serializer = this.findSerializerByName(objectType, false);
|
|
161
|
+
}
|
|
162
|
+
return serializer;
|
|
163
|
+
};
|
|
164
|
+
SerializationServiceV1.prototype.lookupCustomSerializer = function (obj) {
|
|
165
|
+
if (this.isCustomSerializable(obj)) {
|
|
166
|
+
return this.findSerializerById(obj.hzGetCustomId());
|
|
167
|
+
}
|
|
168
|
+
return null;
|
|
169
|
+
};
|
|
170
|
+
SerializationServiceV1.prototype.lookupGlobalSerializer = function () {
|
|
171
|
+
return this.findSerializerByName('!global', false);
|
|
172
|
+
};
|
|
173
|
+
SerializationServiceV1.prototype.isIdentifiedDataSerializable = function (obj) {
|
|
174
|
+
return (obj.readData && obj.writeData && obj.getClassId && obj.getFactoryId);
|
|
175
|
+
};
|
|
176
|
+
SerializationServiceV1.prototype.isPortableSerializable = function (obj) {
|
|
177
|
+
return (obj.readPortable && obj.writePortable && obj.getFactoryId && obj.getClassId);
|
|
178
|
+
};
|
|
179
|
+
SerializationServiceV1.prototype.registerDefaultSerializers = function () {
|
|
180
|
+
this.registerSerializer('string', new DefaultSerializer_1.StringSerializer());
|
|
181
|
+
this.registerSerializer('double', new DefaultSerializer_1.DoubleSerializer());
|
|
182
|
+
this.registerSerializer('byte', new DefaultSerializer_1.ByteSerializer());
|
|
183
|
+
this.registerSerializer('boolean', new DefaultSerializer_1.BooleanSerializer());
|
|
184
|
+
this.registerSerializer('null', new DefaultSerializer_1.NullSerializer());
|
|
185
|
+
this.registerSerializer('short', new DefaultSerializer_1.ShortSerializer());
|
|
186
|
+
this.registerSerializer('integer', new DefaultSerializer_1.IntegerSerializer());
|
|
187
|
+
this.registerSerializer('long', new DefaultSerializer_1.LongSerializer());
|
|
188
|
+
this.registerSerializer('float', new DefaultSerializer_1.FloatSerializer());
|
|
189
|
+
this.registerSerializer('char', new DefaultSerializer_1.CharSerializer());
|
|
190
|
+
this.registerSerializer('date', new DefaultSerializer_1.DateSerializer());
|
|
191
|
+
this.registerSerializer('byteArray', new DefaultSerializer_1.ByteArraySerializer());
|
|
192
|
+
this.registerSerializer('charArray', new DefaultSerializer_1.CharArraySerializer());
|
|
193
|
+
this.registerSerializer('booleanArray', new DefaultSerializer_1.BooleanArraySerializer());
|
|
194
|
+
this.registerSerializer('shortArray', new DefaultSerializer_1.ShortArraySerializer());
|
|
195
|
+
this.registerSerializer('integerArray', new DefaultSerializer_1.IntegerArraySerializer());
|
|
196
|
+
this.registerSerializer('longArray', new DefaultSerializer_1.LongArraySerializer());
|
|
197
|
+
this.registerSerializer('doubleArray', new DefaultSerializer_1.DoubleArraySerializer());
|
|
198
|
+
this.registerSerializer('stringArray', new DefaultSerializer_1.StringArraySerializer());
|
|
199
|
+
this.registerSerializer('javaClass', new DefaultSerializer_1.JavaClassSerializer());
|
|
200
|
+
this.registerSerializer('floatArray', new DefaultSerializer_1.FloatArraySerializer());
|
|
201
|
+
this.registerIdentifiedFactories();
|
|
202
|
+
this.registerSerializer('!portable', new PortableSerializer_1.PortableSerializer(this, this.serializationConfig));
|
|
203
|
+
if (this.serializationConfig.jsonStringDeserializationPolicy === JsonStringDeserializationPolicy_1.JsonStringDeserializationPolicy.EAGER) {
|
|
204
|
+
this.registerSerializer('!json', new DefaultSerializer_1.JsonSerializer());
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
this.registerSerializer('!json', new DefaultSerializer_1.HazelcastJsonValueSerializer());
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
SerializationServiceV1.prototype.registerIdentifiedFactories = function () {
|
|
211
|
+
var factories = {};
|
|
212
|
+
for (var id in this.serializationConfig.dataSerializableFactories) {
|
|
213
|
+
factories[id] = this.serializationConfig.dataSerializableFactories[id];
|
|
214
|
+
}
|
|
215
|
+
var factoryConfigs = this.serializationConfig.dataSerializableFactoryConfigs;
|
|
216
|
+
for (var id in factoryConfigs) {
|
|
217
|
+
var path = factoryConfigs[id].path;
|
|
218
|
+
var exportedName = factoryConfigs[id].exportedName;
|
|
219
|
+
var factoryConstructor = Util.loadNameFromPath(path, exportedName);
|
|
220
|
+
factories[id] = new factoryConstructor();
|
|
221
|
+
}
|
|
222
|
+
factories[PredicateFactory_1.PREDICATE_FACTORY_ID] = new PredicateFactory_1.PredicateFactory(DefaultPredicates);
|
|
223
|
+
factories[ReliableTopicMessage_1.RELIABLE_TOPIC_MESSAGE_FACTORY_ID] = new ReliableTopicMessage_1.ReliableTopicMessageFactory();
|
|
224
|
+
factories[ClusterDataFactoryHelper_1.ClusterDataFactoryHelper.FACTORY_ID] = new ClusterDataFactory_1.ClusterDataFactory();
|
|
225
|
+
factories[AggregatorFactory_1.AggregatorFactory.FACTORY_ID] = new AggregatorFactory_1.AggregatorFactory();
|
|
226
|
+
factories[RestValue_1.REST_VALUE_FACTORY_ID] = new RestValue_1.RestValueFactory();
|
|
227
|
+
this.registerSerializer('identified', new DefaultSerializer_1.IdentifiedDataSerializableSerializer(factories));
|
|
228
|
+
};
|
|
229
|
+
SerializationServiceV1.prototype.registerCustomSerializers = function () {
|
|
230
|
+
var customSerializersArray = this.serializationConfig.customSerializers;
|
|
231
|
+
var self = this;
|
|
232
|
+
customSerializersArray.forEach(function (candidate) {
|
|
233
|
+
self.assertValidCustomSerializer(candidate);
|
|
234
|
+
self.registerSerializer('!custom' + candidate.getId(), candidate);
|
|
235
|
+
});
|
|
236
|
+
var customSerializerConfigs = this.serializationConfig.customSerializerConfigs;
|
|
237
|
+
for (var typeId in customSerializerConfigs) {
|
|
238
|
+
var serializerConfig = customSerializerConfigs[typeId];
|
|
239
|
+
var customSerializer = new (Util.loadNameFromPath(serializerConfig.path, serializerConfig.exportedName))();
|
|
240
|
+
this.registerSerializer('!custom' + typeId, customSerializer);
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
SerializationServiceV1.prototype.registerGlobalSerializer = function () {
|
|
244
|
+
var candidate = null;
|
|
245
|
+
if (this.serializationConfig.globalSerializerConfig != null) {
|
|
246
|
+
var exportedName = this.serializationConfig.globalSerializerConfig.exportedName;
|
|
247
|
+
var path = this.serializationConfig.globalSerializerConfig.path;
|
|
248
|
+
var serializerFactory = Util.loadNameFromPath(path, exportedName);
|
|
249
|
+
candidate = new serializerFactory();
|
|
250
|
+
}
|
|
251
|
+
if (candidate == null) {
|
|
252
|
+
candidate = this.serializationConfig.globalSerializer;
|
|
253
|
+
}
|
|
254
|
+
if (candidate == null) {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
this.assertValidCustomSerializer(candidate);
|
|
258
|
+
this.registerSerializer('!global', candidate);
|
|
259
|
+
};
|
|
260
|
+
SerializationServiceV1.prototype.assertValidCustomSerializer = function (candidate) {
|
|
261
|
+
var fGetId = 'getId';
|
|
262
|
+
var fRead = 'read';
|
|
263
|
+
var fWrite = 'write';
|
|
264
|
+
if (typeof candidate[fGetId] !== 'function' ||
|
|
265
|
+
typeof candidate[fRead] !== 'function' ||
|
|
266
|
+
typeof candidate[fWrite] !== 'function') {
|
|
267
|
+
throw new TypeError('Custom serializer should have ' + fGetId + ', ' + fRead + ' and ' + fWrite + ' methods.');
|
|
268
|
+
}
|
|
269
|
+
var typeId = candidate[fGetId]();
|
|
270
|
+
if (!Number.isInteger(typeId) || typeId < 1) {
|
|
271
|
+
throw new TypeError('Custom serializer should have its typeId greater than or equal to 1.');
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
SerializationServiceV1.prototype.isCustomSerializable = function (object) {
|
|
275
|
+
var prop = 'hzGetCustomId';
|
|
276
|
+
return (object[prop] && typeof object[prop] === 'function' && object[prop]() >= 1);
|
|
277
|
+
};
|
|
278
|
+
SerializationServiceV1.prototype.findSerializerByName = function (name, isArray) {
|
|
279
|
+
var convertedName;
|
|
280
|
+
if (name === 'number') {
|
|
281
|
+
convertedName = this.serializationConfig.defaultNumberType;
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
convertedName = name;
|
|
285
|
+
}
|
|
286
|
+
var serializerName = convertedName + (isArray ? 'Array' : '');
|
|
287
|
+
var serializerId = this.serializerNameToId[serializerName];
|
|
288
|
+
if (serializerId == null) {
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
return this.findSerializerById(serializerId);
|
|
292
|
+
};
|
|
293
|
+
SerializationServiceV1.prototype.findSerializerById = function (id) {
|
|
294
|
+
var serializer = this.registry[id];
|
|
295
|
+
return serializer;
|
|
296
|
+
};
|
|
297
|
+
SerializationServiceV1.prototype.calculatePartitionHash = function (object, strategy) {
|
|
298
|
+
return strategy(object);
|
|
299
|
+
};
|
|
300
|
+
SerializationServiceV1.prototype.defaultPartitionStrategy = function (obj) {
|
|
301
|
+
/* tslint:disable:no-string-literal */
|
|
302
|
+
if (obj == null || !obj['getPartitionHash']) {
|
|
303
|
+
/* tslint:enable:no-string-literal */
|
|
304
|
+
return 0;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return obj.getPartitionHash();
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
return SerializationServiceV1;
|
|
311
|
+
}());
|
|
312
|
+
exports.SerializationServiceV1 = SerializationServiceV1;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
function deserializeEntryList(toObject, entrySet) {
|
|
19
|
+
var deserializedSet = [];
|
|
20
|
+
entrySet.forEach(function (entry) {
|
|
21
|
+
deserializedSet.push([toObject(entry[0]), toObject(entry[1])]);
|
|
22
|
+
});
|
|
23
|
+
return deserializedSet;
|
|
24
|
+
}
|
|
25
|
+
exports.deserializeEntryList = deserializeEntryList;
|
|
26
|
+
function serializeList(toData, input) {
|
|
27
|
+
return input.map(function (each) {
|
|
28
|
+
return toData(each);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
exports.serializeList = serializeList;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare class ClassDefinition {
|
|
2
|
+
private factoryId;
|
|
3
|
+
private classId;
|
|
4
|
+
private version;
|
|
5
|
+
private fields;
|
|
6
|
+
constructor(factoryId: number, classId: number, version: number);
|
|
7
|
+
addFieldDefinition(definition: FieldDefinition): void;
|
|
8
|
+
getFieldCount(): number;
|
|
9
|
+
getFactoryId(): number;
|
|
10
|
+
getClassId(): number;
|
|
11
|
+
getVersion(): number;
|
|
12
|
+
getFieldType(name: string): FieldType;
|
|
13
|
+
hasField(name: string): boolean;
|
|
14
|
+
getField(name: string): FieldDefinition;
|
|
15
|
+
getFieldById(index: number): FieldDefinition;
|
|
16
|
+
equals(o: ClassDefinition): boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare class FieldDefinition {
|
|
19
|
+
private readonly index;
|
|
20
|
+
private readonly fieldName;
|
|
21
|
+
private readonly type;
|
|
22
|
+
private readonly factoryId;
|
|
23
|
+
private readonly classId;
|
|
24
|
+
private readonly version;
|
|
25
|
+
constructor(index: number, fieldName: string, type: FieldType, version: number, factoryId?: number, classId?: number);
|
|
26
|
+
getType(): FieldType;
|
|
27
|
+
getName(): string;
|
|
28
|
+
getIndex(): number;
|
|
29
|
+
getClassId(): number;
|
|
30
|
+
getFactoryId(): number;
|
|
31
|
+
getVersion(): number;
|
|
32
|
+
}
|
|
33
|
+
export declare enum FieldType {
|
|
34
|
+
PORTABLE = 0,
|
|
35
|
+
BYTE = 1,
|
|
36
|
+
BOOLEAN = 2,
|
|
37
|
+
CHAR = 3,
|
|
38
|
+
SHORT = 4,
|
|
39
|
+
INT = 5,
|
|
40
|
+
LONG = 6,
|
|
41
|
+
FLOAT = 7,
|
|
42
|
+
DOUBLE = 8,
|
|
43
|
+
UTF = 9,
|
|
44
|
+
PORTABLE_ARRAY = 10,
|
|
45
|
+
BYTE_ARRAY = 11,
|
|
46
|
+
BOOLEAN_ARRAY = 12,
|
|
47
|
+
CHAR_ARRAY = 13,
|
|
48
|
+
SHORT_ARRAY = 14,
|
|
49
|
+
INT_ARRAY = 15,
|
|
50
|
+
LONG_ARRAY = 16,
|
|
51
|
+
FLOAT_ARRAY = 17,
|
|
52
|
+
DOUBLE_ARRAY = 18,
|
|
53
|
+
UTF_ARRAY = 19,
|
|
54
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var assert_1 = require("assert");
|
|
19
|
+
var ClassDefinition = /** @class */ (function () {
|
|
20
|
+
function ClassDefinition(factoryId, classId, version) {
|
|
21
|
+
this.fields = {};
|
|
22
|
+
this.factoryId = factoryId;
|
|
23
|
+
this.classId = classId;
|
|
24
|
+
this.version = version;
|
|
25
|
+
}
|
|
26
|
+
ClassDefinition.prototype.addFieldDefinition = function (definition) {
|
|
27
|
+
this.fields[definition.getName()] = definition;
|
|
28
|
+
};
|
|
29
|
+
ClassDefinition.prototype.getFieldCount = function () {
|
|
30
|
+
return Object.keys(this.fields).length;
|
|
31
|
+
};
|
|
32
|
+
ClassDefinition.prototype.getFactoryId = function () {
|
|
33
|
+
return this.factoryId;
|
|
34
|
+
};
|
|
35
|
+
ClassDefinition.prototype.getClassId = function () {
|
|
36
|
+
return this.classId;
|
|
37
|
+
};
|
|
38
|
+
ClassDefinition.prototype.getVersion = function () {
|
|
39
|
+
return this.version;
|
|
40
|
+
};
|
|
41
|
+
ClassDefinition.prototype.getFieldType = function (name) {
|
|
42
|
+
var field = this.fields[name];
|
|
43
|
+
if (field != null) {
|
|
44
|
+
return field.getType();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
throw new RangeError("Field " + field + " does not exist.");
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
ClassDefinition.prototype.hasField = function (name) {
|
|
51
|
+
return this.fields[name] != null;
|
|
52
|
+
};
|
|
53
|
+
ClassDefinition.prototype.getField = function (name) {
|
|
54
|
+
var field = this.fields[name];
|
|
55
|
+
return field || null;
|
|
56
|
+
};
|
|
57
|
+
ClassDefinition.prototype.getFieldById = function (index) {
|
|
58
|
+
if (!Number.isInteger(index) || index < 0 || index >= this.getFieldCount()) {
|
|
59
|
+
throw new RangeError("Index: " + index + ", fields count: " + this.getFieldCount() + ".");
|
|
60
|
+
}
|
|
61
|
+
for (var fieldName in this.fields) {
|
|
62
|
+
if (this.fields[fieldName].getIndex() === index) {
|
|
63
|
+
return this.fields[fieldName];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
throw new RangeError("There is no field with index " + index);
|
|
67
|
+
};
|
|
68
|
+
ClassDefinition.prototype.equals = function (o) {
|
|
69
|
+
if (!(o instanceof ClassDefinition)) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
if (o.factoryId !== this.factoryId || o.classId !== this.classId || o.version !== this.version) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
try {
|
|
76
|
+
assert_1.deepEqual(o.fields, this.fields);
|
|
77
|
+
}
|
|
78
|
+
catch (e) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return true;
|
|
82
|
+
};
|
|
83
|
+
return ClassDefinition;
|
|
84
|
+
}());
|
|
85
|
+
exports.ClassDefinition = ClassDefinition;
|
|
86
|
+
var FieldDefinition = /** @class */ (function () {
|
|
87
|
+
function FieldDefinition(index, fieldName, type, version, factoryId, classId) {
|
|
88
|
+
if (factoryId === void 0) { factoryId = 0; }
|
|
89
|
+
if (classId === void 0) { classId = 0; }
|
|
90
|
+
this.index = index;
|
|
91
|
+
this.fieldName = fieldName;
|
|
92
|
+
this.type = type;
|
|
93
|
+
this.factoryId = factoryId;
|
|
94
|
+
this.classId = classId;
|
|
95
|
+
this.version = version;
|
|
96
|
+
}
|
|
97
|
+
FieldDefinition.prototype.getType = function () {
|
|
98
|
+
return this.type;
|
|
99
|
+
};
|
|
100
|
+
FieldDefinition.prototype.getName = function () {
|
|
101
|
+
return this.fieldName;
|
|
102
|
+
};
|
|
103
|
+
FieldDefinition.prototype.getIndex = function () {
|
|
104
|
+
return this.index;
|
|
105
|
+
};
|
|
106
|
+
FieldDefinition.prototype.getClassId = function () {
|
|
107
|
+
return this.classId;
|
|
108
|
+
};
|
|
109
|
+
FieldDefinition.prototype.getFactoryId = function () {
|
|
110
|
+
return this.factoryId;
|
|
111
|
+
};
|
|
112
|
+
FieldDefinition.prototype.getVersion = function () {
|
|
113
|
+
return this.version;
|
|
114
|
+
};
|
|
115
|
+
return FieldDefinition;
|
|
116
|
+
}());
|
|
117
|
+
exports.FieldDefinition = FieldDefinition;
|
|
118
|
+
var FieldType;
|
|
119
|
+
(function (FieldType) {
|
|
120
|
+
FieldType[FieldType["PORTABLE"] = 0] = "PORTABLE";
|
|
121
|
+
FieldType[FieldType["BYTE"] = 1] = "BYTE";
|
|
122
|
+
FieldType[FieldType["BOOLEAN"] = 2] = "BOOLEAN";
|
|
123
|
+
FieldType[FieldType["CHAR"] = 3] = "CHAR";
|
|
124
|
+
FieldType[FieldType["SHORT"] = 4] = "SHORT";
|
|
125
|
+
FieldType[FieldType["INT"] = 5] = "INT";
|
|
126
|
+
FieldType[FieldType["LONG"] = 6] = "LONG";
|
|
127
|
+
FieldType[FieldType["FLOAT"] = 7] = "FLOAT";
|
|
128
|
+
FieldType[FieldType["DOUBLE"] = 8] = "DOUBLE";
|
|
129
|
+
FieldType[FieldType["UTF"] = 9] = "UTF";
|
|
130
|
+
FieldType[FieldType["PORTABLE_ARRAY"] = 10] = "PORTABLE_ARRAY";
|
|
131
|
+
FieldType[FieldType["BYTE_ARRAY"] = 11] = "BYTE_ARRAY";
|
|
132
|
+
FieldType[FieldType["BOOLEAN_ARRAY"] = 12] = "BOOLEAN_ARRAY";
|
|
133
|
+
FieldType[FieldType["CHAR_ARRAY"] = 13] = "CHAR_ARRAY";
|
|
134
|
+
FieldType[FieldType["SHORT_ARRAY"] = 14] = "SHORT_ARRAY";
|
|
135
|
+
FieldType[FieldType["INT_ARRAY"] = 15] = "INT_ARRAY";
|
|
136
|
+
FieldType[FieldType["LONG_ARRAY"] = 16] = "LONG_ARRAY";
|
|
137
|
+
FieldType[FieldType["FLOAT_ARRAY"] = 17] = "FLOAT_ARRAY";
|
|
138
|
+
FieldType[FieldType["DOUBLE_ARRAY"] = 18] = "DOUBLE_ARRAY";
|
|
139
|
+
FieldType[FieldType["UTF_ARRAY"] = 19] = "UTF_ARRAY";
|
|
140
|
+
})(FieldType = exports.FieldType || (exports.FieldType = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ClassDefinition, FieldDefinition } from './ClassDefinition';
|
|
2
|
+
export declare class ClassDefinitionBuilder {
|
|
3
|
+
private readonly factoryId;
|
|
4
|
+
private readonly classId;
|
|
5
|
+
private readonly version;
|
|
6
|
+
private fieldDefinitions;
|
|
7
|
+
private index;
|
|
8
|
+
private done;
|
|
9
|
+
constructor(factoryId: number, classId: number, version?: number);
|
|
10
|
+
getFactoryId(): number;
|
|
11
|
+
getClassId(): number;
|
|
12
|
+
getVersion(): number;
|
|
13
|
+
addByteField(fieldName: string): ClassDefinitionBuilder;
|
|
14
|
+
addBooleanField(fieldName: string): ClassDefinitionBuilder;
|
|
15
|
+
addCharField(fieldName: string): ClassDefinitionBuilder;
|
|
16
|
+
addShortField(fieldName: string): ClassDefinitionBuilder;
|
|
17
|
+
addIntField(fieldName: string): ClassDefinitionBuilder;
|
|
18
|
+
addLongField(fieldName: string): ClassDefinitionBuilder;
|
|
19
|
+
addFloatField(fieldName: string): ClassDefinitionBuilder;
|
|
20
|
+
addDoubleField(fieldName: string): ClassDefinitionBuilder;
|
|
21
|
+
addUTFField(fieldName: string): ClassDefinitionBuilder;
|
|
22
|
+
addPortableField(fieldName: string, def: ClassDefinition): ClassDefinitionBuilder;
|
|
23
|
+
addByteArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
24
|
+
addBooleanArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
25
|
+
addCharArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
26
|
+
addShortArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
27
|
+
addIntArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
28
|
+
addLongArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
29
|
+
addFloatArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
30
|
+
addDoubleArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
31
|
+
addUTFArrayField(fieldName: string): ClassDefinitionBuilder;
|
|
32
|
+
addPortableArrayField(fieldName: string, def: ClassDefinition): ClassDefinitionBuilder;
|
|
33
|
+
addField(fieldDefinition: FieldDefinition): ClassDefinitionBuilder;
|
|
34
|
+
build(): ClassDefinition;
|
|
35
|
+
}
|