@celerispay/hazelcast-client 3.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -0
- package/CHANGELOG.md +116 -0
- package/CONFIG.md +503 -0
- package/FAILOVER_FIXES.md +284 -0
- package/LICENSE +202 -0
- package/QUICK_START.md +143 -0
- package/README.md +178 -0
- package/RELEASE_SUMMARY.md +180 -0
- package/config-schema.json +343 -0
- package/hazelcast-client-default.json +56 -0
- package/hazelcast-client-full.json +137 -0
- package/lib/Address.d.ts +17 -0
- package/lib/Address.js +65 -0
- package/lib/BitsUtil.d.ts +69 -0
- package/lib/BitsUtil.js +202 -0
- package/lib/BuildInfo.d.ts +9 -0
- package/lib/BuildInfo.js +53 -0
- package/lib/ClientInfo.d.ts +15 -0
- package/lib/ClientInfo.js +27 -0
- package/lib/ClientMessage.d.ts +52 -0
- package/lib/ClientMessage.js +217 -0
- package/lib/ClusterDataFactory.d.ts +4 -0
- package/lib/ClusterDataFactory.js +31 -0
- package/lib/ClusterDataFactoryHelper.d.ts +5 -0
- package/lib/ClusterDataFactoryHelper.js +26 -0
- package/lib/DataStoreHashMap.d.ts +20 -0
- package/lib/DataStoreHashMap.js +112 -0
- package/lib/DistributedObject.d.ts +22 -0
- package/lib/DistributedObject.js +17 -0
- package/lib/HazelcastClient.d.ts +201 -0
- package/lib/HazelcastClient.js +370 -0
- package/lib/HazelcastError.d.ts +114 -0
- package/lib/HazelcastError.js +389 -0
- package/lib/HeartbeatService.d.ts +30 -0
- package/lib/HeartbeatService.js +108 -0
- package/lib/LifecycleService.d.ts +32 -0
- package/lib/LifecycleService.js +105 -0
- package/lib/ListenerMessageCodec.d.ts +6 -0
- package/lib/ListenerMessageCodec.js +17 -0
- package/lib/ListenerService.d.ts +35 -0
- package/lib/ListenerService.js +233 -0
- package/lib/LockReferenceIdGenerator.d.ts +6 -0
- package/lib/LockReferenceIdGenerator.js +29 -0
- package/lib/PartitionService.d.ts +38 -0
- package/lib/PartitionService.js +118 -0
- package/lib/Util.d.ts +47 -0
- package/lib/Util.js +351 -0
- package/lib/aggregation/Aggregator.d.ts +74 -0
- package/lib/aggregation/Aggregator.js +277 -0
- package/lib/aggregation/AggregatorFactory.d.ts +26 -0
- package/lib/aggregation/AggregatorFactory.js +66 -0
- package/lib/aggregation/Aggregators.d.ts +96 -0
- package/lib/aggregation/Aggregators.js +149 -0
- package/lib/codec/AddressCodec.d.ts +6 -0
- package/lib/codec/AddressCodec.js +33 -0
- package/lib/codec/AtomicLongAddAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongAddAndGetCodec.js +56 -0
- package/lib/codec/AtomicLongCompareAndSetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongCompareAndSetCodec.js +58 -0
- package/lib/codec/AtomicLongDecrementAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongDecrementAndGetCodec.js +54 -0
- package/lib/codec/AtomicLongGetAndAddCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndAddCodec.js +56 -0
- package/lib/codec/AtomicLongGetAndIncrementCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndIncrementCodec.js +54 -0
- package/lib/codec/AtomicLongGetAndSetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndSetCodec.js +56 -0
- package/lib/codec/AtomicLongGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetCodec.js +54 -0
- package/lib/codec/AtomicLongIncrementAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongIncrementAndGetCodec.js +54 -0
- package/lib/codec/AtomicLongMessageType.d.ts +15 -0
- package/lib/codec/AtomicLongMessageType.js +37 -0
- package/lib/codec/AtomicLongSetCodec.d.ts +5 -0
- package/lib/codec/AtomicLongSetCodec.js +47 -0
- package/lib/codec/ClientAddDistributedObjectListenerCodec.d.ts +8 -0
- package/lib/codec/ClientAddDistributedObjectListenerCodec.js +74 -0
- package/lib/codec/ClientAddMembershipListenerCodec.d.ts +8 -0
- package/lib/codec/ClientAddMembershipListenerCodec.js +107 -0
- package/lib/codec/ClientAuthenticationCodec.d.ts +7 -0
- package/lib/codec/ClientAuthenticationCodec.js +114 -0
- package/lib/codec/ClientAuthenticationCustomCodec.d.ts +7 -0
- package/lib/codec/ClientAuthenticationCustomCodec.js +112 -0
- package/lib/codec/ClientCreateProxyCodec.d.ts +6 -0
- package/lib/codec/ClientCreateProxyCodec.js +50 -0
- package/lib/codec/ClientDestroyProxyCodec.d.ts +5 -0
- package/lib/codec/ClientDestroyProxyCodec.js +47 -0
- package/lib/codec/ClientGetDistributedObjectsCodec.d.ts +7 -0
- package/lib/codec/ClientGetDistributedObjectsCodec.js +59 -0
- package/lib/codec/ClientMessageType.d.ts +18 -0
- package/lib/codec/ClientMessageType.js +40 -0
- package/lib/codec/ClientPingCodec.d.ts +5 -0
- package/lib/codec/ClientPingCodec.js +42 -0
- package/lib/codec/ClientRemoveDistributedObjectListenerCodec.d.ts +7 -0
- package/lib/codec/ClientRemoveDistributedObjectListenerCodec.js +54 -0
- package/lib/codec/ClientStatisticsCodec.d.ts +5 -0
- package/lib/codec/ClientStatisticsCodec.js +42 -0
- package/lib/codec/DistributedObjectInfoCodec.d.ts +5 -0
- package/lib/codec/DistributedObjectInfoCodec.js +27 -0
- package/lib/codec/EntryViewCodec.d.ts +7 -0
- package/lib/codec/EntryViewCodec.js +56 -0
- package/lib/codec/FlakeIdGeneratorMessageType.d.ts +3 -0
- package/lib/codec/FlakeIdGeneratorMessageType.js +25 -0
- package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.d.ts +7 -0
- package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.js +60 -0
- package/lib/codec/GetPartitionsCodec.d.ts +9 -0
- package/lib/codec/GetPartitionsCodec.js +45 -0
- package/lib/codec/ListAddAllCodec.d.ts +7 -0
- package/lib/codec/ListAddAllCodec.js +62 -0
- package/lib/codec/ListAddAllWithIndexCodec.d.ts +7 -0
- package/lib/codec/ListAddAllWithIndexCodec.js +64 -0
- package/lib/codec/ListAddCodec.d.ts +7 -0
- package/lib/codec/ListAddCodec.js +56 -0
- package/lib/codec/ListAddListenerCodec.d.ts +8 -0
- package/lib/codec/ListAddListenerCodec.js +80 -0
- package/lib/codec/ListAddWithIndexCodec.d.ts +6 -0
- package/lib/codec/ListAddWithIndexCodec.js +49 -0
- package/lib/codec/ListClearCodec.d.ts +5 -0
- package/lib/codec/ListClearCodec.js +45 -0
- package/lib/codec/ListCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/ListCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/ListCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/ListCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/ListContainsAllCodec.d.ts +7 -0
- package/lib/codec/ListContainsAllCodec.js +62 -0
- package/lib/codec/ListContainsCodec.d.ts +7 -0
- package/lib/codec/ListContainsCodec.js +56 -0
- package/lib/codec/ListGetAllCodec.d.ts +7 -0
- package/lib/codec/ListGetAllCodec.js +61 -0
- package/lib/codec/ListGetCodec.d.ts +7 -0
- package/lib/codec/ListGetCodec.js +58 -0
- package/lib/codec/ListIndexOfCodec.d.ts +7 -0
- package/lib/codec/ListIndexOfCodec.js +56 -0
- package/lib/codec/ListIsEmptyCodec.d.ts +7 -0
- package/lib/codec/ListIsEmptyCodec.js +54 -0
- package/lib/codec/ListLastIndexOfCodec.d.ts +7 -0
- package/lib/codec/ListLastIndexOfCodec.js +56 -0
- package/lib/codec/ListMessageType.d.ts +25 -0
- package/lib/codec/ListMessageType.js +47 -0
- package/lib/codec/ListRemoveCodec.d.ts +7 -0
- package/lib/codec/ListRemoveCodec.js +56 -0
- package/lib/codec/ListRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/ListRemoveListenerCodec.js +56 -0
- package/lib/codec/ListRemoveWithIndexCodec.d.ts +7 -0
- package/lib/codec/ListRemoveWithIndexCodec.js +58 -0
- package/lib/codec/ListSetCodec.d.ts +7 -0
- package/lib/codec/ListSetCodec.js +60 -0
- package/lib/codec/ListSizeCodec.d.ts +7 -0
- package/lib/codec/ListSizeCodec.js +54 -0
- package/lib/codec/ListSubCodec.d.ts +7 -0
- package/lib/codec/ListSubCodec.js +65 -0
- package/lib/codec/LockForceUnlockCodec.d.ts +5 -0
- package/lib/codec/LockForceUnlockCodec.js +47 -0
- package/lib/codec/LockGetLockCountCodec.d.ts +7 -0
- package/lib/codec/LockGetLockCountCodec.js +54 -0
- package/lib/codec/LockGetRemainingLeaseTimeCodec.d.ts +7 -0
- package/lib/codec/LockGetRemainingLeaseTimeCodec.js +54 -0
- package/lib/codec/LockIsLockedByCurrentThreadCodec.d.ts +7 -0
- package/lib/codec/LockIsLockedByCurrentThreadCodec.js +56 -0
- package/lib/codec/LockIsLockedCodec.d.ts +7 -0
- package/lib/codec/LockIsLockedCodec.js +54 -0
- package/lib/codec/LockLockCodec.d.ts +5 -0
- package/lib/codec/LockLockCodec.js +51 -0
- package/lib/codec/LockMessageType.d.ts +10 -0
- package/lib/codec/LockMessageType.js +32 -0
- package/lib/codec/LockTryLockCodec.d.ts +7 -0
- package/lib/codec/LockTryLockCodec.js +62 -0
- package/lib/codec/LockUnlockCodec.d.ts +5 -0
- package/lib/codec/LockUnlockCodec.js +49 -0
- package/lib/codec/MapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerCodec.js +104 -0
- package/lib/codec/MapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerToKeyCodec.js +106 -0
- package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.js +108 -0
- package/lib/codec/MapAddEntryListenerWithPredicateCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerWithPredicateCodec.js +106 -0
- package/lib/codec/MapAddIndexCodec.d.ts +5 -0
- package/lib/codec/MapAddIndexCodec.js +49 -0
- package/lib/codec/MapAddNearCacheEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddNearCacheEntryListenerCodec.js +135 -0
- package/lib/codec/MapAddNearCacheInvalidationListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddNearCacheInvalidationListenerCodec.js +138 -0
- package/lib/codec/MapAggregateCodec.d.ts +7 -0
- package/lib/codec/MapAggregateCodec.js +61 -0
- package/lib/codec/MapAggregateWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapAggregateWithPredicateCodec.js +63 -0
- package/lib/codec/MapClearCodec.d.ts +5 -0
- package/lib/codec/MapClearCodec.js +45 -0
- package/lib/codec/MapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/MapContainsKeyCodec.js +58 -0
- package/lib/codec/MapContainsValueCodec.d.ts +7 -0
- package/lib/codec/MapContainsValueCodec.js +56 -0
- package/lib/codec/MapDeleteCodec.d.ts +6 -0
- package/lib/codec/MapDeleteCodec.js +49 -0
- package/lib/codec/MapEntriesWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapEntriesWithPredicateCodec.js +67 -0
- package/lib/codec/MapEntrySetCodec.d.ts +7 -0
- package/lib/codec/MapEntrySetCodec.js +65 -0
- package/lib/codec/MapEvictAllCodec.d.ts +5 -0
- package/lib/codec/MapEvictAllCodec.js +45 -0
- package/lib/codec/MapEvictCodec.d.ts +7 -0
- package/lib/codec/MapEvictCodec.js +58 -0
- package/lib/codec/MapExecuteOnAllKeysCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnAllKeysCodec.js +67 -0
- package/lib/codec/MapExecuteOnKeyCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnKeyCodec.js +62 -0
- package/lib/codec/MapExecuteOnKeysCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnKeysCodec.js +75 -0
- package/lib/codec/MapExecuteWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapExecuteWithPredicateCodec.js +69 -0
- package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.d.ts +8 -0
- package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.js +101 -0
- package/lib/codec/MapFlushCodec.d.ts +5 -0
- package/lib/codec/MapFlushCodec.js +45 -0
- package/lib/codec/MapForceUnlockCodec.d.ts +6 -0
- package/lib/codec/MapForceUnlockCodec.js +49 -0
- package/lib/codec/MapGetAllCodec.d.ts +7 -0
- package/lib/codec/MapGetAllCodec.js +73 -0
- package/lib/codec/MapGetCodec.d.ts +7 -0
- package/lib/codec/MapGetCodec.js +60 -0
- package/lib/codec/MapGetEntryViewCodec.d.ts +7 -0
- package/lib/codec/MapGetEntryViewCodec.js +61 -0
- package/lib/codec/MapIsEmptyCodec.d.ts +7 -0
- package/lib/codec/MapIsEmptyCodec.js +54 -0
- package/lib/codec/MapIsLockedCodec.d.ts +7 -0
- package/lib/codec/MapIsLockedCodec.js +56 -0
- package/lib/codec/MapKeySetCodec.d.ts +7 -0
- package/lib/codec/MapKeySetCodec.js +61 -0
- package/lib/codec/MapKeySetWithPagingPredicateCodec.d.ts +7 -0
- package/lib/codec/MapKeySetWithPagingPredicateCodec.js +63 -0
- package/lib/codec/MapKeySetWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapKeySetWithPredicateCodec.js +63 -0
- package/lib/codec/MapLoadAllCodec.d.ts +5 -0
- package/lib/codec/MapLoadAllCodec.js +47 -0
- package/lib/codec/MapLoadGivenKeysCodec.d.ts +5 -0
- package/lib/codec/MapLoadGivenKeysCodec.js +55 -0
- package/lib/codec/MapLockCodec.d.ts +6 -0
- package/lib/codec/MapLockCodec.js +53 -0
- package/lib/codec/MapMessageType.d.ts +71 -0
- package/lib/codec/MapMessageType.js +93 -0
- package/lib/codec/MapPutAllCodec.d.ts +5 -0
- package/lib/codec/MapPutAllCodec.js +59 -0
- package/lib/codec/MapPutCodec.d.ts +7 -0
- package/lib/codec/MapPutCodec.js +64 -0
- package/lib/codec/MapPutIfAbsentCodec.d.ts +7 -0
- package/lib/codec/MapPutIfAbsentCodec.js +64 -0
- package/lib/codec/MapPutTransientCodec.d.ts +6 -0
- package/lib/codec/MapPutTransientCodec.js +53 -0
- package/lib/codec/MapRemoveCodec.d.ts +7 -0
- package/lib/codec/MapRemoveCodec.js +60 -0
- package/lib/codec/MapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/MapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/MapRemoveIfSameCodec.d.ts +7 -0
- package/lib/codec/MapRemoveIfSameCodec.js +60 -0
- package/lib/codec/MapReplaceCodec.d.ts +7 -0
- package/lib/codec/MapReplaceCodec.js +62 -0
- package/lib/codec/MapReplaceIfSameCodec.d.ts +7 -0
- package/lib/codec/MapReplaceIfSameCodec.js +62 -0
- package/lib/codec/MapSetCodec.d.ts +6 -0
- package/lib/codec/MapSetCodec.js +53 -0
- package/lib/codec/MapSizeCodec.d.ts +7 -0
- package/lib/codec/MapSizeCodec.js +54 -0
- package/lib/codec/MapTryLockCodec.d.ts +7 -0
- package/lib/codec/MapTryLockCodec.js +64 -0
- package/lib/codec/MapTryPutCodec.d.ts +7 -0
- package/lib/codec/MapTryPutCodec.js +62 -0
- package/lib/codec/MapTryRemoveCodec.d.ts +7 -0
- package/lib/codec/MapTryRemoveCodec.js +60 -0
- package/lib/codec/MapUnlockCodec.d.ts +6 -0
- package/lib/codec/MapUnlockCodec.js +51 -0
- package/lib/codec/MapValuesCodec.d.ts +7 -0
- package/lib/codec/MapValuesCodec.js +61 -0
- package/lib/codec/MapValuesWithPagingPredicateCodec.d.ts +7 -0
- package/lib/codec/MapValuesWithPagingPredicateCodec.js +67 -0
- package/lib/codec/MapValuesWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapValuesWithPredicateCodec.js +63 -0
- package/lib/codec/MemberCodec.d.ts +6 -0
- package/lib/codec/MemberCodec.js +49 -0
- package/lib/codec/MultiMapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MultiMapAddEntryListenerCodec.js +102 -0
- package/lib/codec/MultiMapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/MultiMapAddEntryListenerToKeyCodec.js +104 -0
- package/lib/codec/MultiMapClearCodec.d.ts +5 -0
- package/lib/codec/MultiMapClearCodec.js +45 -0
- package/lib/codec/MultiMapContainsEntryCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsEntryCodec.js +60 -0
- package/lib/codec/MultiMapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsKeyCodec.js +58 -0
- package/lib/codec/MultiMapContainsValueCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsValueCodec.js +56 -0
- package/lib/codec/MultiMapEntrySetCodec.d.ts +7 -0
- package/lib/codec/MultiMapEntrySetCodec.js +65 -0
- package/lib/codec/MultiMapForceUnlockCodec.d.ts +6 -0
- package/lib/codec/MultiMapForceUnlockCodec.js +49 -0
- package/lib/codec/MultiMapGetCodec.d.ts +7 -0
- package/lib/codec/MultiMapGetCodec.js +65 -0
- package/lib/codec/MultiMapIsLockedCodec.d.ts +7 -0
- package/lib/codec/MultiMapIsLockedCodec.js +56 -0
- package/lib/codec/MultiMapKeySetCodec.d.ts +7 -0
- package/lib/codec/MultiMapKeySetCodec.js +61 -0
- package/lib/codec/MultiMapLockCodec.d.ts +6 -0
- package/lib/codec/MultiMapLockCodec.js +53 -0
- package/lib/codec/MultiMapMessageType.d.ts +23 -0
- package/lib/codec/MultiMapMessageType.js +45 -0
- package/lib/codec/MultiMapPutCodec.d.ts +7 -0
- package/lib/codec/MultiMapPutCodec.js +60 -0
- package/lib/codec/MultiMapRemoveCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveCodec.js +65 -0
- package/lib/codec/MultiMapRemoveEntryCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveEntryCodec.js +60 -0
- package/lib/codec/MultiMapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/MultiMapSizeCodec.d.ts +7 -0
- package/lib/codec/MultiMapSizeCodec.js +54 -0
- package/lib/codec/MultiMapTryLockCodec.d.ts +7 -0
- package/lib/codec/MultiMapTryLockCodec.js +64 -0
- package/lib/codec/MultiMapUnlockCodec.d.ts +6 -0
- package/lib/codec/MultiMapUnlockCodec.js +51 -0
- package/lib/codec/MultiMapValueCountCodec.d.ts +7 -0
- package/lib/codec/MultiMapValueCountCodec.js +58 -0
- package/lib/codec/MultiMapValuesCodec.d.ts +7 -0
- package/lib/codec/MultiMapValuesCodec.js +61 -0
- package/lib/codec/PNCounterAddCodec.d.ts +8 -0
- package/lib/codec/PNCounterAddCodec.js +90 -0
- package/lib/codec/PNCounterGetCodec.d.ts +8 -0
- package/lib/codec/PNCounterGetCodec.js +86 -0
- package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.d.ts +7 -0
- package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.js +54 -0
- package/lib/codec/PNCounterMessageType.d.ts +5 -0
- package/lib/codec/PNCounterMessageType.js +27 -0
- package/lib/codec/QueueAddAllCodec.d.ts +7 -0
- package/lib/codec/QueueAddAllCodec.js +62 -0
- package/lib/codec/QueueAddListenerCodec.d.ts +8 -0
- package/lib/codec/QueueAddListenerCodec.js +80 -0
- package/lib/codec/QueueClearCodec.d.ts +5 -0
- package/lib/codec/QueueClearCodec.js +45 -0
- package/lib/codec/QueueCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/QueueCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/QueueCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/QueueCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/QueueContainsAllCodec.d.ts +7 -0
- package/lib/codec/QueueContainsAllCodec.js +62 -0
- package/lib/codec/QueueContainsCodec.d.ts +7 -0
- package/lib/codec/QueueContainsCodec.js +56 -0
- package/lib/codec/QueueDrainToCodec.d.ts +7 -0
- package/lib/codec/QueueDrainToCodec.js +61 -0
- package/lib/codec/QueueDrainToMaxSizeCodec.d.ts +7 -0
- package/lib/codec/QueueDrainToMaxSizeCodec.js +63 -0
- package/lib/codec/QueueIsEmptyCodec.d.ts +7 -0
- package/lib/codec/QueueIsEmptyCodec.js +54 -0
- package/lib/codec/QueueIteratorCodec.d.ts +7 -0
- package/lib/codec/QueueIteratorCodec.js +61 -0
- package/lib/codec/QueueMessageType.d.ts +22 -0
- package/lib/codec/QueueMessageType.js +44 -0
- package/lib/codec/QueueOfferCodec.d.ts +7 -0
- package/lib/codec/QueueOfferCodec.js +58 -0
- package/lib/codec/QueuePeekCodec.d.ts +7 -0
- package/lib/codec/QueuePeekCodec.js +56 -0
- package/lib/codec/QueuePollCodec.d.ts +7 -0
- package/lib/codec/QueuePollCodec.js +58 -0
- package/lib/codec/QueuePutCodec.d.ts +6 -0
- package/lib/codec/QueuePutCodec.js +47 -0
- package/lib/codec/QueueRemainingCapacityCodec.d.ts +7 -0
- package/lib/codec/QueueRemainingCapacityCodec.js +54 -0
- package/lib/codec/QueueRemoveCodec.d.ts +7 -0
- package/lib/codec/QueueRemoveCodec.js +56 -0
- package/lib/codec/QueueRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/QueueRemoveListenerCodec.js +56 -0
- package/lib/codec/QueueSizeCodec.d.ts +7 -0
- package/lib/codec/QueueSizeCodec.js +54 -0
- package/lib/codec/QueueTakeCodec.d.ts +7 -0
- package/lib/codec/QueueTakeCodec.js +56 -0
- package/lib/codec/ReplicatedMapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerCodec.js +100 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.js +102 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.js +104 -0
- package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.js +102 -0
- package/lib/codec/ReplicatedMapClearCodec.d.ts +5 -0
- package/lib/codec/ReplicatedMapClearCodec.js +45 -0
- package/lib/codec/ReplicatedMapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapContainsKeyCodec.js +56 -0
- package/lib/codec/ReplicatedMapContainsValueCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapContainsValueCodec.js +56 -0
- package/lib/codec/ReplicatedMapEntrySetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapEntrySetCodec.js +65 -0
- package/lib/codec/ReplicatedMapGetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapGetCodec.js +58 -0
- package/lib/codec/ReplicatedMapIsEmptyCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapIsEmptyCodec.js +54 -0
- package/lib/codec/ReplicatedMapKeySetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapKeySetCodec.js +61 -0
- package/lib/codec/ReplicatedMapMessageType.d.ts +20 -0
- package/lib/codec/ReplicatedMapMessageType.js +42 -0
- package/lib/codec/ReplicatedMapPutAllCodec.d.ts +5 -0
- package/lib/codec/ReplicatedMapPutAllCodec.js +59 -0
- package/lib/codec/ReplicatedMapPutCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapPutCodec.js +62 -0
- package/lib/codec/ReplicatedMapRemoveCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapRemoveCodec.js +58 -0
- package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/ReplicatedMapSizeCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapSizeCodec.js +54 -0
- package/lib/codec/ReplicatedMapValuesCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapValuesCodec.js +61 -0
- package/lib/codec/RingbufferAddAllCodec.d.ts +7 -0
- package/lib/codec/RingbufferAddAllCodec.js +64 -0
- package/lib/codec/RingbufferAddCodec.d.ts +7 -0
- package/lib/codec/RingbufferAddCodec.js +58 -0
- package/lib/codec/RingbufferCapacityCodec.d.ts +7 -0
- package/lib/codec/RingbufferCapacityCodec.js +54 -0
- package/lib/codec/RingbufferHeadSequenceCodec.d.ts +7 -0
- package/lib/codec/RingbufferHeadSequenceCodec.js +54 -0
- package/lib/codec/RingbufferMessageType.d.ts +11 -0
- package/lib/codec/RingbufferMessageType.js +33 -0
- package/lib/codec/RingbufferReadManyCodec.d.ts +7 -0
- package/lib/codec/RingbufferReadManyCodec.js +92 -0
- package/lib/codec/RingbufferReadOneCodec.d.ts +7 -0
- package/lib/codec/RingbufferReadOneCodec.js +58 -0
- package/lib/codec/RingbufferRemainingCapacityCodec.d.ts +7 -0
- package/lib/codec/RingbufferRemainingCapacityCodec.js +54 -0
- package/lib/codec/RingbufferSizeCodec.d.ts +7 -0
- package/lib/codec/RingbufferSizeCodec.js +54 -0
- package/lib/codec/RingbufferTailSequenceCodec.d.ts +7 -0
- package/lib/codec/RingbufferTailSequenceCodec.js +54 -0
- package/lib/codec/SemaphoreAcquireCodec.d.ts +5 -0
- package/lib/codec/SemaphoreAcquireCodec.js +47 -0
- package/lib/codec/SemaphoreAvailablePermitsCodec.d.ts +7 -0
- package/lib/codec/SemaphoreAvailablePermitsCodec.js +54 -0
- package/lib/codec/SemaphoreDrainPermitsCodec.d.ts +7 -0
- package/lib/codec/SemaphoreDrainPermitsCodec.js +54 -0
- package/lib/codec/SemaphoreInitCodec.d.ts +7 -0
- package/lib/codec/SemaphoreInitCodec.js +56 -0
- package/lib/codec/SemaphoreMessageType.d.ts +9 -0
- package/lib/codec/SemaphoreMessageType.js +31 -0
- package/lib/codec/SemaphoreReducePermitsCodec.d.ts +5 -0
- package/lib/codec/SemaphoreReducePermitsCodec.js +47 -0
- package/lib/codec/SemaphoreReleaseCodec.d.ts +5 -0
- package/lib/codec/SemaphoreReleaseCodec.js +47 -0
- package/lib/codec/SemaphoreTryAcquireCodec.d.ts +7 -0
- package/lib/codec/SemaphoreTryAcquireCodec.js +58 -0
- package/lib/codec/SetAddAllCodec.d.ts +7 -0
- package/lib/codec/SetAddAllCodec.js +62 -0
- package/lib/codec/SetAddCodec.d.ts +7 -0
- package/lib/codec/SetAddCodec.js +56 -0
- package/lib/codec/SetAddListenerCodec.d.ts +8 -0
- package/lib/codec/SetAddListenerCodec.js +80 -0
- package/lib/codec/SetClearCodec.d.ts +5 -0
- package/lib/codec/SetClearCodec.js +45 -0
- package/lib/codec/SetCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/SetCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/SetCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/SetCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/SetContainsAllCodec.d.ts +7 -0
- package/lib/codec/SetContainsAllCodec.js +62 -0
- package/lib/codec/SetContainsCodec.d.ts +7 -0
- package/lib/codec/SetContainsCodec.js +56 -0
- package/lib/codec/SetGetAllCodec.d.ts +7 -0
- package/lib/codec/SetGetAllCodec.js +61 -0
- package/lib/codec/SetIsEmptyCodec.d.ts +7 -0
- package/lib/codec/SetIsEmptyCodec.js +54 -0
- package/lib/codec/SetMessageType.d.ts +15 -0
- package/lib/codec/SetMessageType.js +37 -0
- package/lib/codec/SetRemoveCodec.d.ts +7 -0
- package/lib/codec/SetRemoveCodec.js +56 -0
- package/lib/codec/SetRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/SetRemoveListenerCodec.js +56 -0
- package/lib/codec/SetSizeCodec.d.ts +7 -0
- package/lib/codec/SetSizeCodec.js +54 -0
- package/lib/codec/UUIDCodec.d.ts +5 -0
- package/lib/codec/UUIDCodec.js +29 -0
- package/lib/config/ClientCloudConfig.d.ts +13 -0
- package/lib/config/ClientCloudConfig.js +34 -0
- package/lib/config/ClientNetworkConfig.d.ts +43 -0
- package/lib/config/ClientNetworkConfig.js +64 -0
- package/lib/config/Config.d.ts +61 -0
- package/lib/config/Config.js +138 -0
- package/lib/config/ConfigBuilder.d.ts +26 -0
- package/lib/config/ConfigBuilder.js +322 -0
- package/lib/config/ConfigPatternMatcher.d.ts +12 -0
- package/lib/config/ConfigPatternMatcher.js +70 -0
- package/lib/config/EvictionPolicy.d.ts +9 -0
- package/lib/config/EvictionPolicy.js +27 -0
- package/lib/config/FlakeIdGeneratorConfig.d.ts +26 -0
- package/lib/config/FlakeIdGeneratorConfig.js +56 -0
- package/lib/config/GroupConfig.d.ts +14 -0
- package/lib/config/GroupConfig.js +35 -0
- package/lib/config/ImportConfig.d.ts +4 -0
- package/lib/config/ImportConfig.js +17 -0
- package/lib/config/InMemoryFormat.d.ts +10 -0
- package/lib/config/InMemoryFormat.js +28 -0
- package/lib/config/JsonConfigLocator.d.ts +16 -0
- package/lib/config/JsonConfigLocator.js +103 -0
- package/lib/config/JsonStringDeserializationPolicy.d.ts +17 -0
- package/lib/config/JsonStringDeserializationPolicy.js +35 -0
- package/lib/config/ListenerConfig.d.ts +8 -0
- package/lib/config/ListenerConfig.js +33 -0
- package/lib/config/NearCacheConfig.d.ts +25 -0
- package/lib/config/NearCacheConfig.js +59 -0
- package/lib/config/Properties.d.ts +5 -0
- package/lib/config/Properties.js +17 -0
- package/lib/config/ReliableTopicConfig.d.ts +8 -0
- package/lib/config/ReliableTopicConfig.js +38 -0
- package/lib/config/SSLConfig.d.ts +34 -0
- package/lib/config/SSLConfig.js +51 -0
- package/lib/config/SerializationConfig.d.ts +29 -0
- package/lib/config/SerializationConfig.js +38 -0
- package/lib/config/StringSerializationPolicy.d.ts +22 -0
- package/lib/config/StringSerializationPolicy.js +40 -0
- package/lib/connection/AddressProvider.d.ts +11 -0
- package/lib/connection/AddressProvider.js +17 -0
- package/lib/connection/AddressTranslator.d.ts +21 -0
- package/lib/connection/AddressTranslator.js +17 -0
- package/lib/connection/BasicSSLOptionsFactory.d.ts +14 -0
- package/lib/connection/BasicSSLOptionsFactory.js +67 -0
- package/lib/connection/DefaultAddressProvider.d.ts +15 -0
- package/lib/connection/DefaultAddressProvider.js +38 -0
- package/lib/connection/DefaultAddressTranslator.d.ts +11 -0
- package/lib/connection/DefaultAddressTranslator.js +33 -0
- package/lib/connection/SSLOptionsFactory.d.ts +7 -0
- package/lib/connection/SSLOptionsFactory.js +17 -0
- package/lib/core/Comparator.d.ts +21 -0
- package/lib/core/Comparator.js +17 -0
- package/lib/core/ConnectionHeartbeatListener.d.ts +16 -0
- package/lib/core/ConnectionHeartbeatListener.js +17 -0
- package/lib/core/DistributedObjectListener.d.ts +24 -0
- package/lib/core/DistributedObjectListener.js +30 -0
- package/lib/core/EntryListener.d.ts +51 -0
- package/lib/core/EntryListener.js +32 -0
- package/lib/core/EntryView.d.ts +16 -0
- package/lib/core/EntryView.js +23 -0
- package/lib/core/EventType.d.ts +12 -0
- package/lib/core/EventType.js +31 -0
- package/lib/core/HazelcastJsonValue.d.ts +32 -0
- package/lib/core/HazelcastJsonValue.js +56 -0
- package/lib/core/ItemListener.d.ts +38 -0
- package/lib/core/ItemListener.js +35 -0
- package/lib/core/MapListener.d.ts +29 -0
- package/lib/core/MapListener.js +29 -0
- package/lib/core/Member.d.ts +23 -0
- package/lib/core/Member.js +44 -0
- package/lib/core/MemberAttributeEvent.d.ts +37 -0
- package/lib/core/MemberAttributeEvent.js +45 -0
- package/lib/core/MemberSelector.d.ts +4 -0
- package/lib/core/MemberSelector.js +17 -0
- package/lib/core/MemberSelectors.d.ts +8 -0
- package/lib/core/MemberSelectors.js +33 -0
- package/lib/core/MembershipEvent.d.ts +20 -0
- package/lib/core/MembershipEvent.js +30 -0
- package/lib/core/MembershipListener.d.ts +22 -0
- package/lib/core/MembershipListener.js +17 -0
- package/lib/core/OverflowPolicy.d.ts +4 -0
- package/lib/core/OverflowPolicy.js +22 -0
- package/lib/core/Predicate.d.ts +28 -0
- package/lib/core/Predicate.js +113 -0
- package/lib/core/ReadOnlyLazyList.d.ts +12 -0
- package/lib/core/ReadOnlyLazyList.js +74 -0
- package/lib/core/RestValue.d.ts +15 -0
- package/lib/core/RestValue.js +51 -0
- package/lib/core/UUID.d.ts +9 -0
- package/lib/core/UUID.js +44 -0
- package/lib/core/VectorClock.d.ts +7 -0
- package/lib/core/VectorClock.js +48 -0
- package/lib/discovery/HazelcastCloudAddressProvider.d.ts +10 -0
- package/lib/discovery/HazelcastCloudAddressProvider.js +35 -0
- package/lib/discovery/HazelcastCloudAddressTranslator.d.ts +13 -0
- package/lib/discovery/HazelcastCloudAddressTranslator.js +54 -0
- package/lib/discovery/HazelcastCloudDiscovery.d.ts +25 -0
- package/lib/discovery/HazelcastCloudDiscovery.js +85 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +64 -0
- package/lib/invocation/ClientConnection.d.ts +82 -0
- package/lib/invocation/ClientConnection.js +307 -0
- package/lib/invocation/ClientConnectionManager.d.ts +56 -0
- package/lib/invocation/ClientConnectionManager.js +298 -0
- package/lib/invocation/ClientEventRegistration.d.ts +10 -0
- package/lib/invocation/ClientEventRegistration.js +30 -0
- package/lib/invocation/ClusterService.d.ts +99 -0
- package/lib/invocation/ClusterService.js +417 -0
- package/lib/invocation/ConnectionAuthenticator.d.ts +14 -0
- package/lib/invocation/ConnectionAuthenticator.js +88 -0
- package/lib/invocation/InvocationService.d.ts +138 -0
- package/lib/invocation/InvocationService.js +387 -0
- package/lib/invocation/Murmur.d.ts +2 -0
- package/lib/invocation/Murmur.js +65 -0
- package/lib/invocation/RegistrationKey.d.ts +16 -0
- package/lib/invocation/RegistrationKey.js +48 -0
- package/lib/logging/DefaultLogger.d.ts +12 -0
- package/lib/logging/DefaultLogger.js +48 -0
- package/lib/logging/ILogger.d.ts +49 -0
- package/lib/logging/ILogger.js +17 -0
- package/lib/logging/LoggingService.d.ts +16 -0
- package/lib/logging/LoggingService.js +50 -0
- package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.d.ts +10 -0
- package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.js +34 -0
- package/lib/nearcache/DataRecord.d.ts +33 -0
- package/lib/nearcache/DataRecord.js +109 -0
- package/lib/nearcache/MetadataContainer.d.ts +18 -0
- package/lib/nearcache/MetadataContainer.js +56 -0
- package/lib/nearcache/MetadataFetcher.d.ts +20 -0
- package/lib/nearcache/MetadataFetcher.js +92 -0
- package/lib/nearcache/NearCache.d.ts +89 -0
- package/lib/nearcache/NearCache.js +250 -0
- package/lib/nearcache/NearCacheManager.d.ts +13 -0
- package/lib/nearcache/NearCacheManager.js +50 -0
- package/lib/nearcache/RepairingHandler.d.ts +26 -0
- package/lib/nearcache/RepairingHandler.js +114 -0
- package/lib/nearcache/RepairingTask.d.ts +26 -0
- package/lib/nearcache/RepairingTask.js +117 -0
- package/lib/nearcache/StaleReadDetector.d.ts +7 -0
- package/lib/nearcache/StaleReadDetector.js +2 -0
- package/lib/nearcache/StaleReadDetectorImpl.d.ts +13 -0
- package/lib/nearcache/StaleReadDetectorImpl.js +35 -0
- package/lib/protocol/ClientProtocolErrorCodes.d.ts +91 -0
- package/lib/protocol/ClientProtocolErrorCodes.js +112 -0
- package/lib/protocol/ErrorCodec.d.ts +11 -0
- package/lib/protocol/ErrorCodec.js +50 -0
- package/lib/protocol/ErrorFactory.d.ts +8 -0
- package/lib/protocol/ErrorFactory.js +92 -0
- package/lib/protocol/StackTraceElementCodec.d.ts +8 -0
- package/lib/protocol/StackTraceElementCodec.js +38 -0
- package/lib/proxy/AtomicLongProxy.d.ts +17 -0
- package/lib/proxy/AtomicLongProxy.js +72 -0
- package/lib/proxy/BaseProxy.d.ts +89 -0
- package/lib/proxy/BaseProxy.js +191 -0
- package/lib/proxy/FlakeIdGenerator.d.ts +47 -0
- package/lib/proxy/FlakeIdGenerator.js +17 -0
- package/lib/proxy/FlakeIdGeneratorProxy.d.ts +13 -0
- package/lib/proxy/FlakeIdGeneratorProxy.js +48 -0
- package/lib/proxy/IAtomicLong.d.ts +16 -0
- package/lib/proxy/IAtomicLong.js +17 -0
- package/lib/proxy/IList.d.ts +132 -0
- package/lib/proxy/IList.js +17 -0
- package/lib/proxy/ILock.d.ts +54 -0
- package/lib/proxy/ILock.js +17 -0
- package/lib/proxy/IMap.d.ts +328 -0
- package/lib/proxy/IMap.js +17 -0
- package/lib/proxy/IQueue.d.ts +128 -0
- package/lib/proxy/IQueue.js +17 -0
- package/lib/proxy/ISemaphore.d.ts +53 -0
- package/lib/proxy/ISemaphore.js +17 -0
- package/lib/proxy/ISet.d.ts +89 -0
- package/lib/proxy/ISet.js +17 -0
- package/lib/proxy/ListProxy.d.ts +31 -0
- package/lib/proxy/ListProxy.js +165 -0
- package/lib/proxy/LockProxy.d.ts +16 -0
- package/lib/proxy/LockProxy.js +78 -0
- package/lib/proxy/MapProxy.d.ts +82 -0
- package/lib/proxy/MapProxy.js +651 -0
- package/lib/proxy/MultiMap.d.ts +153 -0
- package/lib/proxy/MultiMap.js +17 -0
- package/lib/proxy/MultiMapProxy.d.ts +33 -0
- package/lib/proxy/MultiMapProxy.js +238 -0
- package/lib/proxy/NearCachedMapProxy.d.ts +41 -0
- package/lib/proxy/NearCachedMapProxy.js +284 -0
- package/lib/proxy/PNCounter.d.ts +162 -0
- package/lib/proxy/PNCounter.js +17 -0
- package/lib/proxy/PNCounterProxy.d.ts +30 -0
- package/lib/proxy/PNCounterProxy.js +181 -0
- package/lib/proxy/PartitionSpecificProxy.d.ts +10 -0
- package/lib/proxy/PartitionSpecificProxy.js +52 -0
- package/lib/proxy/ProxyManager.d.ts +40 -0
- package/lib/proxy/ProxyManager.js +202 -0
- package/lib/proxy/QueueProxy.d.ts +28 -0
- package/lib/proxy/QueueProxy.js +198 -0
- package/lib/proxy/ReplicatedMap.d.ts +149 -0
- package/lib/proxy/ReplicatedMap.js +17 -0
- package/lib/proxy/ReplicatedMapProxy.d.ts +34 -0
- package/lib/proxy/ReplicatedMapProxy.js +256 -0
- package/lib/proxy/Ringbuffer.d.ts +115 -0
- package/lib/proxy/Ringbuffer.js +17 -0
- package/lib/proxy/SemaphoreProxy.d.ts +15 -0
- package/lib/proxy/SemaphoreProxy.js +73 -0
- package/lib/proxy/SetProxy.d.ts +22 -0
- package/lib/proxy/SetProxy.js +130 -0
- package/lib/proxy/flakeid/AutoBatcher.d.ts +30 -0
- package/lib/proxy/flakeid/AutoBatcher.js +104 -0
- package/lib/proxy/ringbuffer/LazyReadResultSet.d.ts +16 -0
- package/lib/proxy/ringbuffer/LazyReadResultSet.js +54 -0
- package/lib/proxy/ringbuffer/ReadResultSet.d.ts +41 -0
- package/lib/proxy/ringbuffer/ReadResultSet.js +17 -0
- package/lib/proxy/ringbuffer/RingbufferProxy.d.ts +19 -0
- package/lib/proxy/ringbuffer/RingbufferProxy.js +98 -0
- package/lib/proxy/topic/ITopic.d.ts +9 -0
- package/lib/proxy/topic/ITopic.js +17 -0
- package/lib/proxy/topic/Message.d.ts +8 -0
- package/lib/proxy/topic/Message.js +23 -0
- package/lib/proxy/topic/MessageListener.d.ts +2 -0
- package/lib/proxy/topic/MessageListener.js +2 -0
- package/lib/proxy/topic/ReliableTopicListenerRunner.d.ts +20 -0
- package/lib/proxy/topic/ReliableTopicListenerRunner.js +73 -0
- package/lib/proxy/topic/ReliableTopicMessage.d.ts +19 -0
- package/lib/proxy/topic/ReliableTopicMessage.js +53 -0
- package/lib/proxy/topic/ReliableTopicProxy.d.ts +31 -0
- package/lib/proxy/topic/ReliableTopicProxy.js +151 -0
- package/lib/proxy/topic/TopicOverloadPolicy.d.ts +23 -0
- package/lib/proxy/topic/TopicOverloadPolicy.js +41 -0
- package/lib/serialization/Data.d.ts +114 -0
- package/lib/serialization/Data.js +17 -0
- package/lib/serialization/DefaultPredicates.d.ts +131 -0
- package/lib/serialization/DefaultPredicates.js +465 -0
- package/lib/serialization/DefaultSerializer.d.ts +134 -0
- package/lib/serialization/DefaultSerializer.js +442 -0
- package/lib/serialization/HeapData.d.ts +44 -0
- package/lib/serialization/HeapData.js +104 -0
- package/lib/serialization/ObjectData.d.ts +102 -0
- package/lib/serialization/ObjectData.js +566 -0
- package/lib/serialization/PredicateFactory.d.ts +15 -0
- package/lib/serialization/PredicateFactory.js +46 -0
- package/lib/serialization/Serializable.d.ts +23 -0
- package/lib/serialization/Serializable.js +17 -0
- package/lib/serialization/SerializationService.d.ts +60 -0
- package/lib/serialization/SerializationService.js +312 -0
- package/lib/serialization/SerializationUtil.d.ts +3 -0
- package/lib/serialization/SerializationUtil.js +31 -0
- package/lib/serialization/portable/ClassDefinition.d.ts +54 -0
- package/lib/serialization/portable/ClassDefinition.js +140 -0
- package/lib/serialization/portable/ClassDefinitionBuilder.d.ts +35 -0
- package/lib/serialization/portable/ClassDefinitionBuilder.js +126 -0
- package/lib/serialization/portable/ClassDefinitionContext.d.ts +9 -0
- package/lib/serialization/portable/ClassDefinitionContext.js +51 -0
- package/lib/serialization/portable/ClassDefinitionWriter.d.ts +35 -0
- package/lib/serialization/portable/ClassDefinitionWriter.js +123 -0
- package/lib/serialization/portable/DefaultPortableReader.d.ts +43 -0
- package/lib/serialization/portable/DefaultPortableReader.js +188 -0
- package/lib/serialization/portable/DefaultPortableWriter.d.ts +37 -0
- package/lib/serialization/portable/DefaultPortableWriter.js +156 -0
- package/lib/serialization/portable/MorphingPortableReader.d.ts +31 -0
- package/lib/serialization/portable/MorphingPortableReader.js +189 -0
- package/lib/serialization/portable/PortableContext.d.ts +16 -0
- package/lib/serialization/portable/PortableContext.js +126 -0
- package/lib/serialization/portable/PortableSerializer.d.ts +68 -0
- package/lib/serialization/portable/PortableSerializer.js +94 -0
- package/lib/statistics/Statistics.d.ts +50 -0
- package/lib/statistics/Statistics.js +232 -0
- package/lib/util/ArrayComparator.d.ts +1 -0
- package/lib/util/ArrayComparator.js +17 -0
- package/lib/util/UuidUtil.d.ts +4 -0
- package/lib/util/UuidUtil.js +35 -0
- package/lib.es6.d.ts +18650 -0
- package/package.json +64 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,389 @@
|
|
|
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 HazelcastError = /** @class */ (function (_super) {
|
|
29
|
+
__extends(HazelcastError, _super);
|
|
30
|
+
function HazelcastError(msg, cause) {
|
|
31
|
+
var _this = _super.call(this, msg) || this;
|
|
32
|
+
_this.cause = cause;
|
|
33
|
+
Error.captureStackTrace(_this, HazelcastError);
|
|
34
|
+
Object.setPrototypeOf(_this, HazelcastError.prototype);
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
return HazelcastError;
|
|
38
|
+
}(Error));
|
|
39
|
+
exports.HazelcastError = HazelcastError;
|
|
40
|
+
var HazelcastSerializationError = /** @class */ (function (_super) {
|
|
41
|
+
__extends(HazelcastSerializationError, _super);
|
|
42
|
+
function HazelcastSerializationError(msg, cause) {
|
|
43
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
44
|
+
Object.setPrototypeOf(_this, HazelcastSerializationError.prototype);
|
|
45
|
+
return _this;
|
|
46
|
+
}
|
|
47
|
+
return HazelcastSerializationError;
|
|
48
|
+
}(HazelcastError));
|
|
49
|
+
exports.HazelcastSerializationError = HazelcastSerializationError;
|
|
50
|
+
var AuthenticationError = /** @class */ (function (_super) {
|
|
51
|
+
__extends(AuthenticationError, _super);
|
|
52
|
+
function AuthenticationError(msg, cause) {
|
|
53
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
54
|
+
Object.setPrototypeOf(_this, AuthenticationError.prototype);
|
|
55
|
+
return _this;
|
|
56
|
+
}
|
|
57
|
+
return AuthenticationError;
|
|
58
|
+
}(HazelcastError));
|
|
59
|
+
exports.AuthenticationError = AuthenticationError;
|
|
60
|
+
var ClientNotActiveError = /** @class */ (function (_super) {
|
|
61
|
+
__extends(ClientNotActiveError, _super);
|
|
62
|
+
function ClientNotActiveError(msg, cause) {
|
|
63
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
64
|
+
Object.setPrototypeOf(_this, ClientNotActiveError.prototype);
|
|
65
|
+
return _this;
|
|
66
|
+
}
|
|
67
|
+
return ClientNotActiveError;
|
|
68
|
+
}(HazelcastError));
|
|
69
|
+
exports.ClientNotActiveError = ClientNotActiveError;
|
|
70
|
+
var IllegalStateError = /** @class */ (function (_super) {
|
|
71
|
+
__extends(IllegalStateError, _super);
|
|
72
|
+
function IllegalStateError(msg, cause) {
|
|
73
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
74
|
+
Object.setPrototypeOf(_this, IllegalStateError.prototype);
|
|
75
|
+
return _this;
|
|
76
|
+
}
|
|
77
|
+
return IllegalStateError;
|
|
78
|
+
}(HazelcastError));
|
|
79
|
+
exports.IllegalStateError = IllegalStateError;
|
|
80
|
+
var StaleSequenceError = /** @class */ (function (_super) {
|
|
81
|
+
__extends(StaleSequenceError, _super);
|
|
82
|
+
function StaleSequenceError(msg, cause) {
|
|
83
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
84
|
+
Object.setPrototypeOf(_this, StaleSequenceError.prototype);
|
|
85
|
+
return _this;
|
|
86
|
+
}
|
|
87
|
+
return StaleSequenceError;
|
|
88
|
+
}(HazelcastError));
|
|
89
|
+
exports.StaleSequenceError = StaleSequenceError;
|
|
90
|
+
var TopicOverloadError = /** @class */ (function (_super) {
|
|
91
|
+
__extends(TopicOverloadError, _super);
|
|
92
|
+
function TopicOverloadError(msg, cause) {
|
|
93
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
94
|
+
Object.setPrototypeOf(_this, TopicOverloadError.prototype);
|
|
95
|
+
return _this;
|
|
96
|
+
}
|
|
97
|
+
return TopicOverloadError;
|
|
98
|
+
}(HazelcastError));
|
|
99
|
+
exports.TopicOverloadError = TopicOverloadError;
|
|
100
|
+
var IOError = /** @class */ (function (_super) {
|
|
101
|
+
__extends(IOError, _super);
|
|
102
|
+
function IOError(msg, cause) {
|
|
103
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
104
|
+
Object.setPrototypeOf(_this, IOError.prototype);
|
|
105
|
+
return _this;
|
|
106
|
+
}
|
|
107
|
+
return IOError;
|
|
108
|
+
}(HazelcastError));
|
|
109
|
+
exports.IOError = IOError;
|
|
110
|
+
var UndefinedErrorCodeError = /** @class */ (function (_super) {
|
|
111
|
+
__extends(UndefinedErrorCodeError, _super);
|
|
112
|
+
function UndefinedErrorCodeError(msg, className) {
|
|
113
|
+
var _this = _super.call(this, 'Class name: ' + className + ' , Message: ' + msg) || this;
|
|
114
|
+
Object.setPrototypeOf(_this, UndefinedErrorCodeError.prototype);
|
|
115
|
+
return _this;
|
|
116
|
+
}
|
|
117
|
+
return UndefinedErrorCodeError;
|
|
118
|
+
}(HazelcastError));
|
|
119
|
+
exports.UndefinedErrorCodeError = UndefinedErrorCodeError;
|
|
120
|
+
var InvocationTimeoutError = /** @class */ (function (_super) {
|
|
121
|
+
__extends(InvocationTimeoutError, _super);
|
|
122
|
+
function InvocationTimeoutError(msg, cause) {
|
|
123
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
124
|
+
Object.setPrototypeOf(_this, InvocationTimeoutError.prototype);
|
|
125
|
+
return _this;
|
|
126
|
+
}
|
|
127
|
+
return InvocationTimeoutError;
|
|
128
|
+
}(HazelcastError));
|
|
129
|
+
exports.InvocationTimeoutError = InvocationTimeoutError;
|
|
130
|
+
var RetryableHazelcastError = /** @class */ (function (_super) {
|
|
131
|
+
__extends(RetryableHazelcastError, _super);
|
|
132
|
+
function RetryableHazelcastError(msg, cause) {
|
|
133
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
134
|
+
Object.setPrototypeOf(_this, RetryableHazelcastError.prototype);
|
|
135
|
+
return _this;
|
|
136
|
+
}
|
|
137
|
+
return RetryableHazelcastError;
|
|
138
|
+
}(HazelcastError));
|
|
139
|
+
exports.RetryableHazelcastError = RetryableHazelcastError;
|
|
140
|
+
var TargetNotMemberError = /** @class */ (function (_super) {
|
|
141
|
+
__extends(TargetNotMemberError, _super);
|
|
142
|
+
function TargetNotMemberError(msg, cause) {
|
|
143
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
144
|
+
Object.setPrototypeOf(_this, TargetNotMemberError.prototype);
|
|
145
|
+
return _this;
|
|
146
|
+
}
|
|
147
|
+
return TargetNotMemberError;
|
|
148
|
+
}(RetryableHazelcastError));
|
|
149
|
+
exports.TargetNotMemberError = TargetNotMemberError;
|
|
150
|
+
var CallerNotMemberError = /** @class */ (function (_super) {
|
|
151
|
+
__extends(CallerNotMemberError, _super);
|
|
152
|
+
function CallerNotMemberError(msg, cause) {
|
|
153
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
154
|
+
Object.setPrototypeOf(_this, CallerNotMemberError.prototype);
|
|
155
|
+
return _this;
|
|
156
|
+
}
|
|
157
|
+
return CallerNotMemberError;
|
|
158
|
+
}(RetryableHazelcastError));
|
|
159
|
+
exports.CallerNotMemberError = CallerNotMemberError;
|
|
160
|
+
var CancellationError = /** @class */ (function (_super) {
|
|
161
|
+
__extends(CancellationError, _super);
|
|
162
|
+
function CancellationError(msg, cause) {
|
|
163
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
164
|
+
Object.setPrototypeOf(_this, CancellationError.prototype);
|
|
165
|
+
return _this;
|
|
166
|
+
}
|
|
167
|
+
return CancellationError;
|
|
168
|
+
}(IllegalStateError));
|
|
169
|
+
exports.CancellationError = CancellationError;
|
|
170
|
+
var ClassCastError = /** @class */ (function (_super) {
|
|
171
|
+
__extends(ClassCastError, _super);
|
|
172
|
+
function ClassCastError(msg, cause) {
|
|
173
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
174
|
+
Object.setPrototypeOf(_this, ClassCastError.prototype);
|
|
175
|
+
return _this;
|
|
176
|
+
}
|
|
177
|
+
return ClassCastError;
|
|
178
|
+
}(HazelcastError));
|
|
179
|
+
exports.ClassCastError = ClassCastError;
|
|
180
|
+
var ClassNotFoundError = /** @class */ (function (_super) {
|
|
181
|
+
__extends(ClassNotFoundError, _super);
|
|
182
|
+
function ClassNotFoundError(msg, cause) {
|
|
183
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
184
|
+
Object.setPrototypeOf(_this, ClassNotFoundError.prototype);
|
|
185
|
+
return _this;
|
|
186
|
+
}
|
|
187
|
+
return ClassNotFoundError;
|
|
188
|
+
}(HazelcastError));
|
|
189
|
+
exports.ClassNotFoundError = ClassNotFoundError;
|
|
190
|
+
var ConcurrentModificationError = /** @class */ (function (_super) {
|
|
191
|
+
__extends(ConcurrentModificationError, _super);
|
|
192
|
+
function ConcurrentModificationError(msg, cause) {
|
|
193
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
194
|
+
Object.setPrototypeOf(_this, ConcurrentModificationError.prototype);
|
|
195
|
+
return _this;
|
|
196
|
+
}
|
|
197
|
+
return ConcurrentModificationError;
|
|
198
|
+
}(HazelcastError));
|
|
199
|
+
exports.ConcurrentModificationError = ConcurrentModificationError;
|
|
200
|
+
var ConfigMismatchError = /** @class */ (function (_super) {
|
|
201
|
+
__extends(ConfigMismatchError, _super);
|
|
202
|
+
function ConfigMismatchError(msg, cause) {
|
|
203
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
204
|
+
Object.setPrototypeOf(_this, ConfigMismatchError.prototype);
|
|
205
|
+
return _this;
|
|
206
|
+
}
|
|
207
|
+
return ConfigMismatchError;
|
|
208
|
+
}(HazelcastError));
|
|
209
|
+
exports.ConfigMismatchError = ConfigMismatchError;
|
|
210
|
+
var ConfigurationError = /** @class */ (function (_super) {
|
|
211
|
+
__extends(ConfigurationError, _super);
|
|
212
|
+
function ConfigurationError(msg, cause) {
|
|
213
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
214
|
+
Object.setPrototypeOf(_this, ConfigurationError.prototype);
|
|
215
|
+
return _this;
|
|
216
|
+
}
|
|
217
|
+
return ConfigurationError;
|
|
218
|
+
}(HazelcastError));
|
|
219
|
+
exports.ConfigurationError = ConfigurationError;
|
|
220
|
+
var DistributedObjectDestroyedError = /** @class */ (function (_super) {
|
|
221
|
+
__extends(DistributedObjectDestroyedError, _super);
|
|
222
|
+
function DistributedObjectDestroyedError(msg, cause) {
|
|
223
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
224
|
+
Object.setPrototypeOf(_this, DistributedObjectDestroyedError.prototype);
|
|
225
|
+
return _this;
|
|
226
|
+
}
|
|
227
|
+
return DistributedObjectDestroyedError;
|
|
228
|
+
}(HazelcastError));
|
|
229
|
+
exports.DistributedObjectDestroyedError = DistributedObjectDestroyedError;
|
|
230
|
+
var DuplicateInstanceNameError = /** @class */ (function (_super) {
|
|
231
|
+
__extends(DuplicateInstanceNameError, _super);
|
|
232
|
+
function DuplicateInstanceNameError(msg, cause) {
|
|
233
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
234
|
+
Object.setPrototypeOf(_this, DuplicateInstanceNameError.prototype);
|
|
235
|
+
return _this;
|
|
236
|
+
}
|
|
237
|
+
return DuplicateInstanceNameError;
|
|
238
|
+
}(HazelcastError));
|
|
239
|
+
exports.DuplicateInstanceNameError = DuplicateInstanceNameError;
|
|
240
|
+
var HazelcastInstanceNotActiveError = /** @class */ (function (_super) {
|
|
241
|
+
__extends(HazelcastInstanceNotActiveError, _super);
|
|
242
|
+
function HazelcastInstanceNotActiveError(msg, cause) {
|
|
243
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
244
|
+
Object.setPrototypeOf(_this, HazelcastInstanceNotActiveError.prototype);
|
|
245
|
+
return _this;
|
|
246
|
+
}
|
|
247
|
+
return HazelcastInstanceNotActiveError;
|
|
248
|
+
}(IllegalStateError));
|
|
249
|
+
exports.HazelcastInstanceNotActiveError = HazelcastInstanceNotActiveError;
|
|
250
|
+
var MemberLeftError = /** @class */ (function (_super) {
|
|
251
|
+
__extends(MemberLeftError, _super);
|
|
252
|
+
function MemberLeftError(msg, cause) {
|
|
253
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
254
|
+
Object.setPrototypeOf(_this, MemberLeftError.prototype);
|
|
255
|
+
return _this;
|
|
256
|
+
}
|
|
257
|
+
return MemberLeftError;
|
|
258
|
+
}(RetryableHazelcastError));
|
|
259
|
+
exports.MemberLeftError = MemberLeftError;
|
|
260
|
+
var PartitionMigratingError = /** @class */ (function (_super) {
|
|
261
|
+
__extends(PartitionMigratingError, _super);
|
|
262
|
+
function PartitionMigratingError(msg, cause) {
|
|
263
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
264
|
+
Object.setPrototypeOf(_this, PartitionMigratingError.prototype);
|
|
265
|
+
return _this;
|
|
266
|
+
}
|
|
267
|
+
return PartitionMigratingError;
|
|
268
|
+
}(RetryableHazelcastError));
|
|
269
|
+
exports.PartitionMigratingError = PartitionMigratingError;
|
|
270
|
+
var QueryError = /** @class */ (function (_super) {
|
|
271
|
+
__extends(QueryError, _super);
|
|
272
|
+
function QueryError(msg, cause) {
|
|
273
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
274
|
+
Object.setPrototypeOf(_this, QueryError.prototype);
|
|
275
|
+
return _this;
|
|
276
|
+
}
|
|
277
|
+
return QueryError;
|
|
278
|
+
}(HazelcastError));
|
|
279
|
+
exports.QueryError = QueryError;
|
|
280
|
+
var TransactionError = /** @class */ (function (_super) {
|
|
281
|
+
__extends(TransactionError, _super);
|
|
282
|
+
function TransactionError(msg, cause) {
|
|
283
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
284
|
+
Object.setPrototypeOf(_this, TransactionError.prototype);
|
|
285
|
+
return _this;
|
|
286
|
+
}
|
|
287
|
+
return TransactionError;
|
|
288
|
+
}(HazelcastError));
|
|
289
|
+
exports.TransactionError = TransactionError;
|
|
290
|
+
var TransactionNotActiveError = /** @class */ (function (_super) {
|
|
291
|
+
__extends(TransactionNotActiveError, _super);
|
|
292
|
+
function TransactionNotActiveError(msg, cause) {
|
|
293
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
294
|
+
Object.setPrototypeOf(_this, TransactionNotActiveError.prototype);
|
|
295
|
+
return _this;
|
|
296
|
+
}
|
|
297
|
+
return TransactionNotActiveError;
|
|
298
|
+
}(HazelcastError));
|
|
299
|
+
exports.TransactionNotActiveError = TransactionNotActiveError;
|
|
300
|
+
var TransactionTimedOutError = /** @class */ (function (_super) {
|
|
301
|
+
__extends(TransactionTimedOutError, _super);
|
|
302
|
+
function TransactionTimedOutError(msg, cause) {
|
|
303
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
304
|
+
Object.setPrototypeOf(_this, TransactionTimedOutError.prototype);
|
|
305
|
+
return _this;
|
|
306
|
+
}
|
|
307
|
+
return TransactionTimedOutError;
|
|
308
|
+
}(HazelcastError));
|
|
309
|
+
exports.TransactionTimedOutError = TransactionTimedOutError;
|
|
310
|
+
var QuorumError = /** @class */ (function (_super) {
|
|
311
|
+
__extends(QuorumError, _super);
|
|
312
|
+
function QuorumError(msg, cause) {
|
|
313
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
314
|
+
Object.setPrototypeOf(_this, QuorumError.prototype);
|
|
315
|
+
return _this;
|
|
316
|
+
}
|
|
317
|
+
return QuorumError;
|
|
318
|
+
}(TransactionError));
|
|
319
|
+
exports.QuorumError = QuorumError;
|
|
320
|
+
var RetryableIOError = /** @class */ (function (_super) {
|
|
321
|
+
__extends(RetryableIOError, _super);
|
|
322
|
+
function RetryableIOError(msg, cause) {
|
|
323
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
324
|
+
Object.setPrototypeOf(_this, RetryableIOError.prototype);
|
|
325
|
+
return _this;
|
|
326
|
+
}
|
|
327
|
+
return RetryableIOError;
|
|
328
|
+
}(RetryableHazelcastError));
|
|
329
|
+
exports.RetryableIOError = RetryableIOError;
|
|
330
|
+
var TargetDisconnectedError = /** @class */ (function (_super) {
|
|
331
|
+
__extends(TargetDisconnectedError, _super);
|
|
332
|
+
function TargetDisconnectedError(msg, cause) {
|
|
333
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
334
|
+
Object.setPrototypeOf(_this, TargetDisconnectedError.prototype);
|
|
335
|
+
return _this;
|
|
336
|
+
}
|
|
337
|
+
return TargetDisconnectedError;
|
|
338
|
+
}(HazelcastError));
|
|
339
|
+
exports.TargetDisconnectedError = TargetDisconnectedError;
|
|
340
|
+
var UnsupportedOperationError = /** @class */ (function (_super) {
|
|
341
|
+
__extends(UnsupportedOperationError, _super);
|
|
342
|
+
function UnsupportedOperationError(msg, cause) {
|
|
343
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
344
|
+
Object.setPrototypeOf(_this, UnsupportedOperationError.prototype);
|
|
345
|
+
return _this;
|
|
346
|
+
}
|
|
347
|
+
return UnsupportedOperationError;
|
|
348
|
+
}(HazelcastError));
|
|
349
|
+
exports.UnsupportedOperationError = UnsupportedOperationError;
|
|
350
|
+
var ConsistencyLostError = /** @class */ (function (_super) {
|
|
351
|
+
__extends(ConsistencyLostError, _super);
|
|
352
|
+
function ConsistencyLostError(msg, cause) {
|
|
353
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
354
|
+
Object.setPrototypeOf(_this, ConsistencyLostError.prototype);
|
|
355
|
+
return _this;
|
|
356
|
+
}
|
|
357
|
+
return ConsistencyLostError;
|
|
358
|
+
}(HazelcastError));
|
|
359
|
+
exports.ConsistencyLostError = ConsistencyLostError;
|
|
360
|
+
var NoDataMemberInClusterError = /** @class */ (function (_super) {
|
|
361
|
+
__extends(NoDataMemberInClusterError, _super);
|
|
362
|
+
function NoDataMemberInClusterError(msg, cause) {
|
|
363
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
364
|
+
Object.setPrototypeOf(_this, NoDataMemberInClusterError.prototype);
|
|
365
|
+
return _this;
|
|
366
|
+
}
|
|
367
|
+
return NoDataMemberInClusterError;
|
|
368
|
+
}(HazelcastError));
|
|
369
|
+
exports.NoDataMemberInClusterError = NoDataMemberInClusterError;
|
|
370
|
+
var StaleTaskIdError = /** @class */ (function (_super) {
|
|
371
|
+
__extends(StaleTaskIdError, _super);
|
|
372
|
+
function StaleTaskIdError(msg, cause) {
|
|
373
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
374
|
+
Object.setPrototypeOf(_this, StaleTaskIdError.prototype);
|
|
375
|
+
return _this;
|
|
376
|
+
}
|
|
377
|
+
return StaleTaskIdError;
|
|
378
|
+
}(HazelcastError));
|
|
379
|
+
exports.StaleTaskIdError = StaleTaskIdError;
|
|
380
|
+
var NodeIdOutOfRangeError = /** @class */ (function (_super) {
|
|
381
|
+
__extends(NodeIdOutOfRangeError, _super);
|
|
382
|
+
function NodeIdOutOfRangeError(msg, cause) {
|
|
383
|
+
var _this = _super.call(this, msg, cause) || this;
|
|
384
|
+
Object.setPrototypeOf(_this, NodeIdOutOfRangeError.prototype);
|
|
385
|
+
return _this;
|
|
386
|
+
}
|
|
387
|
+
return NodeIdOutOfRangeError;
|
|
388
|
+
}(HazelcastError));
|
|
389
|
+
exports.NodeIdOutOfRangeError = NodeIdOutOfRangeError;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ConnectionHeartbeatListener } from './core/ConnectionHeartbeatListener';
|
|
2
|
+
import HazelcastClient from './HazelcastClient';
|
|
3
|
+
/**
|
|
4
|
+
* Hearbeat Service
|
|
5
|
+
*/
|
|
6
|
+
export declare class Heartbeat {
|
|
7
|
+
private client;
|
|
8
|
+
private heartbeatTimeout;
|
|
9
|
+
private heartbeatInterval;
|
|
10
|
+
private listeners;
|
|
11
|
+
private logger;
|
|
12
|
+
private timer;
|
|
13
|
+
constructor(client: HazelcastClient);
|
|
14
|
+
/**
|
|
15
|
+
* Starts sending periodic heartbeat operations.
|
|
16
|
+
*/
|
|
17
|
+
start(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Cancels scheduled heartbeat operations.
|
|
20
|
+
*/
|
|
21
|
+
cancel(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Registers a heartbeat listener. Listener is invoked when a heartbeat related event occurs.
|
|
24
|
+
* @param heartbeatListener
|
|
25
|
+
*/
|
|
26
|
+
addListener(heartbeatListener: ConnectionHeartbeatListener): void;
|
|
27
|
+
private heartbeatFunction();
|
|
28
|
+
private onHeartbeatStopped(connection);
|
|
29
|
+
private onHeartbeatRestored(connection);
|
|
30
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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 ClientPingCodec_1 = require("./codec/ClientPingCodec");
|
|
19
|
+
var PROPERTY_HEARTBEAT_INTERVAL = 'hazelcast.client.heartbeat.interval';
|
|
20
|
+
var PROPERTY_HEARTBEAT_TIMEOUT = 'hazelcast.client.heartbeat.timeout';
|
|
21
|
+
/**
|
|
22
|
+
* Hearbeat Service
|
|
23
|
+
*/
|
|
24
|
+
var Heartbeat = /** @class */ (function () {
|
|
25
|
+
function Heartbeat(client) {
|
|
26
|
+
this.listeners = [];
|
|
27
|
+
this.client = client;
|
|
28
|
+
this.logger = this.client.getLoggingService().getLogger();
|
|
29
|
+
this.heartbeatInterval = this.client.getConfig().properties[PROPERTY_HEARTBEAT_INTERVAL];
|
|
30
|
+
this.heartbeatTimeout = this.client.getConfig().properties[PROPERTY_HEARTBEAT_TIMEOUT];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Starts sending periodic heartbeat operations.
|
|
34
|
+
*/
|
|
35
|
+
Heartbeat.prototype.start = function () {
|
|
36
|
+
this.timer = setTimeout(this.heartbeatFunction.bind(this), this.heartbeatInterval);
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Cancels scheduled heartbeat operations.
|
|
40
|
+
*/
|
|
41
|
+
Heartbeat.prototype.cancel = function () {
|
|
42
|
+
clearTimeout(this.timer);
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Registers a heartbeat listener. Listener is invoked when a heartbeat related event occurs.
|
|
46
|
+
* @param heartbeatListener
|
|
47
|
+
*/
|
|
48
|
+
Heartbeat.prototype.addListener = function (heartbeatListener) {
|
|
49
|
+
this.listeners.push(heartbeatListener);
|
|
50
|
+
};
|
|
51
|
+
Heartbeat.prototype.heartbeatFunction = function () {
|
|
52
|
+
var _this = this;
|
|
53
|
+
var estConnections = this.client.getConnectionManager().establishedConnections;
|
|
54
|
+
var _loop_1 = function (address) {
|
|
55
|
+
if (estConnections[address]) {
|
|
56
|
+
var conn_1 = estConnections[address];
|
|
57
|
+
var now = Date.now();
|
|
58
|
+
if (now - conn_1.getLastReadTimeMillis() > this_1.heartbeatTimeout) {
|
|
59
|
+
if (conn_1.isHeartbeating()) {
|
|
60
|
+
conn_1.setHeartbeating(false);
|
|
61
|
+
this_1.onHeartbeatStopped(conn_1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (now - conn_1.getLastWriteTimeMillis() > this_1.heartbeatInterval) {
|
|
65
|
+
var req = ClientPingCodec_1.ClientPingCodec.encodeRequest();
|
|
66
|
+
this_1.client.getInvocationService().invokeOnConnection(conn_1, req)
|
|
67
|
+
.catch(function (error) {
|
|
68
|
+
if (conn_1.isAlive()) {
|
|
69
|
+
_this.logger.warn('HeartbeatService', 'Error receiving ping answer from the connection: '
|
|
70
|
+
+ conn_1 + ' ' + error);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
if (!conn_1.isHeartbeating()) {
|
|
76
|
+
conn_1.setHeartbeating(true);
|
|
77
|
+
this_1.onHeartbeatRestored(conn_1);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var this_1 = this;
|
|
83
|
+
for (var address in estConnections) {
|
|
84
|
+
_loop_1(address);
|
|
85
|
+
}
|
|
86
|
+
this.timer = setTimeout(this.heartbeatFunction.bind(this), this.heartbeatInterval);
|
|
87
|
+
};
|
|
88
|
+
Heartbeat.prototype.onHeartbeatStopped = function (connection) {
|
|
89
|
+
var _this = this;
|
|
90
|
+
this.logger.warn('HeartbeatService', 'Heartbeat stopped on ' + connection.toString());
|
|
91
|
+
this.listeners.forEach(function (listener) {
|
|
92
|
+
if (listener.hasOwnProperty('onHeartbeatStopped')) {
|
|
93
|
+
setImmediate(listener.onHeartbeatStopped.bind(_this), connection);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
Heartbeat.prototype.onHeartbeatRestored = function (connection) {
|
|
98
|
+
var _this = this;
|
|
99
|
+
this.logger.warn('HeartbeatService', 'Heartbeat restored on ' + connection.toString());
|
|
100
|
+
this.listeners.forEach(function (listener) {
|
|
101
|
+
if (listener.hasOwnProperty('onHeartbeatRestored')) {
|
|
102
|
+
setImmediate(listener.onHeartbeatRestored.bind(_this), connection);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
return Heartbeat;
|
|
107
|
+
}());
|
|
108
|
+
exports.Heartbeat = Heartbeat;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
3
|
+
import HazelcastClient from './HazelcastClient';
|
|
4
|
+
/**
|
|
5
|
+
* Lifecycle events.
|
|
6
|
+
*/
|
|
7
|
+
export declare let LifecycleEvent: {
|
|
8
|
+
name: string;
|
|
9
|
+
starting: string;
|
|
10
|
+
started: string;
|
|
11
|
+
shuttingDown: string;
|
|
12
|
+
shutdown: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* LifecycleService
|
|
16
|
+
*/
|
|
17
|
+
export declare class LifecycleService extends EventEmitter {
|
|
18
|
+
private active;
|
|
19
|
+
private client;
|
|
20
|
+
private logger;
|
|
21
|
+
constructor(client: HazelcastClient);
|
|
22
|
+
/**
|
|
23
|
+
* Causes LifecycleService to emit given event to all registered listeners.
|
|
24
|
+
* @param state
|
|
25
|
+
*/
|
|
26
|
+
emitLifecycleEvent(state: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the active state of the client.
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
isRunning(): boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 events_1 = require("events");
|
|
29
|
+
var Util = require("./Util");
|
|
30
|
+
/**
|
|
31
|
+
* Lifecycle events.
|
|
32
|
+
*/
|
|
33
|
+
exports.LifecycleEvent = {
|
|
34
|
+
/**
|
|
35
|
+
* events are emitted with this name.
|
|
36
|
+
*/
|
|
37
|
+
name: 'lifecycleEvent',
|
|
38
|
+
/**
|
|
39
|
+
* From creation of client to connected state.
|
|
40
|
+
*/
|
|
41
|
+
starting: 'starting',
|
|
42
|
+
/**
|
|
43
|
+
* Client is connected to cluster. Ready to use.
|
|
44
|
+
*/
|
|
45
|
+
started: 'started',
|
|
46
|
+
/**
|
|
47
|
+
* Disconnect initiated.
|
|
48
|
+
*/
|
|
49
|
+
shuttingDown: 'shuttingDown',
|
|
50
|
+
/**
|
|
51
|
+
* Disconnect completed gracefully.
|
|
52
|
+
*/
|
|
53
|
+
shutdown: 'shutdown',
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* LifecycleService
|
|
57
|
+
*/
|
|
58
|
+
var LifecycleService = /** @class */ (function (_super) {
|
|
59
|
+
__extends(LifecycleService, _super);
|
|
60
|
+
function LifecycleService(client) {
|
|
61
|
+
var _this = _super.call(this) || this;
|
|
62
|
+
_this.setMaxListeners(0);
|
|
63
|
+
_this.client = client;
|
|
64
|
+
_this.logger = _this.client.getLoggingService().getLogger();
|
|
65
|
+
var listeners = client.getConfig().listeners.lifecycle;
|
|
66
|
+
listeners.forEach(function (listener) {
|
|
67
|
+
_this.on(exports.LifecycleEvent.name, listener);
|
|
68
|
+
});
|
|
69
|
+
var listenerConfigs = client.getConfig().listenerConfigs;
|
|
70
|
+
listenerConfigs.forEach(function (importConfig) {
|
|
71
|
+
var path = importConfig.path;
|
|
72
|
+
var exportedName = importConfig.exportedName;
|
|
73
|
+
var listener = Util.loadNameFromPath(path, exportedName);
|
|
74
|
+
_this.on(exports.LifecycleEvent.name, listener);
|
|
75
|
+
});
|
|
76
|
+
_this.emitLifecycleEvent(exports.LifecycleEvent.starting);
|
|
77
|
+
return _this;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Causes LifecycleService to emit given event to all registered listeners.
|
|
81
|
+
* @param state
|
|
82
|
+
*/
|
|
83
|
+
LifecycleService.prototype.emitLifecycleEvent = function (state) {
|
|
84
|
+
if (!exports.LifecycleEvent.hasOwnProperty(state)) {
|
|
85
|
+
throw new Error(state + ' is not a valid lifecycle event');
|
|
86
|
+
}
|
|
87
|
+
if (state === exports.LifecycleEvent.started) {
|
|
88
|
+
this.active = true;
|
|
89
|
+
}
|
|
90
|
+
else if (state === exports.LifecycleEvent.shuttingDown) {
|
|
91
|
+
this.active = false;
|
|
92
|
+
}
|
|
93
|
+
this.logger.info('LifecycleService', 'HazelcastClient is ' + state);
|
|
94
|
+
this.emit(exports.LifecycleEvent.name, state);
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Returns the active state of the client.
|
|
98
|
+
* @returns {boolean}
|
|
99
|
+
*/
|
|
100
|
+
LifecycleService.prototype.isRunning = function () {
|
|
101
|
+
return this.active;
|
|
102
|
+
};
|
|
103
|
+
return LifecycleService;
|
|
104
|
+
}(events_1.EventEmitter));
|
|
105
|
+
exports.LifecycleService = LifecycleService;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import ClientMessage = require('./ClientMessage');
|
|
2
|
+
export interface ListenerMessageCodec {
|
|
3
|
+
encodeAddRequest: (localOnly: boolean) => ClientMessage;
|
|
4
|
+
decodeAddResponse: (msg: ClientMessage) => string;
|
|
5
|
+
encodeRemoveRequest: (listenerId: string) => ClientMessage;
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 });
|