@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,126 @@
|
|
|
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 ClassDefinition_1 = require("./ClassDefinition");
|
|
19
|
+
var HazelcastError_1 = require("../../HazelcastError");
|
|
20
|
+
var ClassDefinitionBuilder = /** @class */ (function () {
|
|
21
|
+
function ClassDefinitionBuilder(factoryId, classId, version) {
|
|
22
|
+
if (version === void 0) { version = 0; }
|
|
23
|
+
this.fieldDefinitions = [];
|
|
24
|
+
this.index = 0;
|
|
25
|
+
this.factoryId = factoryId;
|
|
26
|
+
this.classId = classId;
|
|
27
|
+
this.version = version;
|
|
28
|
+
}
|
|
29
|
+
ClassDefinitionBuilder.prototype.getFactoryId = function () {
|
|
30
|
+
return this.factoryId;
|
|
31
|
+
};
|
|
32
|
+
ClassDefinitionBuilder.prototype.getClassId = function () {
|
|
33
|
+
return this.classId;
|
|
34
|
+
};
|
|
35
|
+
ClassDefinitionBuilder.prototype.getVersion = function () {
|
|
36
|
+
return this.version;
|
|
37
|
+
};
|
|
38
|
+
ClassDefinitionBuilder.prototype.addByteField = function (fieldName) {
|
|
39
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.BYTE, this.version));
|
|
40
|
+
};
|
|
41
|
+
ClassDefinitionBuilder.prototype.addBooleanField = function (fieldName) {
|
|
42
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.BOOLEAN, this.version));
|
|
43
|
+
};
|
|
44
|
+
ClassDefinitionBuilder.prototype.addCharField = function (fieldName) {
|
|
45
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.CHAR, this.version));
|
|
46
|
+
};
|
|
47
|
+
ClassDefinitionBuilder.prototype.addShortField = function (fieldName) {
|
|
48
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.SHORT, this.version));
|
|
49
|
+
};
|
|
50
|
+
ClassDefinitionBuilder.prototype.addIntField = function (fieldName) {
|
|
51
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.INT, this.version));
|
|
52
|
+
};
|
|
53
|
+
ClassDefinitionBuilder.prototype.addLongField = function (fieldName) {
|
|
54
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.LONG, this.version));
|
|
55
|
+
};
|
|
56
|
+
ClassDefinitionBuilder.prototype.addFloatField = function (fieldName) {
|
|
57
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.FLOAT, this.version));
|
|
58
|
+
};
|
|
59
|
+
ClassDefinitionBuilder.prototype.addDoubleField = function (fieldName) {
|
|
60
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.DOUBLE, this.version));
|
|
61
|
+
};
|
|
62
|
+
ClassDefinitionBuilder.prototype.addUTFField = function (fieldName) {
|
|
63
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.UTF, this.version));
|
|
64
|
+
};
|
|
65
|
+
ClassDefinitionBuilder.prototype.addPortableField = function (fieldName, def) {
|
|
66
|
+
if (def.getClassId() === 0) {
|
|
67
|
+
throw new RangeError('Portable class ID cannot be zero!');
|
|
68
|
+
}
|
|
69
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.PORTABLE, def.getVersion(), def.getFactoryId(), def.getClassId()));
|
|
70
|
+
};
|
|
71
|
+
ClassDefinitionBuilder.prototype.addByteArrayField = function (fieldName) {
|
|
72
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.BYTE_ARRAY, this.version));
|
|
73
|
+
};
|
|
74
|
+
ClassDefinitionBuilder.prototype.addBooleanArrayField = function (fieldName) {
|
|
75
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.BOOLEAN_ARRAY, this.version));
|
|
76
|
+
};
|
|
77
|
+
ClassDefinitionBuilder.prototype.addCharArrayField = function (fieldName) {
|
|
78
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.CHAR_ARRAY, this.version));
|
|
79
|
+
};
|
|
80
|
+
ClassDefinitionBuilder.prototype.addShortArrayField = function (fieldName) {
|
|
81
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.SHORT_ARRAY, this.version));
|
|
82
|
+
};
|
|
83
|
+
ClassDefinitionBuilder.prototype.addIntArrayField = function (fieldName) {
|
|
84
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.INT_ARRAY, this.version));
|
|
85
|
+
};
|
|
86
|
+
ClassDefinitionBuilder.prototype.addLongArrayField = function (fieldName) {
|
|
87
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.LONG_ARRAY, this.version));
|
|
88
|
+
};
|
|
89
|
+
ClassDefinitionBuilder.prototype.addFloatArrayField = function (fieldName) {
|
|
90
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.FLOAT_ARRAY, this.version));
|
|
91
|
+
};
|
|
92
|
+
ClassDefinitionBuilder.prototype.addDoubleArrayField = function (fieldName) {
|
|
93
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.DOUBLE_ARRAY, this.version));
|
|
94
|
+
};
|
|
95
|
+
ClassDefinitionBuilder.prototype.addUTFArrayField = function (fieldName) {
|
|
96
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.UTF_ARRAY, this.version));
|
|
97
|
+
};
|
|
98
|
+
ClassDefinitionBuilder.prototype.addPortableArrayField = function (fieldName, def) {
|
|
99
|
+
if (def.getClassId() === 0) {
|
|
100
|
+
throw new RangeError('Portable class ID cannot be zero!');
|
|
101
|
+
}
|
|
102
|
+
return this.addField(new ClassDefinition_1.FieldDefinition(this.index, fieldName, ClassDefinition_1.FieldType.PORTABLE_ARRAY, def.getVersion(), def.getFactoryId(), def.getClassId()));
|
|
103
|
+
};
|
|
104
|
+
ClassDefinitionBuilder.prototype.addField = function (fieldDefinition) {
|
|
105
|
+
if (this.done) {
|
|
106
|
+
throw new HazelcastError_1.HazelcastSerializationError("ClassDefinition is already built for " + this.classId);
|
|
107
|
+
}
|
|
108
|
+
if (this.index !== fieldDefinition.getIndex()) {
|
|
109
|
+
throw new RangeError('Invalid field index');
|
|
110
|
+
}
|
|
111
|
+
this.fieldDefinitions.push(fieldDefinition);
|
|
112
|
+
this.index++;
|
|
113
|
+
return this;
|
|
114
|
+
};
|
|
115
|
+
ClassDefinitionBuilder.prototype.build = function () {
|
|
116
|
+
this.done = true;
|
|
117
|
+
var cd = new ClassDefinition_1.ClassDefinition(this.factoryId, this.classId, this.version);
|
|
118
|
+
for (var _i = 0, _a = this.fieldDefinitions; _i < _a.length; _i++) {
|
|
119
|
+
var fd = _a[_i];
|
|
120
|
+
cd.addFieldDefinition(fd);
|
|
121
|
+
}
|
|
122
|
+
return cd;
|
|
123
|
+
};
|
|
124
|
+
return ClassDefinitionBuilder;
|
|
125
|
+
}());
|
|
126
|
+
exports.ClassDefinitionBuilder = ClassDefinitionBuilder;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClassDefinition } from './ClassDefinition';
|
|
2
|
+
export declare class ClassDefinitionContext {
|
|
3
|
+
private factoryId;
|
|
4
|
+
private classDefs;
|
|
5
|
+
constructor(factoryId: number);
|
|
6
|
+
private static encodeVersionedClassId(classId, version);
|
|
7
|
+
lookup(classId: number, version: number): ClassDefinition;
|
|
8
|
+
register(classDefinition: ClassDefinition): ClassDefinition;
|
|
9
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 HazelcastError_1 = require("../../HazelcastError");
|
|
19
|
+
var ClassDefinitionContext = /** @class */ (function () {
|
|
20
|
+
function ClassDefinitionContext(factoryId) {
|
|
21
|
+
this.factoryId = factoryId;
|
|
22
|
+
this.classDefs = {};
|
|
23
|
+
}
|
|
24
|
+
ClassDefinitionContext.encodeVersionedClassId = function (classId, version) {
|
|
25
|
+
return classId + 'v' + version;
|
|
26
|
+
};
|
|
27
|
+
ClassDefinitionContext.prototype.lookup = function (classId, version) {
|
|
28
|
+
var encoded = ClassDefinitionContext.encodeVersionedClassId(classId, version);
|
|
29
|
+
return this.classDefs[encoded];
|
|
30
|
+
};
|
|
31
|
+
ClassDefinitionContext.prototype.register = function (classDefinition) {
|
|
32
|
+
if (classDefinition === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
if (classDefinition.getFactoryId() !== this.factoryId) {
|
|
36
|
+
throw new HazelcastError_1.HazelcastSerializationError("This factory's number is " + this.factoryId + ".\n Intended factory id is " + classDefinition.getFactoryId());
|
|
37
|
+
}
|
|
38
|
+
var cdKey = ClassDefinitionContext.encodeVersionedClassId(classDefinition.getClassId(), classDefinition.getVersion());
|
|
39
|
+
var current = this.classDefs[cdKey];
|
|
40
|
+
if (current == null) {
|
|
41
|
+
this.classDefs[cdKey] = classDefinition;
|
|
42
|
+
return classDefinition;
|
|
43
|
+
}
|
|
44
|
+
if (!current.equals(classDefinition)) {
|
|
45
|
+
throw new HazelcastError_1.HazelcastSerializationError("Incompatible class definition with same class id:\n " + classDefinition.getClassId());
|
|
46
|
+
}
|
|
47
|
+
return classDefinition;
|
|
48
|
+
};
|
|
49
|
+
return ClassDefinitionContext;
|
|
50
|
+
}());
|
|
51
|
+
exports.ClassDefinitionContext = ClassDefinitionContext;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import { PortableWriter } from './PortableSerializer';
|
|
3
|
+
import { ClassDefinition } from './ClassDefinition';
|
|
4
|
+
import { PortableContext } from './PortableContext';
|
|
5
|
+
import { Portable } from '../Serializable';
|
|
6
|
+
import * as Long from 'long';
|
|
7
|
+
import { ClassDefinitionBuilder } from './ClassDefinitionBuilder';
|
|
8
|
+
export declare class ClassDefinitionWriter implements PortableWriter {
|
|
9
|
+
private context;
|
|
10
|
+
private builder;
|
|
11
|
+
constructor(context: PortableContext, builder: ClassDefinitionBuilder);
|
|
12
|
+
writeInt(fieldName: string, value: number): void;
|
|
13
|
+
writeLong(fieldName: string, long: Long): void;
|
|
14
|
+
writeUTF(fieldName: string, str: string): void;
|
|
15
|
+
writeBoolean(fieldName: string, value: boolean): void;
|
|
16
|
+
writeByte(fieldName: string, value: number): void;
|
|
17
|
+
writeChar(fieldName: string, char: string): void;
|
|
18
|
+
writeDouble(fieldName: string, double: number): void;
|
|
19
|
+
writeFloat(fieldName: string, float: number): void;
|
|
20
|
+
writeShort(fieldName: string, value: number): void;
|
|
21
|
+
writePortable(fieldName: string, portable: Portable): void;
|
|
22
|
+
writeNullPortable(fieldName: string, factoryId: number, classId: number): void;
|
|
23
|
+
writeByteArray(fieldName: string, bytes: number[]): void;
|
|
24
|
+
writeBooleanArray(fieldName: string, booleans: boolean[]): void;
|
|
25
|
+
writeCharArray(fieldName: string, chars: string[]): void;
|
|
26
|
+
writeIntArray(fieldName: string, ints: number[]): void;
|
|
27
|
+
writeLongArray(fieldName: string, longs: Long[]): void;
|
|
28
|
+
writeDoubleArray(fieldName: string, doubles: number[]): void;
|
|
29
|
+
writeFloatArray(fieldName: string, floats: number[]): void;
|
|
30
|
+
writeShortArray(fieldName: string, shorts: number[]): void;
|
|
31
|
+
writeUTFArray(fieldName: string, val: string[]): void;
|
|
32
|
+
writePortableArray(fieldName: string, portables: Portable[]): void;
|
|
33
|
+
registerAndGet(): ClassDefinition;
|
|
34
|
+
private createNestedClassDef(portable, nestedBuilder);
|
|
35
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
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 ClassDefinitionBuilder_1 = require("./ClassDefinitionBuilder");
|
|
19
|
+
var HazelcastError_1 = require("../../HazelcastError");
|
|
20
|
+
var ClassDefinitionWriter = /** @class */ (function () {
|
|
21
|
+
function ClassDefinitionWriter(context, builder) {
|
|
22
|
+
this.context = context;
|
|
23
|
+
this.builder = builder;
|
|
24
|
+
}
|
|
25
|
+
ClassDefinitionWriter.prototype.writeInt = function (fieldName, value) {
|
|
26
|
+
this.builder.addIntField(fieldName);
|
|
27
|
+
};
|
|
28
|
+
ClassDefinitionWriter.prototype.writeLong = function (fieldName, long) {
|
|
29
|
+
this.builder.addLongField(fieldName);
|
|
30
|
+
};
|
|
31
|
+
ClassDefinitionWriter.prototype.writeUTF = function (fieldName, str) {
|
|
32
|
+
this.builder.addUTFField(fieldName);
|
|
33
|
+
};
|
|
34
|
+
ClassDefinitionWriter.prototype.writeBoolean = function (fieldName, value) {
|
|
35
|
+
this.builder.addBooleanField(fieldName);
|
|
36
|
+
};
|
|
37
|
+
ClassDefinitionWriter.prototype.writeByte = function (fieldName, value) {
|
|
38
|
+
this.builder.addByteField(fieldName);
|
|
39
|
+
};
|
|
40
|
+
ClassDefinitionWriter.prototype.writeChar = function (fieldName, char) {
|
|
41
|
+
this.builder.addCharField(fieldName);
|
|
42
|
+
};
|
|
43
|
+
ClassDefinitionWriter.prototype.writeDouble = function (fieldName, double) {
|
|
44
|
+
this.builder.addDoubleField(fieldName);
|
|
45
|
+
};
|
|
46
|
+
ClassDefinitionWriter.prototype.writeFloat = function (fieldName, float) {
|
|
47
|
+
this.builder.addFloatField(fieldName);
|
|
48
|
+
};
|
|
49
|
+
ClassDefinitionWriter.prototype.writeShort = function (fieldName, value) {
|
|
50
|
+
this.builder.addShortField(fieldName);
|
|
51
|
+
};
|
|
52
|
+
ClassDefinitionWriter.prototype.writePortable = function (fieldName, portable) {
|
|
53
|
+
if (portable == null) {
|
|
54
|
+
throw new HazelcastError_1.HazelcastSerializationError('Cannot write null portable without explicitly '
|
|
55
|
+
+ 'registering class definition!');
|
|
56
|
+
}
|
|
57
|
+
var version = this.context.getClassVersion(portable);
|
|
58
|
+
var nestedClassDef = this.createNestedClassDef(portable, new ClassDefinitionBuilder_1.ClassDefinitionBuilder(portable.getFactoryId(), portable.getClassId(), version));
|
|
59
|
+
this.builder.addPortableField(fieldName, nestedClassDef);
|
|
60
|
+
};
|
|
61
|
+
ClassDefinitionWriter.prototype.writeNullPortable = function (fieldName, factoryId, classId) {
|
|
62
|
+
var nestedClassDef = this.context.lookupClassDefinition(factoryId, classId, this.context.getVersion());
|
|
63
|
+
if (nestedClassDef == null) {
|
|
64
|
+
throw new HazelcastError_1.HazelcastSerializationError('Cannot write null portable without explicitly '
|
|
65
|
+
+ 'registering class definition!');
|
|
66
|
+
}
|
|
67
|
+
this.builder.addPortableField(fieldName, nestedClassDef);
|
|
68
|
+
};
|
|
69
|
+
ClassDefinitionWriter.prototype.writeByteArray = function (fieldName, bytes) {
|
|
70
|
+
this.builder.addByteArrayField(fieldName);
|
|
71
|
+
};
|
|
72
|
+
ClassDefinitionWriter.prototype.writeBooleanArray = function (fieldName, booleans) {
|
|
73
|
+
this.builder.addBooleanArrayField(fieldName);
|
|
74
|
+
};
|
|
75
|
+
ClassDefinitionWriter.prototype.writeCharArray = function (fieldName, chars) {
|
|
76
|
+
this.builder.addCharArrayField(fieldName);
|
|
77
|
+
};
|
|
78
|
+
ClassDefinitionWriter.prototype.writeIntArray = function (fieldName, ints) {
|
|
79
|
+
this.builder.addIntArrayField(fieldName);
|
|
80
|
+
};
|
|
81
|
+
ClassDefinitionWriter.prototype.writeLongArray = function (fieldName, longs) {
|
|
82
|
+
this.builder.addLongArrayField(fieldName);
|
|
83
|
+
};
|
|
84
|
+
ClassDefinitionWriter.prototype.writeDoubleArray = function (fieldName, doubles) {
|
|
85
|
+
this.builder.addDoubleArrayField(fieldName);
|
|
86
|
+
};
|
|
87
|
+
ClassDefinitionWriter.prototype.writeFloatArray = function (fieldName, floats) {
|
|
88
|
+
this.builder.addFloatArrayField(fieldName);
|
|
89
|
+
};
|
|
90
|
+
ClassDefinitionWriter.prototype.writeShortArray = function (fieldName, shorts) {
|
|
91
|
+
this.builder.addShortArrayField(fieldName);
|
|
92
|
+
};
|
|
93
|
+
ClassDefinitionWriter.prototype.writeUTFArray = function (fieldName, val) {
|
|
94
|
+
this.builder.addUTFArrayField(fieldName);
|
|
95
|
+
};
|
|
96
|
+
ClassDefinitionWriter.prototype.writePortableArray = function (fieldName, portables) {
|
|
97
|
+
if (portables == null || portables.length === 0) {
|
|
98
|
+
throw new HazelcastError_1.HazelcastSerializationError('Cannot write null portable array without explicitly '
|
|
99
|
+
+ 'registering class definition!');
|
|
100
|
+
}
|
|
101
|
+
var p = portables[0];
|
|
102
|
+
var classId = p.getClassId();
|
|
103
|
+
for (var i = 1; i < portables.length; i++) {
|
|
104
|
+
if (portables[i].getClassId() !== classId) {
|
|
105
|
+
throw new RangeError('Detected different class-ids in portable array!');
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
var version = this.context.getClassVersion(p);
|
|
109
|
+
var nestedClassDef = this.createNestedClassDef(p, new ClassDefinitionBuilder_1.ClassDefinitionBuilder(p.getFactoryId(), p.getClassId(), version));
|
|
110
|
+
this.builder.addPortableArrayField(fieldName, nestedClassDef);
|
|
111
|
+
};
|
|
112
|
+
ClassDefinitionWriter.prototype.registerAndGet = function () {
|
|
113
|
+
var cd = this.builder.build();
|
|
114
|
+
return this.context.registerClassDefinition(cd);
|
|
115
|
+
};
|
|
116
|
+
ClassDefinitionWriter.prototype.createNestedClassDef = function (portable, nestedBuilder) {
|
|
117
|
+
var writer = new ClassDefinitionWriter(this.context, nestedBuilder);
|
|
118
|
+
portable.writePortable(writer);
|
|
119
|
+
return this.context.registerClassDefinition(nestedBuilder.build());
|
|
120
|
+
};
|
|
121
|
+
return ClassDefinitionWriter;
|
|
122
|
+
}());
|
|
123
|
+
exports.ClassDefinitionWriter = ClassDefinitionWriter;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import * as Long from 'long';
|
|
3
|
+
import { DataInput } from '../Data';
|
|
4
|
+
import { Portable } from '../Serializable';
|
|
5
|
+
import { ClassDefinition, FieldType } from './ClassDefinition';
|
|
6
|
+
import { PortableReader, PortableSerializer } from './PortableSerializer';
|
|
7
|
+
export declare class DefaultPortableReader implements PortableReader {
|
|
8
|
+
protected serializer: PortableSerializer;
|
|
9
|
+
protected input: DataInput;
|
|
10
|
+
protected classDefinition: ClassDefinition;
|
|
11
|
+
private offset;
|
|
12
|
+
private finalPos;
|
|
13
|
+
private raw;
|
|
14
|
+
constructor(serializer: PortableSerializer, input: DataInput, classDefinition: ClassDefinition);
|
|
15
|
+
getVersion(): number;
|
|
16
|
+
hasField(fieldName: string): boolean;
|
|
17
|
+
getFieldNames(): string[];
|
|
18
|
+
getFieldType(fieldName: string): FieldType;
|
|
19
|
+
readInt(fieldName: string): number;
|
|
20
|
+
readLong(fieldName: string): Long;
|
|
21
|
+
readUTF(fieldName: string): string;
|
|
22
|
+
readBoolean(fieldName: string): boolean;
|
|
23
|
+
readByte(fieldName: string): number;
|
|
24
|
+
readChar(fieldName: string): string;
|
|
25
|
+
readDouble(fieldName: string): number;
|
|
26
|
+
readFloat(fieldName: string): number;
|
|
27
|
+
readShort(fieldName: string): number;
|
|
28
|
+
readPortable(fieldName: string): Portable;
|
|
29
|
+
readByteArray(fieldName: string): number[];
|
|
30
|
+
readBooleanArray(fieldName: string): boolean[];
|
|
31
|
+
readCharArray(fieldName: string): string[];
|
|
32
|
+
readIntArray(fieldName: string): number[];
|
|
33
|
+
readLongArray(fieldName: string): Long[];
|
|
34
|
+
readDoubleArray(fieldName: string): number[];
|
|
35
|
+
readFloatArray(fieldName: string): number[];
|
|
36
|
+
readShortArray(fieldName: string): number[];
|
|
37
|
+
readUTFArray(fieldName: string): string[];
|
|
38
|
+
readPortableArray(fieldName: string): Portable[];
|
|
39
|
+
getRawDataInput(): DataInput;
|
|
40
|
+
end(): void;
|
|
41
|
+
private positionByFieldDefinition(field);
|
|
42
|
+
private positionByField(fieldName, fieldType);
|
|
43
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
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 BitsUtil_1 = require("../../BitsUtil");
|
|
19
|
+
var HazelcastError_1 = require("../../HazelcastError");
|
|
20
|
+
var ClassDefinition_1 = require("./ClassDefinition");
|
|
21
|
+
var DefaultPortableReader = /** @class */ (function () {
|
|
22
|
+
function DefaultPortableReader(serializer, input, classDefinition) {
|
|
23
|
+
this.raw = false;
|
|
24
|
+
this.serializer = serializer;
|
|
25
|
+
this.input = input;
|
|
26
|
+
this.classDefinition = classDefinition;
|
|
27
|
+
this.finalPos = this.input.readInt();
|
|
28
|
+
var fieldCount = this.input.readInt();
|
|
29
|
+
this.offset = this.input.position();
|
|
30
|
+
}
|
|
31
|
+
DefaultPortableReader.prototype.getVersion = function () {
|
|
32
|
+
return this.classDefinition.getVersion();
|
|
33
|
+
};
|
|
34
|
+
DefaultPortableReader.prototype.hasField = function (fieldName) {
|
|
35
|
+
return this.classDefinition.hasField(fieldName);
|
|
36
|
+
};
|
|
37
|
+
DefaultPortableReader.prototype.getFieldNames = function () {
|
|
38
|
+
throw new ReferenceError('Not implemented!');
|
|
39
|
+
};
|
|
40
|
+
DefaultPortableReader.prototype.getFieldType = function (fieldName) {
|
|
41
|
+
return this.classDefinition.getFieldType(fieldName);
|
|
42
|
+
};
|
|
43
|
+
DefaultPortableReader.prototype.readInt = function (fieldName) {
|
|
44
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.INT);
|
|
45
|
+
return this.input.readInt(pos);
|
|
46
|
+
};
|
|
47
|
+
DefaultPortableReader.prototype.readLong = function (fieldName) {
|
|
48
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.LONG);
|
|
49
|
+
return this.input.readLong(pos);
|
|
50
|
+
};
|
|
51
|
+
DefaultPortableReader.prototype.readUTF = function (fieldName) {
|
|
52
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.UTF);
|
|
53
|
+
return this.input.readUTF(pos);
|
|
54
|
+
};
|
|
55
|
+
DefaultPortableReader.prototype.readBoolean = function (fieldName) {
|
|
56
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.BOOLEAN);
|
|
57
|
+
return this.input.readBoolean(pos);
|
|
58
|
+
};
|
|
59
|
+
DefaultPortableReader.prototype.readByte = function (fieldName) {
|
|
60
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.BYTE);
|
|
61
|
+
return this.input.readByte(pos);
|
|
62
|
+
};
|
|
63
|
+
DefaultPortableReader.prototype.readChar = function (fieldName) {
|
|
64
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.CHAR);
|
|
65
|
+
return this.input.readChar(pos);
|
|
66
|
+
};
|
|
67
|
+
DefaultPortableReader.prototype.readDouble = function (fieldName) {
|
|
68
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.DOUBLE);
|
|
69
|
+
return this.input.readDouble(pos);
|
|
70
|
+
};
|
|
71
|
+
DefaultPortableReader.prototype.readFloat = function (fieldName) {
|
|
72
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.FLOAT);
|
|
73
|
+
return this.input.readFloat(pos);
|
|
74
|
+
};
|
|
75
|
+
DefaultPortableReader.prototype.readShort = function (fieldName) {
|
|
76
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.SHORT);
|
|
77
|
+
return this.input.readShort(pos);
|
|
78
|
+
};
|
|
79
|
+
DefaultPortableReader.prototype.readPortable = function (fieldName) {
|
|
80
|
+
var backupPos = this.input.position();
|
|
81
|
+
try {
|
|
82
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.PORTABLE);
|
|
83
|
+
this.input.position(pos);
|
|
84
|
+
var isNull = this.input.readBoolean();
|
|
85
|
+
var factoryId = this.input.readInt();
|
|
86
|
+
var classId = this.input.readInt();
|
|
87
|
+
if (isNull) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return this.serializer.readObject(this.input, factoryId, classId);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
finally {
|
|
95
|
+
this.input.position(backupPos);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
DefaultPortableReader.prototype.readByteArray = function (fieldName) {
|
|
99
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.BYTE_ARRAY);
|
|
100
|
+
return this.input.readByteArray(pos);
|
|
101
|
+
};
|
|
102
|
+
DefaultPortableReader.prototype.readBooleanArray = function (fieldName) {
|
|
103
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.BOOLEAN_ARRAY);
|
|
104
|
+
return this.input.readBooleanArray(pos);
|
|
105
|
+
};
|
|
106
|
+
DefaultPortableReader.prototype.readCharArray = function (fieldName) {
|
|
107
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.CHAR_ARRAY);
|
|
108
|
+
return this.input.readCharArray(pos);
|
|
109
|
+
};
|
|
110
|
+
DefaultPortableReader.prototype.readIntArray = function (fieldName) {
|
|
111
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.INT_ARRAY);
|
|
112
|
+
return this.input.readIntArray(pos);
|
|
113
|
+
};
|
|
114
|
+
DefaultPortableReader.prototype.readLongArray = function (fieldName) {
|
|
115
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.LONG_ARRAY);
|
|
116
|
+
return this.input.readLongArray(pos);
|
|
117
|
+
};
|
|
118
|
+
DefaultPortableReader.prototype.readDoubleArray = function (fieldName) {
|
|
119
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.DOUBLE_ARRAY);
|
|
120
|
+
return this.input.readDoubleArray(pos);
|
|
121
|
+
};
|
|
122
|
+
DefaultPortableReader.prototype.readFloatArray = function (fieldName) {
|
|
123
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.FLOAT_ARRAY);
|
|
124
|
+
return this.input.readFloatArray(pos);
|
|
125
|
+
};
|
|
126
|
+
DefaultPortableReader.prototype.readShortArray = function (fieldName) {
|
|
127
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.SHORT_ARRAY);
|
|
128
|
+
return this.input.readShortArray(pos);
|
|
129
|
+
};
|
|
130
|
+
DefaultPortableReader.prototype.readUTFArray = function (fieldName) {
|
|
131
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.UTF_ARRAY);
|
|
132
|
+
return this.input.readUTFArray(pos);
|
|
133
|
+
};
|
|
134
|
+
DefaultPortableReader.prototype.readPortableArray = function (fieldName) {
|
|
135
|
+
var backupPos = this.input.position();
|
|
136
|
+
try {
|
|
137
|
+
var pos = this.positionByField(fieldName, ClassDefinition_1.FieldType.PORTABLE_ARRAY);
|
|
138
|
+
this.input.position(pos);
|
|
139
|
+
var len = this.input.readInt();
|
|
140
|
+
var factoryId = this.input.readInt();
|
|
141
|
+
var classId = this.input.readInt();
|
|
142
|
+
if (len === BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
var portables = [];
|
|
147
|
+
if (len > 0) {
|
|
148
|
+
var offset = this.input.position();
|
|
149
|
+
for (var i = 0; i < len; i++) {
|
|
150
|
+
var start = this.input.readInt(offset + i * BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES);
|
|
151
|
+
this.input.position(start);
|
|
152
|
+
portables[i] = this.serializer.readObject(this.input, factoryId, classId);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return portables;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
finally {
|
|
159
|
+
this.input.position(backupPos);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
DefaultPortableReader.prototype.getRawDataInput = function () {
|
|
163
|
+
var pos;
|
|
164
|
+
if (!this.raw) {
|
|
165
|
+
pos = this.input.readInt(this.offset + this.classDefinition.getFieldCount() * BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES);
|
|
166
|
+
this.input.position(pos);
|
|
167
|
+
this.raw = true;
|
|
168
|
+
}
|
|
169
|
+
return this.input;
|
|
170
|
+
};
|
|
171
|
+
DefaultPortableReader.prototype.end = function () {
|
|
172
|
+
this.input.position(this.finalPos);
|
|
173
|
+
};
|
|
174
|
+
DefaultPortableReader.prototype.positionByFieldDefinition = function (field) {
|
|
175
|
+
if (this.raw) {
|
|
176
|
+
throw new HazelcastError_1.IllegalStateError('Cannot read portable fields after getRawDataInput called!');
|
|
177
|
+
}
|
|
178
|
+
var pos = this.input.readInt(this.offset + field.getIndex() * BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES);
|
|
179
|
+
var len = this.input.readShort(pos);
|
|
180
|
+
return pos + BitsUtil_1.BitsUtil.SHORT_SIZE_IN_BYTES + len + 1;
|
|
181
|
+
};
|
|
182
|
+
DefaultPortableReader.prototype.positionByField = function (fieldName, fieldType) {
|
|
183
|
+
var definition = this.classDefinition.getField(fieldName);
|
|
184
|
+
return this.positionByFieldDefinition(definition);
|
|
185
|
+
};
|
|
186
|
+
return DefaultPortableReader;
|
|
187
|
+
}());
|
|
188
|
+
exports.DefaultPortableReader = DefaultPortableReader;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import { PortableSerializer } from './PortableSerializer';
|
|
3
|
+
import { PositionalDataOutput } from '../Data';
|
|
4
|
+
import { ClassDefinition } from './ClassDefinition';
|
|
5
|
+
import { Portable } from '../Serializable';
|
|
6
|
+
import * as Long from 'long';
|
|
7
|
+
export declare class DefaultPortableWriter {
|
|
8
|
+
private serializer;
|
|
9
|
+
private output;
|
|
10
|
+
private classDefinition;
|
|
11
|
+
private offset;
|
|
12
|
+
private begin;
|
|
13
|
+
constructor(serializer: PortableSerializer, output: PositionalDataOutput, classDefinition: ClassDefinition);
|
|
14
|
+
writeInt(fieldName: string, value: number): void;
|
|
15
|
+
writeLong(fieldName: string, long: Long): void;
|
|
16
|
+
writeUTF(fieldName: string, str: string): void;
|
|
17
|
+
writeBoolean(fieldName: string, value: boolean): void;
|
|
18
|
+
writeByte(fieldName: string, value: number): void;
|
|
19
|
+
writeChar(fieldName: string, char: string): void;
|
|
20
|
+
writeDouble(fieldName: string, double: number): void;
|
|
21
|
+
writeFloat(fieldName: string, float: number): void;
|
|
22
|
+
writeShort(fieldName: string, value: number): void;
|
|
23
|
+
writePortable(fieldName: string, portable: Portable): void;
|
|
24
|
+
writeNullPortable(fieldName: string, factoryId: number, classId: number): void;
|
|
25
|
+
writeByteArray(fieldName: string, bytes: number[]): void;
|
|
26
|
+
writeBooleanArray(fieldName: string, booleans: boolean[]): void;
|
|
27
|
+
writeCharArray(fieldName: string, chars: string[]): void;
|
|
28
|
+
writeIntArray(fieldName: string, ints: number[]): void;
|
|
29
|
+
writeLongArray(fieldName: string, longs: Long[]): void;
|
|
30
|
+
writeDoubleArray(fieldName: string, doubles: number[]): void;
|
|
31
|
+
writeFloatArray(fieldName: string, floats: number[]): void;
|
|
32
|
+
writeShortArray(fieldName: string, shorts: number[]): void;
|
|
33
|
+
writeUTFArray(fieldName: string, val: string[]): void;
|
|
34
|
+
writePortableArray(fieldName: string, portables: Portable[]): void;
|
|
35
|
+
end(): void;
|
|
36
|
+
private setPosition(fieldName, fieldType);
|
|
37
|
+
}
|