@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
package/lib/index.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
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 Address = require("./Address");
|
|
19
|
+
exports.Address = Address;
|
|
20
|
+
var TopicOverloadPolicy = require("./proxy/topic/TopicOverloadPolicy");
|
|
21
|
+
exports.TopicOverloadPolicy = TopicOverloadPolicy;
|
|
22
|
+
var Aggregators = require("./aggregation/Aggregators");
|
|
23
|
+
exports.Aggregators = Aggregators;
|
|
24
|
+
var ClientInfo_1 = require("./ClientInfo");
|
|
25
|
+
exports.ClientInfo = ClientInfo_1.ClientInfo;
|
|
26
|
+
var Config = require("./config/Config");
|
|
27
|
+
exports.Config = Config;
|
|
28
|
+
var ConfigBuilder_1 = require("./config/ConfigBuilder");
|
|
29
|
+
exports.ConfigBuilder = ConfigBuilder_1.ConfigBuilder;
|
|
30
|
+
var Predicates = require("./core/Predicate");
|
|
31
|
+
exports.Predicates = Predicates;
|
|
32
|
+
var Predicate_1 = require("./core/Predicate");
|
|
33
|
+
exports.IterationType = Predicate_1.IterationType;
|
|
34
|
+
var HazelcastClient_1 = require("./HazelcastClient");
|
|
35
|
+
exports.Client = HazelcastClient_1.default;
|
|
36
|
+
var HazelcastErrors = require("./HazelcastError");
|
|
37
|
+
exports.HazelcastErrors = HazelcastErrors;
|
|
38
|
+
var ClassDefinitionBuilder_1 = require("./serialization/portable/ClassDefinitionBuilder");
|
|
39
|
+
exports.ClassDefinitionBuilder = ClassDefinitionBuilder_1.ClassDefinitionBuilder;
|
|
40
|
+
var ClassDefinition_1 = require("./serialization/portable/ClassDefinition");
|
|
41
|
+
exports.ClassDefinition = ClassDefinition_1.ClassDefinition;
|
|
42
|
+
exports.FieldDefinition = ClassDefinition_1.FieldDefinition;
|
|
43
|
+
var MemberAttributeEvent_1 = require("./core/MemberAttributeEvent");
|
|
44
|
+
exports.MemberAttributeEvent = MemberAttributeEvent_1.MemberAttributeEvent;
|
|
45
|
+
exports.MemberAttributeOperationType = MemberAttributeEvent_1.MemberAttributeOperationType;
|
|
46
|
+
var EvictionPolicy_1 = require("./config/EvictionPolicy");
|
|
47
|
+
exports.EvictionPolicy = EvictionPolicy_1.EvictionPolicy;
|
|
48
|
+
var InMemoryFormat_1 = require("./config/InMemoryFormat");
|
|
49
|
+
exports.InMemoryFormat = InMemoryFormat_1.InMemoryFormat;
|
|
50
|
+
var ItemListener_1 = require("./core/ItemListener");
|
|
51
|
+
exports.ItemEvent = ItemListener_1.ItemEvent;
|
|
52
|
+
exports.ItemEventType = ItemListener_1.ItemEventType;
|
|
53
|
+
var MapListener_1 = require("./core/MapListener");
|
|
54
|
+
exports.MapEvent = MapListener_1.MapEvent;
|
|
55
|
+
var EntryListener_1 = require("./core/EntryListener");
|
|
56
|
+
exports.EntryEvent = EntryListener_1.EntryEvent;
|
|
57
|
+
var LoggingService_1 = require("./logging/LoggingService");
|
|
58
|
+
exports.LogLevel = LoggingService_1.LogLevel;
|
|
59
|
+
var JsonStringDeserializationPolicy_1 = require("./config/JsonStringDeserializationPolicy");
|
|
60
|
+
exports.JsonStringDeserializationPolicy = JsonStringDeserializationPolicy_1.JsonStringDeserializationPolicy;
|
|
61
|
+
var HazelcastJsonValue_1 = require("./core/HazelcastJsonValue");
|
|
62
|
+
exports.HazelcastJsonValue = HazelcastJsonValue_1.HazelcastJsonValue;
|
|
63
|
+
var StringSerializationPolicy_1 = require("./config/StringSerializationPolicy");
|
|
64
|
+
exports.StringSerializationPolicy = StringSerializationPolicy_1.StringSerializationPolicy;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="bluebird" />
|
|
3
|
+
import { Buffer } from 'safe-buffer';
|
|
4
|
+
import * as Promise from 'bluebird';
|
|
5
|
+
import * as net from 'net';
|
|
6
|
+
import { EventEmitter } from 'events';
|
|
7
|
+
import HazelcastClient from '../HazelcastClient';
|
|
8
|
+
import Address = require('../Address');
|
|
9
|
+
export declare class PipelinedWriter extends EventEmitter {
|
|
10
|
+
private readonly socket;
|
|
11
|
+
private queue;
|
|
12
|
+
private error;
|
|
13
|
+
private scheduled;
|
|
14
|
+
private readonly threshold;
|
|
15
|
+
constructor(socket: net.Socket, threshold: number);
|
|
16
|
+
write(buffer: Buffer, resolver: Promise.Resolver<void>): void;
|
|
17
|
+
private schedule();
|
|
18
|
+
private process();
|
|
19
|
+
private handleError(err, sentResolvers);
|
|
20
|
+
}
|
|
21
|
+
export declare class DirectWriter extends EventEmitter {
|
|
22
|
+
private readonly socket;
|
|
23
|
+
constructor(socket: net.Socket);
|
|
24
|
+
write(buffer: Buffer, resolver: Promise.Resolver<void>): void;
|
|
25
|
+
}
|
|
26
|
+
export declare class FrameReader {
|
|
27
|
+
private chunks;
|
|
28
|
+
private chunksTotalSize;
|
|
29
|
+
private frameSize;
|
|
30
|
+
append(buffer: Buffer): void;
|
|
31
|
+
read(): Buffer;
|
|
32
|
+
private readFrameSize();
|
|
33
|
+
}
|
|
34
|
+
export declare class ClientConnection {
|
|
35
|
+
private address;
|
|
36
|
+
private readonly localAddress;
|
|
37
|
+
private lastReadTimeMillis;
|
|
38
|
+
private lastWriteTimeMillis;
|
|
39
|
+
private heartbeating;
|
|
40
|
+
private readonly client;
|
|
41
|
+
private readonly startTime;
|
|
42
|
+
private closedTime;
|
|
43
|
+
private connectedServerVersionString;
|
|
44
|
+
private connectedServerVersion;
|
|
45
|
+
private authenticatedAsOwner;
|
|
46
|
+
private readonly socket;
|
|
47
|
+
private readonly writer;
|
|
48
|
+
private readonly reader;
|
|
49
|
+
constructor(client: HazelcastClient, address: Address, socket: net.Socket);
|
|
50
|
+
/**
|
|
51
|
+
* Returns the address of local port that is associated with this connection.
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
getLocalAddress(): Address;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the address of remote node that is associated with this connection.
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
getAddress(): Address;
|
|
60
|
+
setAddress(address: Address): void;
|
|
61
|
+
write(buffer: Buffer): Promise<void>;
|
|
62
|
+
setConnectedServerVersion(versionString: string): void;
|
|
63
|
+
getConnectedServerVersion(): number;
|
|
64
|
+
/**
|
|
65
|
+
* Closes this connection.
|
|
66
|
+
*/
|
|
67
|
+
close(): void;
|
|
68
|
+
isAlive(): boolean;
|
|
69
|
+
isHeartbeating(): boolean;
|
|
70
|
+
setHeartbeating(heartbeating: boolean): void;
|
|
71
|
+
isAuthenticatedAsOwner(): boolean;
|
|
72
|
+
setAuthenticatedAsOwner(asOwner: boolean): void;
|
|
73
|
+
getStartTime(): number;
|
|
74
|
+
getLastReadTimeMillis(): number;
|
|
75
|
+
getLastWriteTimeMillis(): number;
|
|
76
|
+
toString(): string;
|
|
77
|
+
/**
|
|
78
|
+
* Registers a function to pass received data on 'data' events on this connection.
|
|
79
|
+
* @param callback
|
|
80
|
+
*/
|
|
81
|
+
registerResponseCallback(callback: Function): void;
|
|
82
|
+
}
|
|
@@ -0,0 +1,307 @@
|
|
|
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 events_1 = require("events");
|
|
30
|
+
var BitsUtil_1 = require("../BitsUtil");
|
|
31
|
+
var BuildInfo_1 = require("../BuildInfo");
|
|
32
|
+
var HazelcastError_1 = require("../HazelcastError");
|
|
33
|
+
var Address = require("../Address");
|
|
34
|
+
var Util_1 = require("../Util");
|
|
35
|
+
var FROZEN_ARRAY = Object.freeze([]);
|
|
36
|
+
var PROPERTY_PIPELINING_ENABLED = 'hazelcast.client.autopipelining.enabled';
|
|
37
|
+
var PROPERTY_PIPELINING_THRESHOLD = 'hazelcast.client.autopipelining.threshold.bytes';
|
|
38
|
+
var PROPERTY_NO_DELAY = 'hazelcast.client.socket.no.delay';
|
|
39
|
+
var PipelinedWriter = /** @class */ (function (_super) {
|
|
40
|
+
__extends(PipelinedWriter, _super);
|
|
41
|
+
function PipelinedWriter(socket, threshold) {
|
|
42
|
+
var _this = _super.call(this) || this;
|
|
43
|
+
_this.queue = [];
|
|
44
|
+
_this.scheduled = false;
|
|
45
|
+
_this.socket = socket;
|
|
46
|
+
_this.threshold = threshold;
|
|
47
|
+
return _this;
|
|
48
|
+
}
|
|
49
|
+
PipelinedWriter.prototype.write = function (buffer, resolver) {
|
|
50
|
+
var _this = this;
|
|
51
|
+
if (this.error) {
|
|
52
|
+
// if there was a write error, it's useless to keep writing to the socket
|
|
53
|
+
return process.nextTick(function () { return resolver.reject(_this.error); });
|
|
54
|
+
}
|
|
55
|
+
this.queue.push({ buffer: buffer, resolver: resolver });
|
|
56
|
+
this.schedule();
|
|
57
|
+
};
|
|
58
|
+
PipelinedWriter.prototype.schedule = function () {
|
|
59
|
+
var _this = this;
|
|
60
|
+
if (!this.scheduled) {
|
|
61
|
+
this.scheduled = true;
|
|
62
|
+
// nextTick allows queue to be processed on the current event loop phase
|
|
63
|
+
process.nextTick(function () { return _this.process(); });
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
PipelinedWriter.prototype.process = function () {
|
|
67
|
+
var _this = this;
|
|
68
|
+
if (this.error) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
var buffers = [];
|
|
72
|
+
var resolvers = [];
|
|
73
|
+
var totalLength = 0;
|
|
74
|
+
while (this.queue.length > 0 && totalLength < this.threshold) {
|
|
75
|
+
var item = this.queue.shift();
|
|
76
|
+
var data = item.buffer;
|
|
77
|
+
totalLength += data.length;
|
|
78
|
+
buffers.push(data);
|
|
79
|
+
resolvers.push(item.resolver);
|
|
80
|
+
}
|
|
81
|
+
if (totalLength === 0) {
|
|
82
|
+
this.scheduled = false;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
// coalesce buffers and write to the socket: no further writes until flushed
|
|
86
|
+
var merged = buffers.length === 1 ? buffers[0] : safe_buffer_1.Buffer.concat(buffers, totalLength);
|
|
87
|
+
this.socket.write(merged, function (err) {
|
|
88
|
+
if (err) {
|
|
89
|
+
_this.handleError(err, resolvers);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
_this.emit('write');
|
|
93
|
+
for (var _i = 0, resolvers_1 = resolvers; _i < resolvers_1.length; _i++) {
|
|
94
|
+
var r = resolvers_1[_i];
|
|
95
|
+
r.resolve();
|
|
96
|
+
}
|
|
97
|
+
if (_this.queue.length === 0) {
|
|
98
|
+
// will start running on the next message
|
|
99
|
+
_this.scheduled = false;
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
// setImmediate allows IO between writes
|
|
103
|
+
setImmediate(function () { return _this.process(); });
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
PipelinedWriter.prototype.handleError = function (err, sentResolvers) {
|
|
107
|
+
this.error = new HazelcastError_1.IOError(err);
|
|
108
|
+
for (var _i = 0, sentResolvers_1 = sentResolvers; _i < sentResolvers_1.length; _i++) {
|
|
109
|
+
var r = sentResolvers_1[_i];
|
|
110
|
+
r.reject(this.error);
|
|
111
|
+
}
|
|
112
|
+
// no more items can be added now
|
|
113
|
+
var q = this.queue;
|
|
114
|
+
this.queue = FROZEN_ARRAY;
|
|
115
|
+
for (var _a = 0, q_1 = q; _a < q_1.length; _a++) {
|
|
116
|
+
var it = q_1[_a];
|
|
117
|
+
it.resolver.reject(this.error);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
return PipelinedWriter;
|
|
121
|
+
}(events_1.EventEmitter));
|
|
122
|
+
exports.PipelinedWriter = PipelinedWriter;
|
|
123
|
+
var DirectWriter = /** @class */ (function (_super) {
|
|
124
|
+
__extends(DirectWriter, _super);
|
|
125
|
+
function DirectWriter(socket) {
|
|
126
|
+
var _this = _super.call(this) || this;
|
|
127
|
+
_this.socket = socket;
|
|
128
|
+
return _this;
|
|
129
|
+
}
|
|
130
|
+
DirectWriter.prototype.write = function (buffer, resolver) {
|
|
131
|
+
var _this = this;
|
|
132
|
+
this.socket.write(buffer, function (err) {
|
|
133
|
+
if (err) {
|
|
134
|
+
resolver.reject(new HazelcastError_1.IOError(err));
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
_this.emit('write');
|
|
138
|
+
resolver.resolve();
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
return DirectWriter;
|
|
142
|
+
}(events_1.EventEmitter));
|
|
143
|
+
exports.DirectWriter = DirectWriter;
|
|
144
|
+
var FrameReader = /** @class */ (function () {
|
|
145
|
+
function FrameReader() {
|
|
146
|
+
this.chunks = [];
|
|
147
|
+
this.chunksTotalSize = 0;
|
|
148
|
+
this.frameSize = 0;
|
|
149
|
+
}
|
|
150
|
+
FrameReader.prototype.append = function (buffer) {
|
|
151
|
+
this.chunksTotalSize += buffer.length;
|
|
152
|
+
this.chunks.push(buffer);
|
|
153
|
+
};
|
|
154
|
+
FrameReader.prototype.read = function () {
|
|
155
|
+
if (this.chunksTotalSize < BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES) {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
if (this.frameSize === 0) {
|
|
159
|
+
this.frameSize = this.readFrameSize();
|
|
160
|
+
}
|
|
161
|
+
if (this.chunksTotalSize < this.frameSize) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
var frame = this.chunks.length === 1 ? this.chunks[0] : safe_buffer_1.Buffer.concat(this.chunks, this.chunksTotalSize);
|
|
165
|
+
if (this.chunksTotalSize > this.frameSize) {
|
|
166
|
+
if (this.chunks.length === 1) {
|
|
167
|
+
this.chunks[0] = frame.slice(this.frameSize);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
this.chunks = [frame.slice(this.frameSize)];
|
|
171
|
+
}
|
|
172
|
+
frame = frame.slice(0, this.frameSize);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
this.chunks = [];
|
|
176
|
+
}
|
|
177
|
+
this.chunksTotalSize -= this.frameSize;
|
|
178
|
+
this.frameSize = 0;
|
|
179
|
+
return frame;
|
|
180
|
+
};
|
|
181
|
+
FrameReader.prototype.readFrameSize = function () {
|
|
182
|
+
if (this.chunks[0].length >= BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES) {
|
|
183
|
+
return this.chunks[0].readInt32LE(0);
|
|
184
|
+
}
|
|
185
|
+
var readChunksSize = 0;
|
|
186
|
+
for (var i = 0; i < this.chunks.length; i++) {
|
|
187
|
+
readChunksSize += this.chunks[i].length;
|
|
188
|
+
if (readChunksSize >= BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES) {
|
|
189
|
+
var merged = safe_buffer_1.Buffer.concat(this.chunks.slice(0, i + 1), readChunksSize);
|
|
190
|
+
return merged.readInt32LE(0);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
throw new Error('Detected illegal internal call in FrameReader!');
|
|
194
|
+
};
|
|
195
|
+
return FrameReader;
|
|
196
|
+
}());
|
|
197
|
+
exports.FrameReader = FrameReader;
|
|
198
|
+
var ClientConnection = /** @class */ (function () {
|
|
199
|
+
function ClientConnection(client, address, socket) {
|
|
200
|
+
var _this = this;
|
|
201
|
+
this.heartbeating = true;
|
|
202
|
+
this.startTime = Date.now();
|
|
203
|
+
var enablePipelining = client.getConfig().properties[PROPERTY_PIPELINING_ENABLED];
|
|
204
|
+
var pipeliningThreshold = client.getConfig().properties[PROPERTY_PIPELINING_THRESHOLD];
|
|
205
|
+
var noDelay = client.getConfig().properties[PROPERTY_NO_DELAY];
|
|
206
|
+
socket.setNoDelay(noDelay);
|
|
207
|
+
this.client = client;
|
|
208
|
+
this.socket = socket;
|
|
209
|
+
this.address = address;
|
|
210
|
+
this.localAddress = new Address(socket.localAddress, socket.localPort);
|
|
211
|
+
this.lastReadTimeMillis = 0;
|
|
212
|
+
this.closedTime = 0;
|
|
213
|
+
this.connectedServerVersionString = null;
|
|
214
|
+
this.connectedServerVersion = BuildInfo_1.BuildInfo.UNKNOWN_VERSION_ID;
|
|
215
|
+
this.writer = enablePipelining ? new PipelinedWriter(socket, pipeliningThreshold) : new DirectWriter(socket);
|
|
216
|
+
this.writer.on('write', function () {
|
|
217
|
+
_this.lastWriteTimeMillis = Date.now();
|
|
218
|
+
});
|
|
219
|
+
this.reader = new FrameReader();
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Returns the address of local port that is associated with this connection.
|
|
223
|
+
* @returns
|
|
224
|
+
*/
|
|
225
|
+
ClientConnection.prototype.getLocalAddress = function () {
|
|
226
|
+
return this.localAddress;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Returns the address of remote node that is associated with this connection.
|
|
230
|
+
* @returns
|
|
231
|
+
*/
|
|
232
|
+
ClientConnection.prototype.getAddress = function () {
|
|
233
|
+
return this.address;
|
|
234
|
+
};
|
|
235
|
+
ClientConnection.prototype.setAddress = function (address) {
|
|
236
|
+
this.address = address;
|
|
237
|
+
};
|
|
238
|
+
ClientConnection.prototype.write = function (buffer) {
|
|
239
|
+
var deferred = Util_1.DeferredPromise();
|
|
240
|
+
this.writer.write(buffer, deferred);
|
|
241
|
+
return deferred.promise;
|
|
242
|
+
};
|
|
243
|
+
ClientConnection.prototype.setConnectedServerVersion = function (versionString) {
|
|
244
|
+
this.connectedServerVersionString = versionString;
|
|
245
|
+
this.connectedServerVersion = BuildInfo_1.BuildInfo.calculateServerVersionFromString(versionString);
|
|
246
|
+
};
|
|
247
|
+
ClientConnection.prototype.getConnectedServerVersion = function () {
|
|
248
|
+
return this.connectedServerVersion;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Closes this connection.
|
|
252
|
+
*/
|
|
253
|
+
ClientConnection.prototype.close = function () {
|
|
254
|
+
this.socket.end();
|
|
255
|
+
this.closedTime = Date.now();
|
|
256
|
+
};
|
|
257
|
+
ClientConnection.prototype.isAlive = function () {
|
|
258
|
+
return this.closedTime === 0;
|
|
259
|
+
};
|
|
260
|
+
ClientConnection.prototype.isHeartbeating = function () {
|
|
261
|
+
return this.heartbeating;
|
|
262
|
+
};
|
|
263
|
+
ClientConnection.prototype.setHeartbeating = function (heartbeating) {
|
|
264
|
+
this.heartbeating = heartbeating;
|
|
265
|
+
};
|
|
266
|
+
ClientConnection.prototype.isAuthenticatedAsOwner = function () {
|
|
267
|
+
return this.authenticatedAsOwner;
|
|
268
|
+
};
|
|
269
|
+
ClientConnection.prototype.setAuthenticatedAsOwner = function (asOwner) {
|
|
270
|
+
this.authenticatedAsOwner = asOwner;
|
|
271
|
+
};
|
|
272
|
+
ClientConnection.prototype.getStartTime = function () {
|
|
273
|
+
return this.startTime;
|
|
274
|
+
};
|
|
275
|
+
ClientConnection.prototype.getLastReadTimeMillis = function () {
|
|
276
|
+
return this.lastReadTimeMillis;
|
|
277
|
+
};
|
|
278
|
+
ClientConnection.prototype.getLastWriteTimeMillis = function () {
|
|
279
|
+
return this.lastWriteTimeMillis;
|
|
280
|
+
};
|
|
281
|
+
ClientConnection.prototype.toString = function () {
|
|
282
|
+
return this.address.toString();
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Registers a function to pass received data on 'data' events on this connection.
|
|
286
|
+
* @param callback
|
|
287
|
+
*/
|
|
288
|
+
ClientConnection.prototype.registerResponseCallback = function (callback) {
|
|
289
|
+
var _this = this;
|
|
290
|
+
this.socket.on('data', function (buffer) {
|
|
291
|
+
_this.lastReadTimeMillis = Date.now();
|
|
292
|
+
_this.reader.append(buffer);
|
|
293
|
+
var frame = _this.reader.read();
|
|
294
|
+
while (frame !== null) {
|
|
295
|
+
callback(frame);
|
|
296
|
+
frame = _this.reader.read();
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
this.socket.on('error', function (e) {
|
|
300
|
+
if (e.code === 'EPIPE' || e.code === 'ECONNRESET') {
|
|
301
|
+
_this.client.getConnectionManager().destroyConnection(_this.address);
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
return ClientConnection;
|
|
306
|
+
}());
|
|
307
|
+
exports.ClientConnection = ClientConnection;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="bluebird" />
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import { EventEmitter } from 'events';
|
|
5
|
+
import HazelcastClient from '../HazelcastClient';
|
|
6
|
+
import { ClientConnection } from './ClientConnection';
|
|
7
|
+
import { AddressTranslator } from '../connection/AddressTranslator';
|
|
8
|
+
import { AddressProvider } from '../connection/AddressProvider';
|
|
9
|
+
import Address = require('../Address');
|
|
10
|
+
/**
|
|
11
|
+
* Maintains connections between the client and members of the cluster.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ClientConnectionManager extends EventEmitter {
|
|
14
|
+
establishedConnections: {
|
|
15
|
+
[address: string]: ClientConnection;
|
|
16
|
+
};
|
|
17
|
+
readonly addressProviders: AddressProvider[];
|
|
18
|
+
private readonly client;
|
|
19
|
+
private pendingConnections;
|
|
20
|
+
private logger;
|
|
21
|
+
private readonly addressTranslator;
|
|
22
|
+
private connectionHealthCheckInterval;
|
|
23
|
+
private failedConnections;
|
|
24
|
+
private readonly maxConnectionRetries;
|
|
25
|
+
private readonly connectionRetryDelay;
|
|
26
|
+
constructor(client: HazelcastClient, addressTranslator: AddressTranslator, addressProviders: AddressProvider[]);
|
|
27
|
+
private startConnectionHealthCheck();
|
|
28
|
+
private checkConnectionHealth();
|
|
29
|
+
private isConnectionHealthy(connection);
|
|
30
|
+
private retryConnection(address, asOwner, retryCount?);
|
|
31
|
+
private createConnection(address, asOwner);
|
|
32
|
+
getActiveConnections(): {
|
|
33
|
+
[address: string]: ClientConnection;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Returns the {@link ClientConnection} with given {@link Address}. If there is no such connection established,
|
|
37
|
+
* it first connects to the address and then return the {@link ClientConnection}.
|
|
38
|
+
* @param address
|
|
39
|
+
* @param asOwner Sets the connected node as owner of this client if true.
|
|
40
|
+
* @returns {Promise<ClientConnection>|Promise<T>}
|
|
41
|
+
*/
|
|
42
|
+
getOrConnect(address: Address, asOwner?: boolean): Promise<ClientConnection>;
|
|
43
|
+
/**
|
|
44
|
+
* Destroys the connection with given node address.
|
|
45
|
+
* @param address
|
|
46
|
+
*/
|
|
47
|
+
destroyConnection(address: Address): void;
|
|
48
|
+
shutdown(): void;
|
|
49
|
+
private triggerConnect(address, asOwner);
|
|
50
|
+
private connectTLSSocket(address, configOpts);
|
|
51
|
+
private connectNetSocket(address);
|
|
52
|
+
private initiateCommunication(connection);
|
|
53
|
+
private onConnectionClosed(connection);
|
|
54
|
+
private onConnectionOpened(connection);
|
|
55
|
+
private authenticate(connection, ownerConnection);
|
|
56
|
+
}
|