@celerispay/hazelcast-client 3.12.5-1
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 +140 -0
- package/CONFIG.md +503 -0
- package/FAILOVER_FIXES.md +202 -0
- package/LICENSE +202 -0
- package/QUICK_START.md +232 -0
- package/README.md +178 -0
- package/RELEASE_SUMMARY.md +260 -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 +55 -0
- package/lib/PartitionService.js +160 -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 +65 -0
- package/lib/invocation/ClientConnectionManager.js +360 -0
- package/lib/invocation/ClientEventRegistration.d.ts +10 -0
- package/lib/invocation/ClientEventRegistration.js +30 -0
- package/lib/invocation/ClusterService.d.ts +127 -0
- package/lib/invocation/ClusterService.js +581 -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 +62 -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 +55 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var __extends = (this && this.__extends) || (function () {
|
|
18
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
19
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
extendStatics(d, b);
|
|
23
|
+
function __() { this.constructor = d; }
|
|
24
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25
|
+
};
|
|
26
|
+
})();
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var safe_buffer_1 = require("safe-buffer");
|
|
29
|
+
var Promise = require("bluebird");
|
|
30
|
+
var events_1 = require("events");
|
|
31
|
+
var HazelcastError_1 = require("../HazelcastError");
|
|
32
|
+
var ClientConnection_1 = require("./ClientConnection");
|
|
33
|
+
var ConnectionAuthenticator_1 = require("./ConnectionAuthenticator");
|
|
34
|
+
var net = require("net");
|
|
35
|
+
var tls = require("tls");
|
|
36
|
+
var Util_1 = require("../Util");
|
|
37
|
+
var BasicSSLOptionsFactory_1 = require("../connection/BasicSSLOptionsFactory");
|
|
38
|
+
var EMIT_CONNECTION_CLOSED = 'connectionClosed';
|
|
39
|
+
var EMIT_CONNECTION_OPENED = 'connectionOpened';
|
|
40
|
+
/**
|
|
41
|
+
* Maintains connections between the client and members of the cluster.
|
|
42
|
+
*/
|
|
43
|
+
var ClientConnectionManager = /** @class */ (function (_super) {
|
|
44
|
+
__extends(ClientConnectionManager, _super);
|
|
45
|
+
function ClientConnectionManager(client, addressTranslator, addressProviders) {
|
|
46
|
+
var _this = _super.call(this) || this;
|
|
47
|
+
_this.establishedConnections = {};
|
|
48
|
+
_this.pendingConnections = {};
|
|
49
|
+
_this.failedConnections = new Set();
|
|
50
|
+
_this.maxConnectionRetries = 3;
|
|
51
|
+
_this.connectionRetryDelay = 1000;
|
|
52
|
+
_this.connectionCleanupTask = null;
|
|
53
|
+
_this.connectionCleanupInterval = 15000; // 15 seconds between cleanup checks
|
|
54
|
+
_this.client = client;
|
|
55
|
+
_this.logger = _this.client.getLoggingService().getLogger();
|
|
56
|
+
_this.addressTranslator = addressTranslator;
|
|
57
|
+
_this.addressProviders = addressProviders;
|
|
58
|
+
_this.startConnectionHealthCheck();
|
|
59
|
+
_this.startConnectionCleanupTask();
|
|
60
|
+
return _this;
|
|
61
|
+
}
|
|
62
|
+
ClientConnectionManager.prototype.startConnectionHealthCheck = function () {
|
|
63
|
+
var _this = this;
|
|
64
|
+
// Check connection health every 5 seconds
|
|
65
|
+
this.connectionHealthCheckInterval = setInterval(function () {
|
|
66
|
+
_this.checkConnectionHealth();
|
|
67
|
+
}, 5000);
|
|
68
|
+
};
|
|
69
|
+
ClientConnectionManager.prototype.startConnectionCleanupTask = function () {
|
|
70
|
+
var _this = this;
|
|
71
|
+
// Periodically clean up stale connections and failed connection tracking
|
|
72
|
+
this.connectionCleanupTask = setInterval(function () {
|
|
73
|
+
_this.cleanupStaleConnections();
|
|
74
|
+
}, this.connectionCleanupInterval);
|
|
75
|
+
};
|
|
76
|
+
ClientConnectionManager.prototype.cleanupStaleConnections = function () {
|
|
77
|
+
var _this = this;
|
|
78
|
+
var now = Date.now();
|
|
79
|
+
var staleThreshold = 60000; // 1 minute threshold for stale connections
|
|
80
|
+
// Clean up failed connections that are older than threshold
|
|
81
|
+
var addressesToRemove = [];
|
|
82
|
+
this.failedConnections.forEach(function (address) {
|
|
83
|
+
// For now, we'll use a simple cleanup strategy
|
|
84
|
+
// In a more sophisticated implementation, we could track timestamps
|
|
85
|
+
addressesToRemove.push(address);
|
|
86
|
+
});
|
|
87
|
+
if (addressesToRemove.length > 0) {
|
|
88
|
+
this.logger.debug('ClientConnectionManager', "Cleaning up " + addressesToRemove.length + " stale failed connections");
|
|
89
|
+
addressesToRemove.forEach(function (address) {
|
|
90
|
+
_this.failedConnections.delete(address);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// Clean up any connections that are not responding
|
|
94
|
+
Object.keys(this.establishedConnections).forEach(function (addressStr) {
|
|
95
|
+
var connection = _this.establishedConnections[addressStr];
|
|
96
|
+
if (connection && !connection.isAlive()) {
|
|
97
|
+
_this.logger.warn('ClientConnectionManager', "Cleaning up stale connection to " + addressStr);
|
|
98
|
+
_this.destroyConnection(connection.getAddress());
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
ClientConnectionManager.prototype.checkConnectionHealth = function () {
|
|
103
|
+
// Use Object.keys() instead of Object.values() for compatibility
|
|
104
|
+
var connectionKeys = Object.keys(this.establishedConnections);
|
|
105
|
+
for (var _i = 0, connectionKeys_1 = connectionKeys; _i < connectionKeys_1.length; _i++) {
|
|
106
|
+
var key = connectionKeys_1[_i];
|
|
107
|
+
var connection = this.establishedConnections[key];
|
|
108
|
+
if (!connection.isAlive()) {
|
|
109
|
+
this.logger.warn('ClientConnectionManager', "Connection to " + connection.getAddress().toString() + " is not alive, destroying it");
|
|
110
|
+
this.destroyConnection(connection.getAddress());
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
ClientConnectionManager.prototype.isConnectionHealthy = function (connection) {
|
|
115
|
+
// Only check if connection is alive - isAuthenticated() method doesn't exist
|
|
116
|
+
return connection.isAlive();
|
|
117
|
+
};
|
|
118
|
+
ClientConnectionManager.prototype.retryConnection = function (address, asOwner, retryCount) {
|
|
119
|
+
var _this = this;
|
|
120
|
+
if (retryCount === void 0) { retryCount = 0; }
|
|
121
|
+
return this.createConnection(address, asOwner).then(function (connection) {
|
|
122
|
+
_this.failedConnections.delete(address.toString());
|
|
123
|
+
return connection;
|
|
124
|
+
}).catch(function (error) {
|
|
125
|
+
if (retryCount < _this.maxConnectionRetries) {
|
|
126
|
+
_this.logger.warn('ClientConnectionManager', "Connection attempt " + (retryCount + 1) + " failed for " + address.toString() + ", retrying in " + _this.connectionRetryDelay + "ms");
|
|
127
|
+
return new Promise(function (resolve) {
|
|
128
|
+
setTimeout(function () {
|
|
129
|
+
_this.retryConnection(address, asOwner, retryCount + 1).then(resolve).catch(resolve);
|
|
130
|
+
}, _this.connectionRetryDelay);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
_this.failedConnections.add(address.toString());
|
|
135
|
+
_this.logger.error('ClientConnectionManager', "Failed to connect to " + address.toString() + " after " + _this.maxConnectionRetries + " attempts");
|
|
136
|
+
throw error;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
ClientConnectionManager.prototype.createConnection = function (address, asOwner) {
|
|
141
|
+
var _this = this;
|
|
142
|
+
return this.addressTranslator.translate(address).then(function (addr) {
|
|
143
|
+
if (addr == null) {
|
|
144
|
+
throw new RangeError('Address Translator could not translate address ' + address.toString());
|
|
145
|
+
}
|
|
146
|
+
return _this.triggerConnect(addr, asOwner).then(function (socket) {
|
|
147
|
+
var clientConnection = new ClientConnection_1.ClientConnection(_this.client, addr, socket);
|
|
148
|
+
return _this.initiateCommunication(clientConnection).then(function () {
|
|
149
|
+
return clientConnection.registerResponseCallback(function (data) {
|
|
150
|
+
_this.client.getInvocationService().processResponse(data);
|
|
151
|
+
});
|
|
152
|
+
}).then(function () {
|
|
153
|
+
return _this.authenticate(clientConnection, asOwner);
|
|
154
|
+
}).then(function () {
|
|
155
|
+
return clientConnection;
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
ClientConnectionManager.prototype.getActiveConnections = function () {
|
|
161
|
+
return this.establishedConnections;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Returns the {@link ClientConnection} with given {@link Address}. If there is no such connection established,
|
|
165
|
+
* it first connects to the address and then return the {@link ClientConnection}.
|
|
166
|
+
* @param address
|
|
167
|
+
* @param asOwner Sets the connected node as owner of this client if true.
|
|
168
|
+
* @returns {Promise<ClientConnection>|Promise<T>}
|
|
169
|
+
*/
|
|
170
|
+
ClientConnectionManager.prototype.getOrConnect = function (address, asOwner) {
|
|
171
|
+
var _this = this;
|
|
172
|
+
if (asOwner === void 0) { asOwner = false; }
|
|
173
|
+
var addressIndex = address.toString();
|
|
174
|
+
// Check if connection is already established and healthy
|
|
175
|
+
var establishedConnection = this.establishedConnections[addressIndex];
|
|
176
|
+
if (establishedConnection && this.isConnectionHealthy(establishedConnection)) {
|
|
177
|
+
return Promise.resolve(establishedConnection);
|
|
178
|
+
}
|
|
179
|
+
// If existing connection is unhealthy, destroy it
|
|
180
|
+
if (establishedConnection && !this.isConnectionHealthy(establishedConnection)) {
|
|
181
|
+
this.logger.warn('ClientConnectionManager', "Destroying unhealthy connection to " + addressIndex);
|
|
182
|
+
this.destroyConnection(address);
|
|
183
|
+
}
|
|
184
|
+
// Check if we're already trying to connect
|
|
185
|
+
var pendingConnection = this.pendingConnections[addressIndex];
|
|
186
|
+
if (pendingConnection) {
|
|
187
|
+
return pendingConnection.promise;
|
|
188
|
+
}
|
|
189
|
+
// Check if this address has failed too many times recently
|
|
190
|
+
if (this.failedConnections.has(addressIndex)) {
|
|
191
|
+
var error = new Error("Address " + addressIndex + " has failed recently and is temporarily blocked");
|
|
192
|
+
return Promise.reject(error);
|
|
193
|
+
}
|
|
194
|
+
var connectionResolver = Util_1.DeferredPromise();
|
|
195
|
+
this.pendingConnections[addressIndex] = connectionResolver;
|
|
196
|
+
this.retryConnection(address, asOwner)
|
|
197
|
+
.then(function (clientConnection) {
|
|
198
|
+
_this.establishedConnections[clientConnection.getAddress().toString()] = clientConnection;
|
|
199
|
+
_this.onConnectionOpened(clientConnection);
|
|
200
|
+
connectionResolver.resolve(clientConnection);
|
|
201
|
+
})
|
|
202
|
+
.catch(function (e) {
|
|
203
|
+
_this.logger.error('ClientConnectionManager', "Failed to establish connection to " + addressIndex, e);
|
|
204
|
+
connectionResolver.reject(e);
|
|
205
|
+
})
|
|
206
|
+
.finally(function () {
|
|
207
|
+
delete _this.pendingConnections[addressIndex];
|
|
208
|
+
});
|
|
209
|
+
var connectionTimeout = this.client.getConfig().networkConfig.connectionTimeout;
|
|
210
|
+
if (connectionTimeout !== 0) {
|
|
211
|
+
return connectionResolver.promise.timeout(connectionTimeout, new HazelcastError_1.HazelcastError('Connection timed-out')).finally(function () {
|
|
212
|
+
delete _this.pendingConnections[addressIndex];
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
return connectionResolver.promise;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Destroys the connection with given node address.
|
|
219
|
+
* @param address
|
|
220
|
+
*/
|
|
221
|
+
ClientConnectionManager.prototype.destroyConnection = function (address) {
|
|
222
|
+
var addressStr = address.toString();
|
|
223
|
+
// Clean up pending connections
|
|
224
|
+
if (this.pendingConnections.hasOwnProperty(addressStr)) {
|
|
225
|
+
this.pendingConnections[addressStr].reject(new Error('Connection destroyed'));
|
|
226
|
+
delete this.pendingConnections[addressStr];
|
|
227
|
+
}
|
|
228
|
+
// Clean up established connections
|
|
229
|
+
if (this.establishedConnections.hasOwnProperty(addressStr)) {
|
|
230
|
+
var conn = this.establishedConnections[addressStr];
|
|
231
|
+
delete this.establishedConnections[addressStr];
|
|
232
|
+
try {
|
|
233
|
+
conn.close();
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
this.logger.warn('ClientConnectionManager', "Error closing connection to " + addressStr + ":", error);
|
|
237
|
+
}
|
|
238
|
+
this.onConnectionClosed(conn);
|
|
239
|
+
}
|
|
240
|
+
// Mark as failed to prevent immediate reconnection attempts
|
|
241
|
+
this.failedConnections.add(addressStr);
|
|
242
|
+
this.logger.debug('ClientConnectionManager', "Connection to " + addressStr + " destroyed and marked as failed");
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Cleans up all connections to a specific address during failover
|
|
246
|
+
* @param address
|
|
247
|
+
*/
|
|
248
|
+
ClientConnectionManager.prototype.cleanupConnectionsForFailover = function (address) {
|
|
249
|
+
var addressStr = address.toString();
|
|
250
|
+
this.logger.info('ClientConnectionManager', "Cleaning up all connections to " + addressStr + " for failover");
|
|
251
|
+
// Force cleanup of all connection types
|
|
252
|
+
this.destroyConnection(address);
|
|
253
|
+
// Remove from failed connections to allow reconnection after failover
|
|
254
|
+
this.failedConnections.delete(addressStr);
|
|
255
|
+
};
|
|
256
|
+
ClientConnectionManager.prototype.shutdown = function () {
|
|
257
|
+
if (this.connectionHealthCheckInterval) {
|
|
258
|
+
clearInterval(this.connectionHealthCheckInterval);
|
|
259
|
+
}
|
|
260
|
+
if (this.connectionCleanupTask) {
|
|
261
|
+
clearInterval(this.connectionCleanupTask);
|
|
262
|
+
}
|
|
263
|
+
for (var pending in this.pendingConnections) {
|
|
264
|
+
this.pendingConnections[pending].reject(new HazelcastError_1.ClientNotActiveError('Client is shutting down!'));
|
|
265
|
+
}
|
|
266
|
+
for (var conn in this.establishedConnections) {
|
|
267
|
+
this.establishedConnections[conn].close();
|
|
268
|
+
}
|
|
269
|
+
this.failedConnections.clear();
|
|
270
|
+
};
|
|
271
|
+
ClientConnectionManager.prototype.triggerConnect = function (address, asOwner) {
|
|
272
|
+
var _this = this;
|
|
273
|
+
if (!asOwner) {
|
|
274
|
+
if (this.client.getClusterService().getOwnerConnection() == null) {
|
|
275
|
+
var error = new HazelcastError_1.IllegalStateError('Owner connection is not available!');
|
|
276
|
+
return Promise.reject(error);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (this.client.getConfig().networkConfig.sslConfig.enabled) {
|
|
280
|
+
if (this.client.getConfig().networkConfig.sslConfig.sslOptions) {
|
|
281
|
+
var opts = this.client.getConfig().networkConfig.sslConfig.sslOptions;
|
|
282
|
+
return this.connectTLSSocket(address, opts);
|
|
283
|
+
}
|
|
284
|
+
else if (this.client.getConfig().networkConfig.sslConfig.sslOptionsFactoryConfig) {
|
|
285
|
+
var factoryConfig = this.client.getConfig().networkConfig.sslConfig.sslOptionsFactoryConfig;
|
|
286
|
+
var factoryProperties = this.client.getConfig().networkConfig.sslConfig.sslOptionsFactoryProperties;
|
|
287
|
+
var factory_1;
|
|
288
|
+
if (factoryConfig.path) {
|
|
289
|
+
factory_1 = new (Util_1.loadNameFromPath(factoryConfig.path, factoryConfig.exportedName))();
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
factory_1 = new BasicSSLOptionsFactory_1.BasicSSLOptionsFactory();
|
|
293
|
+
}
|
|
294
|
+
return factory_1.init(factoryProperties).then(function () {
|
|
295
|
+
return _this.connectTLSSocket(address, factory_1.getSSLOptions());
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
// the default behavior when ssl is enabled
|
|
300
|
+
var opts = this.client.getConfig().networkConfig.sslConfig.sslOptions = {
|
|
301
|
+
checkServerIdentity: function () { return null; },
|
|
302
|
+
rejectUnauthorized: true,
|
|
303
|
+
};
|
|
304
|
+
return this.connectTLSSocket(address, opts);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
return this.connectNetSocket(address);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
ClientConnectionManager.prototype.connectTLSSocket = function (address, configOpts) {
|
|
312
|
+
var _this = this;
|
|
313
|
+
var connectionResolver = Util_1.DeferredPromise();
|
|
314
|
+
var socket = tls.connect(address.port, address.host, configOpts);
|
|
315
|
+
socket.once('secureConnect', function () {
|
|
316
|
+
connectionResolver.resolve(socket);
|
|
317
|
+
});
|
|
318
|
+
socket.on('error', function (e) {
|
|
319
|
+
_this.logger.warn('ClientConnectionManager', 'Could not connect to address ' + address.toString(), e);
|
|
320
|
+
connectionResolver.reject(e);
|
|
321
|
+
if (e.code === 'EPIPE' || e.code === 'ECONNRESET') {
|
|
322
|
+
_this.destroyConnection(address);
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
return connectionResolver.promise;
|
|
326
|
+
};
|
|
327
|
+
ClientConnectionManager.prototype.connectNetSocket = function (address) {
|
|
328
|
+
var _this = this;
|
|
329
|
+
var connectionResolver = Util_1.DeferredPromise();
|
|
330
|
+
var socket = net.connect(address.port, address.host);
|
|
331
|
+
socket.once('connect', function () {
|
|
332
|
+
connectionResolver.resolve(socket);
|
|
333
|
+
});
|
|
334
|
+
socket.on('error', function (e) {
|
|
335
|
+
_this.logger.warn('ClientConnectionManager', 'Could not connect to address ' + address.toString(), e);
|
|
336
|
+
connectionResolver.reject(e);
|
|
337
|
+
if (e.code === 'EPIPE' || e.code === 'ECONNRESET') {
|
|
338
|
+
_this.destroyConnection(address);
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
return connectionResolver.promise;
|
|
342
|
+
};
|
|
343
|
+
ClientConnectionManager.prototype.initiateCommunication = function (connection) {
|
|
344
|
+
// Send the protocol version
|
|
345
|
+
var buffer = safe_buffer_1.Buffer.from('CB2');
|
|
346
|
+
return connection.write(buffer);
|
|
347
|
+
};
|
|
348
|
+
ClientConnectionManager.prototype.onConnectionClosed = function (connection) {
|
|
349
|
+
this.emit(EMIT_CONNECTION_CLOSED, connection);
|
|
350
|
+
};
|
|
351
|
+
ClientConnectionManager.prototype.onConnectionOpened = function (connection) {
|
|
352
|
+
this.emit(EMIT_CONNECTION_OPENED, connection);
|
|
353
|
+
};
|
|
354
|
+
ClientConnectionManager.prototype.authenticate = function (connection, ownerConnection) {
|
|
355
|
+
var authenticator = new ConnectionAuthenticator_1.ConnectionAuthenticator(connection, this.client);
|
|
356
|
+
return authenticator.authenticate(ownerConnection);
|
|
357
|
+
};
|
|
358
|
+
return ClientConnectionManager;
|
|
359
|
+
}(events_1.EventEmitter));
|
|
360
|
+
exports.ClientConnectionManager = ClientConnectionManager;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ListenerMessageCodec } from '../ListenerMessageCodec';
|
|
2
|
+
import { ClientConnection } from './ClientConnection';
|
|
3
|
+
export declare class ClientEventRegistration {
|
|
4
|
+
readonly serverRegistrationId: string;
|
|
5
|
+
readonly correlationId: number;
|
|
6
|
+
readonly subscriber: ClientConnection;
|
|
7
|
+
readonly codec: ListenerMessageCodec;
|
|
8
|
+
constructor(serverRegistrationId: string, correlationId: number, subscriber: ClientConnection, codec: ListenerMessageCodec);
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 ClientEventRegistration = /** @class */ (function () {
|
|
19
|
+
function ClientEventRegistration(serverRegistrationId, correlationId, subscriber, codec) {
|
|
20
|
+
this.serverRegistrationId = serverRegistrationId;
|
|
21
|
+
this.correlationId = correlationId;
|
|
22
|
+
this.subscriber = subscriber;
|
|
23
|
+
this.codec = codec;
|
|
24
|
+
}
|
|
25
|
+
ClientEventRegistration.prototype.toString = function () {
|
|
26
|
+
return this.serverRegistrationId;
|
|
27
|
+
};
|
|
28
|
+
return ClientEventRegistration;
|
|
29
|
+
}());
|
|
30
|
+
exports.ClientEventRegistration = ClientEventRegistration;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import { ClientConnection } from './ClientConnection';
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import { Member } from '../core/Member';
|
|
5
|
+
import { ClientInfo } from '../ClientInfo';
|
|
6
|
+
import HazelcastClient from '../HazelcastClient';
|
|
7
|
+
import { MemberSelector } from '../core/MemberSelector';
|
|
8
|
+
import { MembershipListener } from '../core/MembershipListener';
|
|
9
|
+
export declare enum MemberEvent {
|
|
10
|
+
ADDED = 1,
|
|
11
|
+
REMOVED = 2,
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Manages the relationship of this client with the cluster.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ClusterService {
|
|
17
|
+
/**
|
|
18
|
+
* The unique identifier of the owner server node. This node is responsible for resource cleanup
|
|
19
|
+
*/
|
|
20
|
+
ownerUuid: string;
|
|
21
|
+
/**
|
|
22
|
+
* The unique identifier of this client instance. Assigned by owner node on authentication
|
|
23
|
+
*/
|
|
24
|
+
uuid: string;
|
|
25
|
+
private knownAddresses;
|
|
26
|
+
private members;
|
|
27
|
+
private client;
|
|
28
|
+
private ownerConnection;
|
|
29
|
+
private membershipListeners;
|
|
30
|
+
private logger;
|
|
31
|
+
private failoverInProgress;
|
|
32
|
+
private lastFailoverAttempt;
|
|
33
|
+
private readonly failoverCooldown;
|
|
34
|
+
private downAddresses;
|
|
35
|
+
private readonly addressBlockDuration;
|
|
36
|
+
private reconnectionTask;
|
|
37
|
+
private readonly reconnectionInterval;
|
|
38
|
+
constructor(client: HazelcastClient);
|
|
39
|
+
/**
|
|
40
|
+
* Starts cluster service.
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
start(): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Connects to cluster. It uses the addresses provided in the configuration.
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
connectToCluster(): Promise<void>;
|
|
49
|
+
getPossibleMemberAddresses(): Promise<string[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the list of members in the cluster.
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
getMembers(selector?: MemberSelector): Member[];
|
|
55
|
+
getMember(uuid: string): Member;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the number of nodes in cluster.
|
|
58
|
+
* @returns {number}
|
|
59
|
+
*/
|
|
60
|
+
getSize(): number;
|
|
61
|
+
/**
|
|
62
|
+
* Returns information about this client.
|
|
63
|
+
* @returns {ClientInfo}
|
|
64
|
+
*/
|
|
65
|
+
getClientInfo(): ClientInfo;
|
|
66
|
+
/**
|
|
67
|
+
* Returns the connection associated with owner node of this client.
|
|
68
|
+
* @returns {ClientConnection}
|
|
69
|
+
*/
|
|
70
|
+
getOwnerConnection(): ClientConnection;
|
|
71
|
+
/**
|
|
72
|
+
* Adds MembershipListener to listen for membership updates. There is no check for duplicate registrations,
|
|
73
|
+
* so if you register the listener twice, it will get events twice.
|
|
74
|
+
* @param {MembershipListener} The listener to be registered
|
|
75
|
+
* @return The registration ID
|
|
76
|
+
*/
|
|
77
|
+
addMembershipListener(membershipListener: MembershipListener): string;
|
|
78
|
+
/**
|
|
79
|
+
* Removes registered MembershipListener.
|
|
80
|
+
* @param {string} The registration ID
|
|
81
|
+
* @return {boolean} true if successfully removed, false otherwise
|
|
82
|
+
*/
|
|
83
|
+
removeMembershipListener(registrationId: string): boolean;
|
|
84
|
+
initMembershipListener(): Promise<void>;
|
|
85
|
+
private initHeartbeatListener();
|
|
86
|
+
private initConnectionListener();
|
|
87
|
+
private onConnectionClosed(connection);
|
|
88
|
+
private onHeartbeatStopped(connection);
|
|
89
|
+
private triggerFailover();
|
|
90
|
+
private isAddressKnownDown(address);
|
|
91
|
+
private markAddressAsDown(address);
|
|
92
|
+
private getDownAddressesInfo();
|
|
93
|
+
private tryConnectingToAddresses(index, remainingAttemptLimit, attemptPeriod, cause?);
|
|
94
|
+
private handleMember(member, eventType);
|
|
95
|
+
private handleMemberList(members);
|
|
96
|
+
private detectMembershipEvents(prevMembers);
|
|
97
|
+
private fireMembershipEvent(membershipEvent);
|
|
98
|
+
private handleMemberAttributeChange(uuid, key, operationType, value);
|
|
99
|
+
private memberAdded(member);
|
|
100
|
+
private memberRemoved(member);
|
|
101
|
+
private startReconnectionTask();
|
|
102
|
+
private attemptReconnectionToFailedNodes();
|
|
103
|
+
/**
|
|
104
|
+
* Attempts to establish a connection to a specific address
|
|
105
|
+
* @param address The address to reconnect to
|
|
106
|
+
*/
|
|
107
|
+
private attemptReconnectionToAddress(address);
|
|
108
|
+
/**
|
|
109
|
+
* Evaluates whether we should switch ownership to a reconnected node
|
|
110
|
+
* @param address The address of the reconnected node
|
|
111
|
+
* @param connection The connection to the reconnected node
|
|
112
|
+
*/
|
|
113
|
+
private evaluateOwnershipChange(address, connection);
|
|
114
|
+
/**
|
|
115
|
+
* Promotes a connection to owner status
|
|
116
|
+
* @param connection The connection to promote
|
|
117
|
+
* @param address The address of the promoted connection
|
|
118
|
+
*/
|
|
119
|
+
private promoteToOwner(connection, address);
|
|
120
|
+
/**
|
|
121
|
+
* Marks an address as down with a custom block duration
|
|
122
|
+
* @param address The address to mark as down
|
|
123
|
+
* @param blockDuration The duration to block the address (in milliseconds)
|
|
124
|
+
*/
|
|
125
|
+
private markAddressAsDownWithDuration(address, blockDuration);
|
|
126
|
+
shutdown(): void;
|
|
127
|
+
}
|