@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,113 @@
|
|
|
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 DefaultPredicates_1 = require("../serialization/DefaultPredicates");
|
|
19
|
+
function sql(str) {
|
|
20
|
+
return new DefaultPredicates_1.SqlPredicate(str);
|
|
21
|
+
}
|
|
22
|
+
exports.sql = sql;
|
|
23
|
+
function and() {
|
|
24
|
+
var predicates = [];
|
|
25
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
26
|
+
predicates[_i] = arguments[_i];
|
|
27
|
+
}
|
|
28
|
+
return new (DefaultPredicates_1.AndPredicate.bind.apply(DefaultPredicates_1.AndPredicate, [void 0].concat(predicates)))();
|
|
29
|
+
}
|
|
30
|
+
exports.and = and;
|
|
31
|
+
function between(field, from, to) {
|
|
32
|
+
return new DefaultPredicates_1.BetweenPredicate(field, from, to);
|
|
33
|
+
}
|
|
34
|
+
exports.between = between;
|
|
35
|
+
function equal(field, value) {
|
|
36
|
+
return new DefaultPredicates_1.EqualPredicate(field, value);
|
|
37
|
+
}
|
|
38
|
+
exports.equal = equal;
|
|
39
|
+
function greaterThan(field, value) {
|
|
40
|
+
return new DefaultPredicates_1.GreaterLessPredicate(field, value, false, false);
|
|
41
|
+
}
|
|
42
|
+
exports.greaterThan = greaterThan;
|
|
43
|
+
function greaterEqual(field, value) {
|
|
44
|
+
return new DefaultPredicates_1.GreaterLessPredicate(field, value, true, false);
|
|
45
|
+
}
|
|
46
|
+
exports.greaterEqual = greaterEqual;
|
|
47
|
+
function lessThan(field, value) {
|
|
48
|
+
return new DefaultPredicates_1.GreaterLessPredicate(field, value, false, true);
|
|
49
|
+
}
|
|
50
|
+
exports.lessThan = lessThan;
|
|
51
|
+
function lessEqual(field, value) {
|
|
52
|
+
return new DefaultPredicates_1.GreaterLessPredicate(field, value, true, true);
|
|
53
|
+
}
|
|
54
|
+
exports.lessEqual = lessEqual;
|
|
55
|
+
function like(field, expr) {
|
|
56
|
+
return new DefaultPredicates_1.LikePredicate(field, expr);
|
|
57
|
+
}
|
|
58
|
+
exports.like = like;
|
|
59
|
+
function ilike(field, expr) {
|
|
60
|
+
return new DefaultPredicates_1.ILikePredicate(field, expr);
|
|
61
|
+
}
|
|
62
|
+
exports.ilike = ilike;
|
|
63
|
+
function inPredicate(field) {
|
|
64
|
+
var values = [];
|
|
65
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
66
|
+
values[_i - 1] = arguments[_i];
|
|
67
|
+
}
|
|
68
|
+
return new (DefaultPredicates_1.InPredicate.bind.apply(DefaultPredicates_1.InPredicate, [void 0, field].concat(values)))();
|
|
69
|
+
}
|
|
70
|
+
exports.inPredicate = inPredicate;
|
|
71
|
+
function instanceOf(className) {
|
|
72
|
+
return new DefaultPredicates_1.InstanceOfPredicate(className);
|
|
73
|
+
}
|
|
74
|
+
exports.instanceOf = instanceOf;
|
|
75
|
+
function notEqual(field, value) {
|
|
76
|
+
return new DefaultPredicates_1.NotEqualPredicate(field, value);
|
|
77
|
+
}
|
|
78
|
+
exports.notEqual = notEqual;
|
|
79
|
+
function not(predic) {
|
|
80
|
+
return new DefaultPredicates_1.NotPredicate(predic);
|
|
81
|
+
}
|
|
82
|
+
exports.not = not;
|
|
83
|
+
function or() {
|
|
84
|
+
var predicates = [];
|
|
85
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
86
|
+
predicates[_i] = arguments[_i];
|
|
87
|
+
}
|
|
88
|
+
return new (DefaultPredicates_1.OrPredicate.bind.apply(DefaultPredicates_1.OrPredicate, [void 0].concat(predicates)))();
|
|
89
|
+
}
|
|
90
|
+
exports.or = or;
|
|
91
|
+
function regex(field, reg) {
|
|
92
|
+
return new DefaultPredicates_1.RegexPredicate(field, reg);
|
|
93
|
+
}
|
|
94
|
+
exports.regex = regex;
|
|
95
|
+
function alwaysTrue() {
|
|
96
|
+
return DefaultPredicates_1.TruePredicate.INSTANCE;
|
|
97
|
+
}
|
|
98
|
+
exports.alwaysTrue = alwaysTrue;
|
|
99
|
+
function alwaysFalse() {
|
|
100
|
+
return DefaultPredicates_1.FalsePredicate.INSTANCE;
|
|
101
|
+
}
|
|
102
|
+
exports.alwaysFalse = alwaysFalse;
|
|
103
|
+
function paging(predicate, pageSize, comparator) {
|
|
104
|
+
if (comparator === void 0) { comparator = null; }
|
|
105
|
+
return new DefaultPredicates_1.PagingPredicate(predicate, pageSize, comparator);
|
|
106
|
+
}
|
|
107
|
+
exports.paging = paging;
|
|
108
|
+
var IterationType;
|
|
109
|
+
(function (IterationType) {
|
|
110
|
+
IterationType[IterationType["KEY"] = 0] = "KEY";
|
|
111
|
+
IterationType[IterationType["VALUE"] = 1] = "VALUE";
|
|
112
|
+
IterationType[IterationType["ENTRY"] = 2] = "ENTRY";
|
|
113
|
+
})(IterationType = exports.IterationType || (exports.IterationType = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SerializationService } from '../serialization/SerializationService';
|
|
2
|
+
export declare class ReadOnlyLazyList<T> implements Iterable<T> {
|
|
3
|
+
private internalArray;
|
|
4
|
+
private serializationService;
|
|
5
|
+
constructor(array: any[], serializationService: SerializationService);
|
|
6
|
+
get(index: number): T;
|
|
7
|
+
size(): number;
|
|
8
|
+
values(): Iterator<T>;
|
|
9
|
+
slice(start: number, end?: number): ReadOnlyLazyList<T>;
|
|
10
|
+
toArray(): T[];
|
|
11
|
+
[Symbol.iterator](): Iterator<T>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 ReadOnlyLazyListIterator = /** @class */ (function () {
|
|
19
|
+
function ReadOnlyLazyListIterator(list) {
|
|
20
|
+
this.index = 0;
|
|
21
|
+
this.list = list;
|
|
22
|
+
}
|
|
23
|
+
ReadOnlyLazyListIterator.prototype.next = function () {
|
|
24
|
+
if (this.index < this.list.size()) {
|
|
25
|
+
return { done: false, value: this.list.get(this.index++) };
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
return { done: true, value: undefined };
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return ReadOnlyLazyListIterator;
|
|
32
|
+
}());
|
|
33
|
+
var ReadOnlyLazyList = /** @class */ (function () {
|
|
34
|
+
function ReadOnlyLazyList(array, serializationService) {
|
|
35
|
+
this.internalArray = array;
|
|
36
|
+
this.serializationService = serializationService;
|
|
37
|
+
}
|
|
38
|
+
ReadOnlyLazyList.prototype.get = function (index) {
|
|
39
|
+
var dataOrObject = this.internalArray[index];
|
|
40
|
+
if (dataOrObject == null) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (this.serializationService.isData(dataOrObject)) {
|
|
44
|
+
var obj = this.serializationService.toObject(dataOrObject);
|
|
45
|
+
this.internalArray[index] = obj;
|
|
46
|
+
return obj;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return dataOrObject;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
ReadOnlyLazyList.prototype.size = function () {
|
|
53
|
+
return this.internalArray.length;
|
|
54
|
+
};
|
|
55
|
+
ReadOnlyLazyList.prototype.values = function () {
|
|
56
|
+
return new ReadOnlyLazyListIterator(this);
|
|
57
|
+
};
|
|
58
|
+
ReadOnlyLazyList.prototype.slice = function (start, end) {
|
|
59
|
+
return new ReadOnlyLazyList(this.internalArray.slice(start, end), this.serializationService);
|
|
60
|
+
};
|
|
61
|
+
ReadOnlyLazyList.prototype.toArray = function () {
|
|
62
|
+
var arr = [];
|
|
63
|
+
var iterator = this.values();
|
|
64
|
+
for (var item = iterator.next(); !item.done; item = iterator.next()) {
|
|
65
|
+
arr.push(item.value);
|
|
66
|
+
}
|
|
67
|
+
return arr;
|
|
68
|
+
};
|
|
69
|
+
ReadOnlyLazyList.prototype[Symbol.iterator] = function () {
|
|
70
|
+
return this.values();
|
|
71
|
+
};
|
|
72
|
+
return ReadOnlyLazyList;
|
|
73
|
+
}());
|
|
74
|
+
exports.ReadOnlyLazyList = ReadOnlyLazyList;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IdentifiedDataSerializable, IdentifiedDataSerializableFactory } from '../serialization/Serializable';
|
|
2
|
+
import { DataInput, DataOutput } from '../serialization/Data';
|
|
3
|
+
export declare const REST_VALUE_FACTORY_ID = -37;
|
|
4
|
+
export declare const REST_VALUE_CLASS_ID = 1;
|
|
5
|
+
export declare class RestValue implements IdentifiedDataSerializable {
|
|
6
|
+
value: string;
|
|
7
|
+
contentType: string;
|
|
8
|
+
getClassId(): number;
|
|
9
|
+
getFactoryId(): number;
|
|
10
|
+
readData(input: DataInput): any;
|
|
11
|
+
writeData(output: DataOutput): void;
|
|
12
|
+
}
|
|
13
|
+
export declare class RestValueFactory implements IdentifiedDataSerializableFactory {
|
|
14
|
+
create(type: number): IdentifiedDataSerializable;
|
|
15
|
+
}
|
|
@@ -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
|
+
exports.REST_VALUE_FACTORY_ID = -37;
|
|
19
|
+
exports.REST_VALUE_CLASS_ID = 1;
|
|
20
|
+
var RestValue = /** @class */ (function () {
|
|
21
|
+
function RestValue() {
|
|
22
|
+
}
|
|
23
|
+
RestValue.prototype.getClassId = function () {
|
|
24
|
+
return exports.REST_VALUE_CLASS_ID;
|
|
25
|
+
};
|
|
26
|
+
RestValue.prototype.getFactoryId = function () {
|
|
27
|
+
return exports.REST_VALUE_FACTORY_ID;
|
|
28
|
+
};
|
|
29
|
+
RestValue.prototype.readData = function (input) {
|
|
30
|
+
this.value = input.readUTF();
|
|
31
|
+
this.contentType = input.readUTF();
|
|
32
|
+
};
|
|
33
|
+
RestValue.prototype.writeData = function (output) {
|
|
34
|
+
output.writeUTF(this.value);
|
|
35
|
+
output.writeUTF(this.contentType);
|
|
36
|
+
};
|
|
37
|
+
return RestValue;
|
|
38
|
+
}());
|
|
39
|
+
exports.RestValue = RestValue;
|
|
40
|
+
var RestValueFactory = /** @class */ (function () {
|
|
41
|
+
function RestValueFactory() {
|
|
42
|
+
}
|
|
43
|
+
RestValueFactory.prototype.create = function (type) {
|
|
44
|
+
if (type === exports.REST_VALUE_CLASS_ID) {
|
|
45
|
+
return new RestValue();
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
return RestValueFactory;
|
|
50
|
+
}());
|
|
51
|
+
exports.RestValueFactory = RestValueFactory;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import * as Long from 'long';
|
|
3
|
+
export declare class UUID {
|
|
4
|
+
readonly leastSignificant: Long;
|
|
5
|
+
readonly mostSignificant: Long;
|
|
6
|
+
constructor(mostSig: Long, leastSig: Long);
|
|
7
|
+
equals(other: UUID): boolean;
|
|
8
|
+
toString(): string;
|
|
9
|
+
}
|
package/lib/core/UUID.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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 UUID = /** @class */ (function () {
|
|
19
|
+
function UUID(mostSig, leastSig) {
|
|
20
|
+
this.mostSignificant = mostSig;
|
|
21
|
+
this.leastSignificant = leastSig;
|
|
22
|
+
}
|
|
23
|
+
UUID.prototype.equals = function (other) {
|
|
24
|
+
if (other == null) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
return other.mostSignificant.equals(this.mostSignificant) && other.leastSignificant.equals(this.leastSignificant);
|
|
28
|
+
};
|
|
29
|
+
/* tslint:disable:no-bitwise */
|
|
30
|
+
UUID.prototype.toString = function () {
|
|
31
|
+
var mostHigh = this.mostSignificant.getHighBitsUnsigned(); // (32) 32 32 32
|
|
32
|
+
var mostLow = this.mostSignificant.getLowBitsUnsigned(); // 32 (32) 32 32
|
|
33
|
+
var leastHigh = this.leastSignificant.getHighBitsUnsigned(); // 32 32 (32) 32
|
|
34
|
+
var leastLow = this.leastSignificant.getLowBitsUnsigned(); // 32 32 32 (32)
|
|
35
|
+
var div1 = mostHigh.toString(16);
|
|
36
|
+
var div2 = (mostLow >>> 16).toString(16);
|
|
37
|
+
var div3 = (mostLow & ((1 << 16) - 1)).toString(16);
|
|
38
|
+
var div4 = (leastHigh >>> 16).toString(16);
|
|
39
|
+
var div5 = (leastHigh & ((1 << 16) - 1)).toString(16) + leastLow.toString(16);
|
|
40
|
+
return div1 + '-' + div2 + '-' + div3 + '-' + div4 + '-' + div5;
|
|
41
|
+
};
|
|
42
|
+
return UUID;
|
|
43
|
+
}());
|
|
44
|
+
exports.UUID = UUID;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 VectorClock = /** @class */ (function () {
|
|
19
|
+
function VectorClock() {
|
|
20
|
+
this.replicaTimestamps = new Map();
|
|
21
|
+
}
|
|
22
|
+
VectorClock.prototype.isAfter = function (other) {
|
|
23
|
+
var _this = this;
|
|
24
|
+
var atLeastOneBigger = false;
|
|
25
|
+
other.replicaTimestamps.forEach(function (otherTimestamp, replicaId) {
|
|
26
|
+
var thisTimetamp = _this.replicaTimestamps.get(replicaId);
|
|
27
|
+
if (thisTimetamp == null || otherTimestamp.greaterThan(thisTimetamp)) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
else if (otherTimestamp.lessThan(thisTimetamp)) {
|
|
31
|
+
atLeastOneBigger = true;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
return atLeastOneBigger || this.replicaTimestamps.size > other.replicaTimestamps.size;
|
|
35
|
+
};
|
|
36
|
+
VectorClock.prototype.setReplicaTimestamp = function (replicaId, timestamp) {
|
|
37
|
+
this.replicaTimestamps.set(replicaId, timestamp);
|
|
38
|
+
};
|
|
39
|
+
VectorClock.prototype.entrySet = function () {
|
|
40
|
+
var entrySet = [];
|
|
41
|
+
this.replicaTimestamps.forEach(function (timestamp, replicaId) {
|
|
42
|
+
entrySet.push([replicaId, timestamp]);
|
|
43
|
+
});
|
|
44
|
+
return entrySet;
|
|
45
|
+
};
|
|
46
|
+
return VectorClock;
|
|
47
|
+
}());
|
|
48
|
+
exports.VectorClock = VectorClock;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import { AddressProvider } from '../connection/AddressProvider';
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import { ILogger } from '../logging/ILogger';
|
|
5
|
+
export declare class HazelcastCloudAddressProvider implements AddressProvider {
|
|
6
|
+
private readonly logger;
|
|
7
|
+
private readonly cloudDiscovery;
|
|
8
|
+
constructor(endpointUrl: string, connectionTimeoutMillis: number, logger: ILogger);
|
|
9
|
+
loadAddresses(): Promise<string[]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 HazelcastCloudDiscovery_1 = require("./HazelcastCloudDiscovery");
|
|
19
|
+
var HazelcastCloudAddressProvider = /** @class */ (function () {
|
|
20
|
+
function HazelcastCloudAddressProvider(endpointUrl, connectionTimeoutMillis, logger) {
|
|
21
|
+
this.cloudDiscovery = new HazelcastCloudDiscovery_1.HazelcastCloudDiscovery(endpointUrl, connectionTimeoutMillis);
|
|
22
|
+
this.logger = logger;
|
|
23
|
+
}
|
|
24
|
+
HazelcastCloudAddressProvider.prototype.loadAddresses = function () {
|
|
25
|
+
var _this = this;
|
|
26
|
+
return this.cloudDiscovery.discoverNodes().then(function (res) {
|
|
27
|
+
return Array.from(res.keys());
|
|
28
|
+
}).catch(function (e) {
|
|
29
|
+
_this.logger.warn('HazelcastCloudAddressProvider', 'Failed to load addresses from hazelcast.cloud : ' + e.message);
|
|
30
|
+
return [];
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
return HazelcastCloudAddressProvider;
|
|
34
|
+
}());
|
|
35
|
+
exports.HazelcastCloudAddressProvider = HazelcastCloudAddressProvider;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import { AddressTranslator } from '../connection/AddressTranslator';
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import Address = require('../Address');
|
|
5
|
+
import { ILogger } from '../logging/ILogger';
|
|
6
|
+
export declare class HazelcastCloudAddressTranslator implements AddressTranslator {
|
|
7
|
+
private logger;
|
|
8
|
+
private readonly hazelcastCloudDiscovery;
|
|
9
|
+
private privateToPublic;
|
|
10
|
+
constructor(endpointUrl: string, connectionTimeoutMillis: number, logger: ILogger);
|
|
11
|
+
translate(address: Address): Promise<Address>;
|
|
12
|
+
refresh(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 HazelcastCloudDiscovery_1 = require("./HazelcastCloudDiscovery");
|
|
19
|
+
var Promise = require("bluebird");
|
|
20
|
+
var HazelcastCloudAddressTranslator = /** @class */ (function () {
|
|
21
|
+
function HazelcastCloudAddressTranslator(endpointUrl, connectionTimeoutMillis, logger) {
|
|
22
|
+
this.privateToPublic = new Map();
|
|
23
|
+
this.hazelcastCloudDiscovery = new HazelcastCloudDiscovery_1.HazelcastCloudDiscovery(endpointUrl, connectionTimeoutMillis);
|
|
24
|
+
this.logger = logger;
|
|
25
|
+
}
|
|
26
|
+
HazelcastCloudAddressTranslator.prototype.translate = function (address) {
|
|
27
|
+
var _this = this;
|
|
28
|
+
if (address == null) {
|
|
29
|
+
return Promise.resolve(null);
|
|
30
|
+
}
|
|
31
|
+
var publicAddress = this.privateToPublic.get(address.toString());
|
|
32
|
+
if (publicAddress != null) {
|
|
33
|
+
return Promise.resolve(publicAddress);
|
|
34
|
+
}
|
|
35
|
+
return this.refresh().then(function () {
|
|
36
|
+
if (_this.privateToPublic.get(address.toString())) {
|
|
37
|
+
return _this.privateToPublic.get(address.toString());
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
HazelcastCloudAddressTranslator.prototype.refresh = function () {
|
|
45
|
+
var _this = this;
|
|
46
|
+
return this.hazelcastCloudDiscovery.discoverNodes().then(function (res) {
|
|
47
|
+
_this.privateToPublic = res;
|
|
48
|
+
}).catch(function (e) {
|
|
49
|
+
_this.logger.warn('HazelcastCloudAddressTranslator', 'Failed to load addresses from hazelcast.cloud : ' + e.message);
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
return HazelcastCloudAddressTranslator;
|
|
53
|
+
}());
|
|
54
|
+
exports.HazelcastCloudAddressTranslator = HazelcastCloudAddressTranslator;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import Address = require('../Address');
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import { Properties } from '../config/Properties';
|
|
5
|
+
/**
|
|
6
|
+
* Discovery service that discover nodes via hazelcast.cloud
|
|
7
|
+
* https://coordinator.hazelcast.cloud/cluster/discovery?token=<TOKEN>
|
|
8
|
+
*/
|
|
9
|
+
export declare class HazelcastCloudDiscovery {
|
|
10
|
+
/**
|
|
11
|
+
* Internal client property to change base url of cloud discovery endpoint.
|
|
12
|
+
* Used for testing cloud discovery.
|
|
13
|
+
*/
|
|
14
|
+
private static readonly CLOUD_URL_BASE_PROPERTY;
|
|
15
|
+
private static readonly CLOUD_URL_PATH;
|
|
16
|
+
private static readonly PRIVATE_ADDRESS_PROPERTY;
|
|
17
|
+
private static readonly PUBLIC_ADDRESS_PROPERTY;
|
|
18
|
+
private readonly endpointUrl;
|
|
19
|
+
private readonly connectionTimeoutInMillis;
|
|
20
|
+
constructor(endpointUrl: string, connectionTimeoutInMillis: number);
|
|
21
|
+
static createUrlEndpoint(properties: Properties, cloudToken: string): string;
|
|
22
|
+
discoverNodes(): Promise<Map<string, Address>>;
|
|
23
|
+
callService(): Promise<Map<string, Address>>;
|
|
24
|
+
private parseResponse(data);
|
|
25
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 Util_1 = require("../Util");
|
|
19
|
+
var https_1 = require("https");
|
|
20
|
+
var URL = require("url");
|
|
21
|
+
/**
|
|
22
|
+
* Discovery service that discover nodes via hazelcast.cloud
|
|
23
|
+
* https://coordinator.hazelcast.cloud/cluster/discovery?token=<TOKEN>
|
|
24
|
+
*/
|
|
25
|
+
var HazelcastCloudDiscovery = /** @class */ (function () {
|
|
26
|
+
function HazelcastCloudDiscovery(endpointUrl, connectionTimeoutInMillis) {
|
|
27
|
+
this.endpointUrl = endpointUrl;
|
|
28
|
+
this.connectionTimeoutInMillis = connectionTimeoutInMillis;
|
|
29
|
+
}
|
|
30
|
+
HazelcastCloudDiscovery.createUrlEndpoint = function (properties, cloudToken) {
|
|
31
|
+
var cloudBaseUrl = properties[HazelcastCloudDiscovery.CLOUD_URL_BASE_PROPERTY];
|
|
32
|
+
return cloudBaseUrl + this.CLOUD_URL_PATH + cloudToken;
|
|
33
|
+
};
|
|
34
|
+
HazelcastCloudDiscovery.prototype.discoverNodes = function () {
|
|
35
|
+
return this.callService().catch(function (e) {
|
|
36
|
+
throw e;
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
HazelcastCloudDiscovery.prototype.callService = function () {
|
|
40
|
+
var _this = this;
|
|
41
|
+
var deferred = Util_1.DeferredPromise();
|
|
42
|
+
var url = URL.parse(this.endpointUrl);
|
|
43
|
+
var endpointUrlOptions = {
|
|
44
|
+
host: url.host,
|
|
45
|
+
path: url.path,
|
|
46
|
+
};
|
|
47
|
+
var dataAsAString = '';
|
|
48
|
+
https_1.get(endpointUrlOptions, function (res) {
|
|
49
|
+
res.setEncoding('utf8');
|
|
50
|
+
res.on('data', function (chunk) {
|
|
51
|
+
dataAsAString += chunk;
|
|
52
|
+
});
|
|
53
|
+
res.on('end', function () {
|
|
54
|
+
deferred.resolve(_this.parseResponse(dataAsAString));
|
|
55
|
+
});
|
|
56
|
+
}).on('error', function (e) {
|
|
57
|
+
deferred.reject(e);
|
|
58
|
+
});
|
|
59
|
+
return deferred.promise;
|
|
60
|
+
};
|
|
61
|
+
HazelcastCloudDiscovery.prototype.parseResponse = function (data) {
|
|
62
|
+
var jsonValue = JSON.parse(data);
|
|
63
|
+
var privateToPublicAddresses = new Map();
|
|
64
|
+
for (var _i = 0, jsonValue_1 = jsonValue; _i < jsonValue_1.length; _i++) {
|
|
65
|
+
var value = jsonValue_1[_i];
|
|
66
|
+
var privateAddress = value[HazelcastCloudDiscovery.PRIVATE_ADDRESS_PROPERTY];
|
|
67
|
+
var publicAddress = value[HazelcastCloudDiscovery.PUBLIC_ADDRESS_PROPERTY];
|
|
68
|
+
var publicAddr = Util_1.AddressHelper.createAddressFromString(publicAddress.toString(), -1);
|
|
69
|
+
// If not explicitly given, create the private address with the public addresses port
|
|
70
|
+
var privateAddr = Util_1.AddressHelper.createAddressFromString(privateAddress.toString(), publicAddr.port);
|
|
71
|
+
privateToPublicAddresses.set(privateAddr.toString(), publicAddr);
|
|
72
|
+
}
|
|
73
|
+
return privateToPublicAddresses;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Internal client property to change base url of cloud discovery endpoint.
|
|
77
|
+
* Used for testing cloud discovery.
|
|
78
|
+
*/
|
|
79
|
+
HazelcastCloudDiscovery.CLOUD_URL_BASE_PROPERTY = 'hazelcast.client.cloud.url';
|
|
80
|
+
HazelcastCloudDiscovery.CLOUD_URL_PATH = '/cluster/discovery?token=';
|
|
81
|
+
HazelcastCloudDiscovery.PRIVATE_ADDRESS_PROPERTY = 'private-address';
|
|
82
|
+
HazelcastCloudDiscovery.PUBLIC_ADDRESS_PROPERTY = 'public-address';
|
|
83
|
+
return HazelcastCloudDiscovery;
|
|
84
|
+
}());
|
|
85
|
+
exports.HazelcastCloudDiscovery = HazelcastCloudDiscovery;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Address = require('./Address');
|
|
2
|
+
import TopicOverloadPolicy = require('./proxy/topic/TopicOverloadPolicy');
|
|
3
|
+
import * as Aggregators from './aggregation/Aggregators';
|
|
4
|
+
import { ClientInfo } from './ClientInfo';
|
|
5
|
+
import * as Config from './config/Config';
|
|
6
|
+
import { ConfigBuilder } from './config/ConfigBuilder';
|
|
7
|
+
import { ImportConfig } from './config/ImportConfig';
|
|
8
|
+
import * as Predicates from './core/Predicate';
|
|
9
|
+
import { IterationType } from './core/Predicate';
|
|
10
|
+
import HazelcastClient from './HazelcastClient';
|
|
11
|
+
import * as HazelcastErrors from './HazelcastError';
|
|
12
|
+
import { IMap } from './proxy/IMap';
|
|
13
|
+
import { ReadResultSet } from './proxy/ringbuffer/ReadResultSet';
|
|
14
|
+
import { ClassDefinitionBuilder } from './serialization/portable/ClassDefinitionBuilder';
|
|
15
|
+
import { ClassDefinition, FieldDefinition } from './serialization/portable/ClassDefinition';
|
|
16
|
+
import { MemberAttributeEvent, MemberAttributeOperationType } from './core/MemberAttributeEvent';
|
|
17
|
+
import { EvictionPolicy } from './config/EvictionPolicy';
|
|
18
|
+
import { InMemoryFormat } from './config/InMemoryFormat';
|
|
19
|
+
import { ItemEvent, ItemEventType } from './core/ItemListener';
|
|
20
|
+
import { MapEvent } from './core/MapListener';
|
|
21
|
+
import { EntryEvent } from './core/EntryListener';
|
|
22
|
+
import { LogLevel } from './logging/LoggingService';
|
|
23
|
+
import { JsonStringDeserializationPolicy } from './config/JsonStringDeserializationPolicy';
|
|
24
|
+
import { HazelcastJsonValue } from './core/HazelcastJsonValue';
|
|
25
|
+
import { StringSerializationPolicy } from './config/StringSerializationPolicy';
|
|
26
|
+
export { HazelcastClient as Client, Config, ConfigBuilder, ClientInfo, IMap, Address, Predicates, TopicOverloadPolicy, HazelcastErrors, ReadResultSet, IterationType, Aggregators, ImportConfig, FieldDefinition, ClassDefinition, ClassDefinitionBuilder, MemberAttributeEvent, MemberAttributeOperationType, EvictionPolicy, InMemoryFormat, ItemEvent, ItemEventType, MapEvent, EntryEvent, LogLevel, JsonStringDeserializationPolicy, HazelcastJsonValue, StringSerializationPolicy };
|