@celerispay/hazelcast-client 3.12.5-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -0
- package/CHANGELOG.md +140 -0
- package/CONFIG.md +503 -0
- package/FAILOVER_FIXES.md +202 -0
- package/LICENSE +202 -0
- package/QUICK_START.md +232 -0
- package/README.md +178 -0
- package/RELEASE_SUMMARY.md +260 -0
- package/config-schema.json +343 -0
- package/hazelcast-client-default.json +56 -0
- package/hazelcast-client-full.json +137 -0
- package/lib/Address.d.ts +17 -0
- package/lib/Address.js +65 -0
- package/lib/BitsUtil.d.ts +69 -0
- package/lib/BitsUtil.js +202 -0
- package/lib/BuildInfo.d.ts +9 -0
- package/lib/BuildInfo.js +53 -0
- package/lib/ClientInfo.d.ts +15 -0
- package/lib/ClientInfo.js +27 -0
- package/lib/ClientMessage.d.ts +52 -0
- package/lib/ClientMessage.js +217 -0
- package/lib/ClusterDataFactory.d.ts +4 -0
- package/lib/ClusterDataFactory.js +31 -0
- package/lib/ClusterDataFactoryHelper.d.ts +5 -0
- package/lib/ClusterDataFactoryHelper.js +26 -0
- package/lib/DataStoreHashMap.d.ts +20 -0
- package/lib/DataStoreHashMap.js +112 -0
- package/lib/DistributedObject.d.ts +22 -0
- package/lib/DistributedObject.js +17 -0
- package/lib/HazelcastClient.d.ts +201 -0
- package/lib/HazelcastClient.js +370 -0
- package/lib/HazelcastError.d.ts +114 -0
- package/lib/HazelcastError.js +389 -0
- package/lib/HeartbeatService.d.ts +30 -0
- package/lib/HeartbeatService.js +108 -0
- package/lib/LifecycleService.d.ts +32 -0
- package/lib/LifecycleService.js +105 -0
- package/lib/ListenerMessageCodec.d.ts +6 -0
- package/lib/ListenerMessageCodec.js +17 -0
- package/lib/ListenerService.d.ts +35 -0
- package/lib/ListenerService.js +233 -0
- package/lib/LockReferenceIdGenerator.d.ts +6 -0
- package/lib/LockReferenceIdGenerator.js +29 -0
- package/lib/PartitionService.d.ts +55 -0
- package/lib/PartitionService.js +160 -0
- package/lib/Util.d.ts +47 -0
- package/lib/Util.js +351 -0
- package/lib/aggregation/Aggregator.d.ts +74 -0
- package/lib/aggregation/Aggregator.js +277 -0
- package/lib/aggregation/AggregatorFactory.d.ts +26 -0
- package/lib/aggregation/AggregatorFactory.js +66 -0
- package/lib/aggregation/Aggregators.d.ts +96 -0
- package/lib/aggregation/Aggregators.js +149 -0
- package/lib/codec/AddressCodec.d.ts +6 -0
- package/lib/codec/AddressCodec.js +33 -0
- package/lib/codec/AtomicLongAddAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongAddAndGetCodec.js +56 -0
- package/lib/codec/AtomicLongCompareAndSetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongCompareAndSetCodec.js +58 -0
- package/lib/codec/AtomicLongDecrementAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongDecrementAndGetCodec.js +54 -0
- package/lib/codec/AtomicLongGetAndAddCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndAddCodec.js +56 -0
- package/lib/codec/AtomicLongGetAndIncrementCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndIncrementCodec.js +54 -0
- package/lib/codec/AtomicLongGetAndSetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetAndSetCodec.js +56 -0
- package/lib/codec/AtomicLongGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongGetCodec.js +54 -0
- package/lib/codec/AtomicLongIncrementAndGetCodec.d.ts +7 -0
- package/lib/codec/AtomicLongIncrementAndGetCodec.js +54 -0
- package/lib/codec/AtomicLongMessageType.d.ts +15 -0
- package/lib/codec/AtomicLongMessageType.js +37 -0
- package/lib/codec/AtomicLongSetCodec.d.ts +5 -0
- package/lib/codec/AtomicLongSetCodec.js +47 -0
- package/lib/codec/ClientAddDistributedObjectListenerCodec.d.ts +8 -0
- package/lib/codec/ClientAddDistributedObjectListenerCodec.js +74 -0
- package/lib/codec/ClientAddMembershipListenerCodec.d.ts +8 -0
- package/lib/codec/ClientAddMembershipListenerCodec.js +107 -0
- package/lib/codec/ClientAuthenticationCodec.d.ts +7 -0
- package/lib/codec/ClientAuthenticationCodec.js +114 -0
- package/lib/codec/ClientAuthenticationCustomCodec.d.ts +7 -0
- package/lib/codec/ClientAuthenticationCustomCodec.js +112 -0
- package/lib/codec/ClientCreateProxyCodec.d.ts +6 -0
- package/lib/codec/ClientCreateProxyCodec.js +50 -0
- package/lib/codec/ClientDestroyProxyCodec.d.ts +5 -0
- package/lib/codec/ClientDestroyProxyCodec.js +47 -0
- package/lib/codec/ClientGetDistributedObjectsCodec.d.ts +7 -0
- package/lib/codec/ClientGetDistributedObjectsCodec.js +59 -0
- package/lib/codec/ClientMessageType.d.ts +18 -0
- package/lib/codec/ClientMessageType.js +40 -0
- package/lib/codec/ClientPingCodec.d.ts +5 -0
- package/lib/codec/ClientPingCodec.js +42 -0
- package/lib/codec/ClientRemoveDistributedObjectListenerCodec.d.ts +7 -0
- package/lib/codec/ClientRemoveDistributedObjectListenerCodec.js +54 -0
- package/lib/codec/ClientStatisticsCodec.d.ts +5 -0
- package/lib/codec/ClientStatisticsCodec.js +42 -0
- package/lib/codec/DistributedObjectInfoCodec.d.ts +5 -0
- package/lib/codec/DistributedObjectInfoCodec.js +27 -0
- package/lib/codec/EntryViewCodec.d.ts +7 -0
- package/lib/codec/EntryViewCodec.js +56 -0
- package/lib/codec/FlakeIdGeneratorMessageType.d.ts +3 -0
- package/lib/codec/FlakeIdGeneratorMessageType.js +25 -0
- package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.d.ts +7 -0
- package/lib/codec/FlakeIdGeneratorNewIdBatchCodec.js +60 -0
- package/lib/codec/GetPartitionsCodec.d.ts +9 -0
- package/lib/codec/GetPartitionsCodec.js +45 -0
- package/lib/codec/ListAddAllCodec.d.ts +7 -0
- package/lib/codec/ListAddAllCodec.js +62 -0
- package/lib/codec/ListAddAllWithIndexCodec.d.ts +7 -0
- package/lib/codec/ListAddAllWithIndexCodec.js +64 -0
- package/lib/codec/ListAddCodec.d.ts +7 -0
- package/lib/codec/ListAddCodec.js +56 -0
- package/lib/codec/ListAddListenerCodec.d.ts +8 -0
- package/lib/codec/ListAddListenerCodec.js +80 -0
- package/lib/codec/ListAddWithIndexCodec.d.ts +6 -0
- package/lib/codec/ListAddWithIndexCodec.js +49 -0
- package/lib/codec/ListClearCodec.d.ts +5 -0
- package/lib/codec/ListClearCodec.js +45 -0
- package/lib/codec/ListCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/ListCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/ListCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/ListCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/ListContainsAllCodec.d.ts +7 -0
- package/lib/codec/ListContainsAllCodec.js +62 -0
- package/lib/codec/ListContainsCodec.d.ts +7 -0
- package/lib/codec/ListContainsCodec.js +56 -0
- package/lib/codec/ListGetAllCodec.d.ts +7 -0
- package/lib/codec/ListGetAllCodec.js +61 -0
- package/lib/codec/ListGetCodec.d.ts +7 -0
- package/lib/codec/ListGetCodec.js +58 -0
- package/lib/codec/ListIndexOfCodec.d.ts +7 -0
- package/lib/codec/ListIndexOfCodec.js +56 -0
- package/lib/codec/ListIsEmptyCodec.d.ts +7 -0
- package/lib/codec/ListIsEmptyCodec.js +54 -0
- package/lib/codec/ListLastIndexOfCodec.d.ts +7 -0
- package/lib/codec/ListLastIndexOfCodec.js +56 -0
- package/lib/codec/ListMessageType.d.ts +25 -0
- package/lib/codec/ListMessageType.js +47 -0
- package/lib/codec/ListRemoveCodec.d.ts +7 -0
- package/lib/codec/ListRemoveCodec.js +56 -0
- package/lib/codec/ListRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/ListRemoveListenerCodec.js +56 -0
- package/lib/codec/ListRemoveWithIndexCodec.d.ts +7 -0
- package/lib/codec/ListRemoveWithIndexCodec.js +58 -0
- package/lib/codec/ListSetCodec.d.ts +7 -0
- package/lib/codec/ListSetCodec.js +60 -0
- package/lib/codec/ListSizeCodec.d.ts +7 -0
- package/lib/codec/ListSizeCodec.js +54 -0
- package/lib/codec/ListSubCodec.d.ts +7 -0
- package/lib/codec/ListSubCodec.js +65 -0
- package/lib/codec/LockForceUnlockCodec.d.ts +5 -0
- package/lib/codec/LockForceUnlockCodec.js +47 -0
- package/lib/codec/LockGetLockCountCodec.d.ts +7 -0
- package/lib/codec/LockGetLockCountCodec.js +54 -0
- package/lib/codec/LockGetRemainingLeaseTimeCodec.d.ts +7 -0
- package/lib/codec/LockGetRemainingLeaseTimeCodec.js +54 -0
- package/lib/codec/LockIsLockedByCurrentThreadCodec.d.ts +7 -0
- package/lib/codec/LockIsLockedByCurrentThreadCodec.js +56 -0
- package/lib/codec/LockIsLockedCodec.d.ts +7 -0
- package/lib/codec/LockIsLockedCodec.js +54 -0
- package/lib/codec/LockLockCodec.d.ts +5 -0
- package/lib/codec/LockLockCodec.js +51 -0
- package/lib/codec/LockMessageType.d.ts +10 -0
- package/lib/codec/LockMessageType.js +32 -0
- package/lib/codec/LockTryLockCodec.d.ts +7 -0
- package/lib/codec/LockTryLockCodec.js +62 -0
- package/lib/codec/LockUnlockCodec.d.ts +5 -0
- package/lib/codec/LockUnlockCodec.js +49 -0
- package/lib/codec/MapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerCodec.js +104 -0
- package/lib/codec/MapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerToKeyCodec.js +106 -0
- package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerToKeyWithPredicateCodec.js +108 -0
- package/lib/codec/MapAddEntryListenerWithPredicateCodec.d.ts +8 -0
- package/lib/codec/MapAddEntryListenerWithPredicateCodec.js +106 -0
- package/lib/codec/MapAddIndexCodec.d.ts +5 -0
- package/lib/codec/MapAddIndexCodec.js +49 -0
- package/lib/codec/MapAddNearCacheEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddNearCacheEntryListenerCodec.js +135 -0
- package/lib/codec/MapAddNearCacheInvalidationListenerCodec.d.ts +8 -0
- package/lib/codec/MapAddNearCacheInvalidationListenerCodec.js +138 -0
- package/lib/codec/MapAggregateCodec.d.ts +7 -0
- package/lib/codec/MapAggregateCodec.js +61 -0
- package/lib/codec/MapAggregateWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapAggregateWithPredicateCodec.js +63 -0
- package/lib/codec/MapClearCodec.d.ts +5 -0
- package/lib/codec/MapClearCodec.js +45 -0
- package/lib/codec/MapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/MapContainsKeyCodec.js +58 -0
- package/lib/codec/MapContainsValueCodec.d.ts +7 -0
- package/lib/codec/MapContainsValueCodec.js +56 -0
- package/lib/codec/MapDeleteCodec.d.ts +6 -0
- package/lib/codec/MapDeleteCodec.js +49 -0
- package/lib/codec/MapEntriesWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapEntriesWithPredicateCodec.js +67 -0
- package/lib/codec/MapEntrySetCodec.d.ts +7 -0
- package/lib/codec/MapEntrySetCodec.js +65 -0
- package/lib/codec/MapEvictAllCodec.d.ts +5 -0
- package/lib/codec/MapEvictAllCodec.js +45 -0
- package/lib/codec/MapEvictCodec.d.ts +7 -0
- package/lib/codec/MapEvictCodec.js +58 -0
- package/lib/codec/MapExecuteOnAllKeysCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnAllKeysCodec.js +67 -0
- package/lib/codec/MapExecuteOnKeyCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnKeyCodec.js +62 -0
- package/lib/codec/MapExecuteOnKeysCodec.d.ts +7 -0
- package/lib/codec/MapExecuteOnKeysCodec.js +75 -0
- package/lib/codec/MapExecuteWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapExecuteWithPredicateCodec.js +69 -0
- package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.d.ts +8 -0
- package/lib/codec/MapFetchNearCacheInvalidationMetadataCodec.js +101 -0
- package/lib/codec/MapFlushCodec.d.ts +5 -0
- package/lib/codec/MapFlushCodec.js +45 -0
- package/lib/codec/MapForceUnlockCodec.d.ts +6 -0
- package/lib/codec/MapForceUnlockCodec.js +49 -0
- package/lib/codec/MapGetAllCodec.d.ts +7 -0
- package/lib/codec/MapGetAllCodec.js +73 -0
- package/lib/codec/MapGetCodec.d.ts +7 -0
- package/lib/codec/MapGetCodec.js +60 -0
- package/lib/codec/MapGetEntryViewCodec.d.ts +7 -0
- package/lib/codec/MapGetEntryViewCodec.js +61 -0
- package/lib/codec/MapIsEmptyCodec.d.ts +7 -0
- package/lib/codec/MapIsEmptyCodec.js +54 -0
- package/lib/codec/MapIsLockedCodec.d.ts +7 -0
- package/lib/codec/MapIsLockedCodec.js +56 -0
- package/lib/codec/MapKeySetCodec.d.ts +7 -0
- package/lib/codec/MapKeySetCodec.js +61 -0
- package/lib/codec/MapKeySetWithPagingPredicateCodec.d.ts +7 -0
- package/lib/codec/MapKeySetWithPagingPredicateCodec.js +63 -0
- package/lib/codec/MapKeySetWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapKeySetWithPredicateCodec.js +63 -0
- package/lib/codec/MapLoadAllCodec.d.ts +5 -0
- package/lib/codec/MapLoadAllCodec.js +47 -0
- package/lib/codec/MapLoadGivenKeysCodec.d.ts +5 -0
- package/lib/codec/MapLoadGivenKeysCodec.js +55 -0
- package/lib/codec/MapLockCodec.d.ts +6 -0
- package/lib/codec/MapLockCodec.js +53 -0
- package/lib/codec/MapMessageType.d.ts +71 -0
- package/lib/codec/MapMessageType.js +93 -0
- package/lib/codec/MapPutAllCodec.d.ts +5 -0
- package/lib/codec/MapPutAllCodec.js +59 -0
- package/lib/codec/MapPutCodec.d.ts +7 -0
- package/lib/codec/MapPutCodec.js +64 -0
- package/lib/codec/MapPutIfAbsentCodec.d.ts +7 -0
- package/lib/codec/MapPutIfAbsentCodec.js +64 -0
- package/lib/codec/MapPutTransientCodec.d.ts +6 -0
- package/lib/codec/MapPutTransientCodec.js +53 -0
- package/lib/codec/MapRemoveCodec.d.ts +7 -0
- package/lib/codec/MapRemoveCodec.js +60 -0
- package/lib/codec/MapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/MapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/MapRemoveIfSameCodec.d.ts +7 -0
- package/lib/codec/MapRemoveIfSameCodec.js +60 -0
- package/lib/codec/MapReplaceCodec.d.ts +7 -0
- package/lib/codec/MapReplaceCodec.js +62 -0
- package/lib/codec/MapReplaceIfSameCodec.d.ts +7 -0
- package/lib/codec/MapReplaceIfSameCodec.js +62 -0
- package/lib/codec/MapSetCodec.d.ts +6 -0
- package/lib/codec/MapSetCodec.js +53 -0
- package/lib/codec/MapSizeCodec.d.ts +7 -0
- package/lib/codec/MapSizeCodec.js +54 -0
- package/lib/codec/MapTryLockCodec.d.ts +7 -0
- package/lib/codec/MapTryLockCodec.js +64 -0
- package/lib/codec/MapTryPutCodec.d.ts +7 -0
- package/lib/codec/MapTryPutCodec.js +62 -0
- package/lib/codec/MapTryRemoveCodec.d.ts +7 -0
- package/lib/codec/MapTryRemoveCodec.js +60 -0
- package/lib/codec/MapUnlockCodec.d.ts +6 -0
- package/lib/codec/MapUnlockCodec.js +51 -0
- package/lib/codec/MapValuesCodec.d.ts +7 -0
- package/lib/codec/MapValuesCodec.js +61 -0
- package/lib/codec/MapValuesWithPagingPredicateCodec.d.ts +7 -0
- package/lib/codec/MapValuesWithPagingPredicateCodec.js +67 -0
- package/lib/codec/MapValuesWithPredicateCodec.d.ts +7 -0
- package/lib/codec/MapValuesWithPredicateCodec.js +63 -0
- package/lib/codec/MemberCodec.d.ts +6 -0
- package/lib/codec/MemberCodec.js +49 -0
- package/lib/codec/MultiMapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/MultiMapAddEntryListenerCodec.js +102 -0
- package/lib/codec/MultiMapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/MultiMapAddEntryListenerToKeyCodec.js +104 -0
- package/lib/codec/MultiMapClearCodec.d.ts +5 -0
- package/lib/codec/MultiMapClearCodec.js +45 -0
- package/lib/codec/MultiMapContainsEntryCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsEntryCodec.js +60 -0
- package/lib/codec/MultiMapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsKeyCodec.js +58 -0
- package/lib/codec/MultiMapContainsValueCodec.d.ts +7 -0
- package/lib/codec/MultiMapContainsValueCodec.js +56 -0
- package/lib/codec/MultiMapEntrySetCodec.d.ts +7 -0
- package/lib/codec/MultiMapEntrySetCodec.js +65 -0
- package/lib/codec/MultiMapForceUnlockCodec.d.ts +6 -0
- package/lib/codec/MultiMapForceUnlockCodec.js +49 -0
- package/lib/codec/MultiMapGetCodec.d.ts +7 -0
- package/lib/codec/MultiMapGetCodec.js +65 -0
- package/lib/codec/MultiMapIsLockedCodec.d.ts +7 -0
- package/lib/codec/MultiMapIsLockedCodec.js +56 -0
- package/lib/codec/MultiMapKeySetCodec.d.ts +7 -0
- package/lib/codec/MultiMapKeySetCodec.js +61 -0
- package/lib/codec/MultiMapLockCodec.d.ts +6 -0
- package/lib/codec/MultiMapLockCodec.js +53 -0
- package/lib/codec/MultiMapMessageType.d.ts +23 -0
- package/lib/codec/MultiMapMessageType.js +45 -0
- package/lib/codec/MultiMapPutCodec.d.ts +7 -0
- package/lib/codec/MultiMapPutCodec.js +60 -0
- package/lib/codec/MultiMapRemoveCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveCodec.js +65 -0
- package/lib/codec/MultiMapRemoveEntryCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveEntryCodec.js +60 -0
- package/lib/codec/MultiMapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/MultiMapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/MultiMapSizeCodec.d.ts +7 -0
- package/lib/codec/MultiMapSizeCodec.js +54 -0
- package/lib/codec/MultiMapTryLockCodec.d.ts +7 -0
- package/lib/codec/MultiMapTryLockCodec.js +64 -0
- package/lib/codec/MultiMapUnlockCodec.d.ts +6 -0
- package/lib/codec/MultiMapUnlockCodec.js +51 -0
- package/lib/codec/MultiMapValueCountCodec.d.ts +7 -0
- package/lib/codec/MultiMapValueCountCodec.js +58 -0
- package/lib/codec/MultiMapValuesCodec.d.ts +7 -0
- package/lib/codec/MultiMapValuesCodec.js +61 -0
- package/lib/codec/PNCounterAddCodec.d.ts +8 -0
- package/lib/codec/PNCounterAddCodec.js +90 -0
- package/lib/codec/PNCounterGetCodec.d.ts +8 -0
- package/lib/codec/PNCounterGetCodec.js +86 -0
- package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.d.ts +7 -0
- package/lib/codec/PNCounterGetConfiguredReplicaCountCodec.js +54 -0
- package/lib/codec/PNCounterMessageType.d.ts +5 -0
- package/lib/codec/PNCounterMessageType.js +27 -0
- package/lib/codec/QueueAddAllCodec.d.ts +7 -0
- package/lib/codec/QueueAddAllCodec.js +62 -0
- package/lib/codec/QueueAddListenerCodec.d.ts +8 -0
- package/lib/codec/QueueAddListenerCodec.js +80 -0
- package/lib/codec/QueueClearCodec.d.ts +5 -0
- package/lib/codec/QueueClearCodec.js +45 -0
- package/lib/codec/QueueCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/QueueCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/QueueCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/QueueCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/QueueContainsAllCodec.d.ts +7 -0
- package/lib/codec/QueueContainsAllCodec.js +62 -0
- package/lib/codec/QueueContainsCodec.d.ts +7 -0
- package/lib/codec/QueueContainsCodec.js +56 -0
- package/lib/codec/QueueDrainToCodec.d.ts +7 -0
- package/lib/codec/QueueDrainToCodec.js +61 -0
- package/lib/codec/QueueDrainToMaxSizeCodec.d.ts +7 -0
- package/lib/codec/QueueDrainToMaxSizeCodec.js +63 -0
- package/lib/codec/QueueIsEmptyCodec.d.ts +7 -0
- package/lib/codec/QueueIsEmptyCodec.js +54 -0
- package/lib/codec/QueueIteratorCodec.d.ts +7 -0
- package/lib/codec/QueueIteratorCodec.js +61 -0
- package/lib/codec/QueueMessageType.d.ts +22 -0
- package/lib/codec/QueueMessageType.js +44 -0
- package/lib/codec/QueueOfferCodec.d.ts +7 -0
- package/lib/codec/QueueOfferCodec.js +58 -0
- package/lib/codec/QueuePeekCodec.d.ts +7 -0
- package/lib/codec/QueuePeekCodec.js +56 -0
- package/lib/codec/QueuePollCodec.d.ts +7 -0
- package/lib/codec/QueuePollCodec.js +58 -0
- package/lib/codec/QueuePutCodec.d.ts +6 -0
- package/lib/codec/QueuePutCodec.js +47 -0
- package/lib/codec/QueueRemainingCapacityCodec.d.ts +7 -0
- package/lib/codec/QueueRemainingCapacityCodec.js +54 -0
- package/lib/codec/QueueRemoveCodec.d.ts +7 -0
- package/lib/codec/QueueRemoveCodec.js +56 -0
- package/lib/codec/QueueRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/QueueRemoveListenerCodec.js +56 -0
- package/lib/codec/QueueSizeCodec.d.ts +7 -0
- package/lib/codec/QueueSizeCodec.js +54 -0
- package/lib/codec/QueueTakeCodec.d.ts +7 -0
- package/lib/codec/QueueTakeCodec.js +56 -0
- package/lib/codec/ReplicatedMapAddEntryListenerCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerCodec.js +100 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyCodec.js +102 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.js +104 -0
- package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.d.ts +8 -0
- package/lib/codec/ReplicatedMapAddEntryListenerWithPredicateCodec.js +102 -0
- package/lib/codec/ReplicatedMapClearCodec.d.ts +5 -0
- package/lib/codec/ReplicatedMapClearCodec.js +45 -0
- package/lib/codec/ReplicatedMapContainsKeyCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapContainsKeyCodec.js +56 -0
- package/lib/codec/ReplicatedMapContainsValueCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapContainsValueCodec.js +56 -0
- package/lib/codec/ReplicatedMapEntrySetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapEntrySetCodec.js +65 -0
- package/lib/codec/ReplicatedMapGetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapGetCodec.js +58 -0
- package/lib/codec/ReplicatedMapIsEmptyCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapIsEmptyCodec.js +54 -0
- package/lib/codec/ReplicatedMapKeySetCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapKeySetCodec.js +61 -0
- package/lib/codec/ReplicatedMapMessageType.d.ts +20 -0
- package/lib/codec/ReplicatedMapMessageType.js +42 -0
- package/lib/codec/ReplicatedMapPutAllCodec.d.ts +5 -0
- package/lib/codec/ReplicatedMapPutAllCodec.js +59 -0
- package/lib/codec/ReplicatedMapPutCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapPutCodec.js +62 -0
- package/lib/codec/ReplicatedMapRemoveCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapRemoveCodec.js +58 -0
- package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapRemoveEntryListenerCodec.js +56 -0
- package/lib/codec/ReplicatedMapSizeCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapSizeCodec.js +54 -0
- package/lib/codec/ReplicatedMapValuesCodec.d.ts +7 -0
- package/lib/codec/ReplicatedMapValuesCodec.js +61 -0
- package/lib/codec/RingbufferAddAllCodec.d.ts +7 -0
- package/lib/codec/RingbufferAddAllCodec.js +64 -0
- package/lib/codec/RingbufferAddCodec.d.ts +7 -0
- package/lib/codec/RingbufferAddCodec.js +58 -0
- package/lib/codec/RingbufferCapacityCodec.d.ts +7 -0
- package/lib/codec/RingbufferCapacityCodec.js +54 -0
- package/lib/codec/RingbufferHeadSequenceCodec.d.ts +7 -0
- package/lib/codec/RingbufferHeadSequenceCodec.js +54 -0
- package/lib/codec/RingbufferMessageType.d.ts +11 -0
- package/lib/codec/RingbufferMessageType.js +33 -0
- package/lib/codec/RingbufferReadManyCodec.d.ts +7 -0
- package/lib/codec/RingbufferReadManyCodec.js +92 -0
- package/lib/codec/RingbufferReadOneCodec.d.ts +7 -0
- package/lib/codec/RingbufferReadOneCodec.js +58 -0
- package/lib/codec/RingbufferRemainingCapacityCodec.d.ts +7 -0
- package/lib/codec/RingbufferRemainingCapacityCodec.js +54 -0
- package/lib/codec/RingbufferSizeCodec.d.ts +7 -0
- package/lib/codec/RingbufferSizeCodec.js +54 -0
- package/lib/codec/RingbufferTailSequenceCodec.d.ts +7 -0
- package/lib/codec/RingbufferTailSequenceCodec.js +54 -0
- package/lib/codec/SemaphoreAcquireCodec.d.ts +5 -0
- package/lib/codec/SemaphoreAcquireCodec.js +47 -0
- package/lib/codec/SemaphoreAvailablePermitsCodec.d.ts +7 -0
- package/lib/codec/SemaphoreAvailablePermitsCodec.js +54 -0
- package/lib/codec/SemaphoreDrainPermitsCodec.d.ts +7 -0
- package/lib/codec/SemaphoreDrainPermitsCodec.js +54 -0
- package/lib/codec/SemaphoreInitCodec.d.ts +7 -0
- package/lib/codec/SemaphoreInitCodec.js +56 -0
- package/lib/codec/SemaphoreMessageType.d.ts +9 -0
- package/lib/codec/SemaphoreMessageType.js +31 -0
- package/lib/codec/SemaphoreReducePermitsCodec.d.ts +5 -0
- package/lib/codec/SemaphoreReducePermitsCodec.js +47 -0
- package/lib/codec/SemaphoreReleaseCodec.d.ts +5 -0
- package/lib/codec/SemaphoreReleaseCodec.js +47 -0
- package/lib/codec/SemaphoreTryAcquireCodec.d.ts +7 -0
- package/lib/codec/SemaphoreTryAcquireCodec.js +58 -0
- package/lib/codec/SetAddAllCodec.d.ts +7 -0
- package/lib/codec/SetAddAllCodec.js +62 -0
- package/lib/codec/SetAddCodec.d.ts +7 -0
- package/lib/codec/SetAddCodec.js +56 -0
- package/lib/codec/SetAddListenerCodec.d.ts +8 -0
- package/lib/codec/SetAddListenerCodec.js +80 -0
- package/lib/codec/SetClearCodec.d.ts +5 -0
- package/lib/codec/SetClearCodec.js +45 -0
- package/lib/codec/SetCompareAndRemoveAllCodec.d.ts +7 -0
- package/lib/codec/SetCompareAndRemoveAllCodec.js +62 -0
- package/lib/codec/SetCompareAndRetainAllCodec.d.ts +7 -0
- package/lib/codec/SetCompareAndRetainAllCodec.js +62 -0
- package/lib/codec/SetContainsAllCodec.d.ts +7 -0
- package/lib/codec/SetContainsAllCodec.js +62 -0
- package/lib/codec/SetContainsCodec.d.ts +7 -0
- package/lib/codec/SetContainsCodec.js +56 -0
- package/lib/codec/SetGetAllCodec.d.ts +7 -0
- package/lib/codec/SetGetAllCodec.js +61 -0
- package/lib/codec/SetIsEmptyCodec.d.ts +7 -0
- package/lib/codec/SetIsEmptyCodec.js +54 -0
- package/lib/codec/SetMessageType.d.ts +15 -0
- package/lib/codec/SetMessageType.js +37 -0
- package/lib/codec/SetRemoveCodec.d.ts +7 -0
- package/lib/codec/SetRemoveCodec.js +56 -0
- package/lib/codec/SetRemoveListenerCodec.d.ts +7 -0
- package/lib/codec/SetRemoveListenerCodec.js +56 -0
- package/lib/codec/SetSizeCodec.d.ts +7 -0
- package/lib/codec/SetSizeCodec.js +54 -0
- package/lib/codec/UUIDCodec.d.ts +5 -0
- package/lib/codec/UUIDCodec.js +29 -0
- package/lib/config/ClientCloudConfig.d.ts +13 -0
- package/lib/config/ClientCloudConfig.js +34 -0
- package/lib/config/ClientNetworkConfig.d.ts +43 -0
- package/lib/config/ClientNetworkConfig.js +64 -0
- package/lib/config/Config.d.ts +61 -0
- package/lib/config/Config.js +138 -0
- package/lib/config/ConfigBuilder.d.ts +26 -0
- package/lib/config/ConfigBuilder.js +322 -0
- package/lib/config/ConfigPatternMatcher.d.ts +12 -0
- package/lib/config/ConfigPatternMatcher.js +70 -0
- package/lib/config/EvictionPolicy.d.ts +9 -0
- package/lib/config/EvictionPolicy.js +27 -0
- package/lib/config/FlakeIdGeneratorConfig.d.ts +26 -0
- package/lib/config/FlakeIdGeneratorConfig.js +56 -0
- package/lib/config/GroupConfig.d.ts +14 -0
- package/lib/config/GroupConfig.js +35 -0
- package/lib/config/ImportConfig.d.ts +4 -0
- package/lib/config/ImportConfig.js +17 -0
- package/lib/config/InMemoryFormat.d.ts +10 -0
- package/lib/config/InMemoryFormat.js +28 -0
- package/lib/config/JsonConfigLocator.d.ts +16 -0
- package/lib/config/JsonConfigLocator.js +103 -0
- package/lib/config/JsonStringDeserializationPolicy.d.ts +17 -0
- package/lib/config/JsonStringDeserializationPolicy.js +35 -0
- package/lib/config/ListenerConfig.d.ts +8 -0
- package/lib/config/ListenerConfig.js +33 -0
- package/lib/config/NearCacheConfig.d.ts +25 -0
- package/lib/config/NearCacheConfig.js +59 -0
- package/lib/config/Properties.d.ts +5 -0
- package/lib/config/Properties.js +17 -0
- package/lib/config/ReliableTopicConfig.d.ts +8 -0
- package/lib/config/ReliableTopicConfig.js +38 -0
- package/lib/config/SSLConfig.d.ts +34 -0
- package/lib/config/SSLConfig.js +51 -0
- package/lib/config/SerializationConfig.d.ts +29 -0
- package/lib/config/SerializationConfig.js +38 -0
- package/lib/config/StringSerializationPolicy.d.ts +22 -0
- package/lib/config/StringSerializationPolicy.js +40 -0
- package/lib/connection/AddressProvider.d.ts +11 -0
- package/lib/connection/AddressProvider.js +17 -0
- package/lib/connection/AddressTranslator.d.ts +21 -0
- package/lib/connection/AddressTranslator.js +17 -0
- package/lib/connection/BasicSSLOptionsFactory.d.ts +14 -0
- package/lib/connection/BasicSSLOptionsFactory.js +67 -0
- package/lib/connection/DefaultAddressProvider.d.ts +15 -0
- package/lib/connection/DefaultAddressProvider.js +38 -0
- package/lib/connection/DefaultAddressTranslator.d.ts +11 -0
- package/lib/connection/DefaultAddressTranslator.js +33 -0
- package/lib/connection/SSLOptionsFactory.d.ts +7 -0
- package/lib/connection/SSLOptionsFactory.js +17 -0
- package/lib/core/Comparator.d.ts +21 -0
- package/lib/core/Comparator.js +17 -0
- package/lib/core/ConnectionHeartbeatListener.d.ts +16 -0
- package/lib/core/ConnectionHeartbeatListener.js +17 -0
- package/lib/core/DistributedObjectListener.d.ts +24 -0
- package/lib/core/DistributedObjectListener.js +30 -0
- package/lib/core/EntryListener.d.ts +51 -0
- package/lib/core/EntryListener.js +32 -0
- package/lib/core/EntryView.d.ts +16 -0
- package/lib/core/EntryView.js +23 -0
- package/lib/core/EventType.d.ts +12 -0
- package/lib/core/EventType.js +31 -0
- package/lib/core/HazelcastJsonValue.d.ts +32 -0
- package/lib/core/HazelcastJsonValue.js +56 -0
- package/lib/core/ItemListener.d.ts +38 -0
- package/lib/core/ItemListener.js +35 -0
- package/lib/core/MapListener.d.ts +29 -0
- package/lib/core/MapListener.js +29 -0
- package/lib/core/Member.d.ts +23 -0
- package/lib/core/Member.js +44 -0
- package/lib/core/MemberAttributeEvent.d.ts +37 -0
- package/lib/core/MemberAttributeEvent.js +45 -0
- package/lib/core/MemberSelector.d.ts +4 -0
- package/lib/core/MemberSelector.js +17 -0
- package/lib/core/MemberSelectors.d.ts +8 -0
- package/lib/core/MemberSelectors.js +33 -0
- package/lib/core/MembershipEvent.d.ts +20 -0
- package/lib/core/MembershipEvent.js +30 -0
- package/lib/core/MembershipListener.d.ts +22 -0
- package/lib/core/MembershipListener.js +17 -0
- package/lib/core/OverflowPolicy.d.ts +4 -0
- package/lib/core/OverflowPolicy.js +22 -0
- package/lib/core/Predicate.d.ts +28 -0
- package/lib/core/Predicate.js +113 -0
- package/lib/core/ReadOnlyLazyList.d.ts +12 -0
- package/lib/core/ReadOnlyLazyList.js +74 -0
- package/lib/core/RestValue.d.ts +15 -0
- package/lib/core/RestValue.js +51 -0
- package/lib/core/UUID.d.ts +9 -0
- package/lib/core/UUID.js +44 -0
- package/lib/core/VectorClock.d.ts +7 -0
- package/lib/core/VectorClock.js +48 -0
- package/lib/discovery/HazelcastCloudAddressProvider.d.ts +10 -0
- package/lib/discovery/HazelcastCloudAddressProvider.js +35 -0
- package/lib/discovery/HazelcastCloudAddressTranslator.d.ts +13 -0
- package/lib/discovery/HazelcastCloudAddressTranslator.js +54 -0
- package/lib/discovery/HazelcastCloudDiscovery.d.ts +25 -0
- package/lib/discovery/HazelcastCloudDiscovery.js +85 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +64 -0
- package/lib/invocation/ClientConnection.d.ts +82 -0
- package/lib/invocation/ClientConnection.js +307 -0
- package/lib/invocation/ClientConnectionManager.d.ts +65 -0
- package/lib/invocation/ClientConnectionManager.js +360 -0
- package/lib/invocation/ClientEventRegistration.d.ts +10 -0
- package/lib/invocation/ClientEventRegistration.js +30 -0
- package/lib/invocation/ClusterService.d.ts +127 -0
- package/lib/invocation/ClusterService.js +581 -0
- package/lib/invocation/ConnectionAuthenticator.d.ts +14 -0
- package/lib/invocation/ConnectionAuthenticator.js +88 -0
- package/lib/invocation/InvocationService.d.ts +138 -0
- package/lib/invocation/InvocationService.js +387 -0
- package/lib/invocation/Murmur.d.ts +2 -0
- package/lib/invocation/Murmur.js +65 -0
- package/lib/invocation/RegistrationKey.d.ts +16 -0
- package/lib/invocation/RegistrationKey.js +48 -0
- package/lib/logging/DefaultLogger.d.ts +12 -0
- package/lib/logging/DefaultLogger.js +48 -0
- package/lib/logging/ILogger.d.ts +49 -0
- package/lib/logging/ILogger.js +17 -0
- package/lib/logging/LoggingService.d.ts +16 -0
- package/lib/logging/LoggingService.js +50 -0
- package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.d.ts +10 -0
- package/lib/nearcache/AlwaysFreshStaleReadDetectorImpl.js +34 -0
- package/lib/nearcache/DataRecord.d.ts +33 -0
- package/lib/nearcache/DataRecord.js +109 -0
- package/lib/nearcache/MetadataContainer.d.ts +18 -0
- package/lib/nearcache/MetadataContainer.js +56 -0
- package/lib/nearcache/MetadataFetcher.d.ts +20 -0
- package/lib/nearcache/MetadataFetcher.js +92 -0
- package/lib/nearcache/NearCache.d.ts +89 -0
- package/lib/nearcache/NearCache.js +250 -0
- package/lib/nearcache/NearCacheManager.d.ts +13 -0
- package/lib/nearcache/NearCacheManager.js +50 -0
- package/lib/nearcache/RepairingHandler.d.ts +26 -0
- package/lib/nearcache/RepairingHandler.js +114 -0
- package/lib/nearcache/RepairingTask.d.ts +26 -0
- package/lib/nearcache/RepairingTask.js +117 -0
- package/lib/nearcache/StaleReadDetector.d.ts +7 -0
- package/lib/nearcache/StaleReadDetector.js +2 -0
- package/lib/nearcache/StaleReadDetectorImpl.d.ts +13 -0
- package/lib/nearcache/StaleReadDetectorImpl.js +62 -0
- package/lib/protocol/ClientProtocolErrorCodes.d.ts +91 -0
- package/lib/protocol/ClientProtocolErrorCodes.js +112 -0
- package/lib/protocol/ErrorCodec.d.ts +11 -0
- package/lib/protocol/ErrorCodec.js +50 -0
- package/lib/protocol/ErrorFactory.d.ts +8 -0
- package/lib/protocol/ErrorFactory.js +92 -0
- package/lib/protocol/StackTraceElementCodec.d.ts +8 -0
- package/lib/protocol/StackTraceElementCodec.js +38 -0
- package/lib/proxy/AtomicLongProxy.d.ts +17 -0
- package/lib/proxy/AtomicLongProxy.js +72 -0
- package/lib/proxy/BaseProxy.d.ts +89 -0
- package/lib/proxy/BaseProxy.js +191 -0
- package/lib/proxy/FlakeIdGenerator.d.ts +47 -0
- package/lib/proxy/FlakeIdGenerator.js +17 -0
- package/lib/proxy/FlakeIdGeneratorProxy.d.ts +13 -0
- package/lib/proxy/FlakeIdGeneratorProxy.js +48 -0
- package/lib/proxy/IAtomicLong.d.ts +16 -0
- package/lib/proxy/IAtomicLong.js +17 -0
- package/lib/proxy/IList.d.ts +132 -0
- package/lib/proxy/IList.js +17 -0
- package/lib/proxy/ILock.d.ts +54 -0
- package/lib/proxy/ILock.js +17 -0
- package/lib/proxy/IMap.d.ts +328 -0
- package/lib/proxy/IMap.js +17 -0
- package/lib/proxy/IQueue.d.ts +128 -0
- package/lib/proxy/IQueue.js +17 -0
- package/lib/proxy/ISemaphore.d.ts +53 -0
- package/lib/proxy/ISemaphore.js +17 -0
- package/lib/proxy/ISet.d.ts +89 -0
- package/lib/proxy/ISet.js +17 -0
- package/lib/proxy/ListProxy.d.ts +31 -0
- package/lib/proxy/ListProxy.js +165 -0
- package/lib/proxy/LockProxy.d.ts +16 -0
- package/lib/proxy/LockProxy.js +78 -0
- package/lib/proxy/MapProxy.d.ts +82 -0
- package/lib/proxy/MapProxy.js +651 -0
- package/lib/proxy/MultiMap.d.ts +153 -0
- package/lib/proxy/MultiMap.js +17 -0
- package/lib/proxy/MultiMapProxy.d.ts +33 -0
- package/lib/proxy/MultiMapProxy.js +238 -0
- package/lib/proxy/NearCachedMapProxy.d.ts +41 -0
- package/lib/proxy/NearCachedMapProxy.js +284 -0
- package/lib/proxy/PNCounter.d.ts +162 -0
- package/lib/proxy/PNCounter.js +17 -0
- package/lib/proxy/PNCounterProxy.d.ts +30 -0
- package/lib/proxy/PNCounterProxy.js +181 -0
- package/lib/proxy/PartitionSpecificProxy.d.ts +10 -0
- package/lib/proxy/PartitionSpecificProxy.js +52 -0
- package/lib/proxy/ProxyManager.d.ts +40 -0
- package/lib/proxy/ProxyManager.js +202 -0
- package/lib/proxy/QueueProxy.d.ts +28 -0
- package/lib/proxy/QueueProxy.js +198 -0
- package/lib/proxy/ReplicatedMap.d.ts +149 -0
- package/lib/proxy/ReplicatedMap.js +17 -0
- package/lib/proxy/ReplicatedMapProxy.d.ts +34 -0
- package/lib/proxy/ReplicatedMapProxy.js +256 -0
- package/lib/proxy/Ringbuffer.d.ts +115 -0
- package/lib/proxy/Ringbuffer.js +17 -0
- package/lib/proxy/SemaphoreProxy.d.ts +15 -0
- package/lib/proxy/SemaphoreProxy.js +73 -0
- package/lib/proxy/SetProxy.d.ts +22 -0
- package/lib/proxy/SetProxy.js +130 -0
- package/lib/proxy/flakeid/AutoBatcher.d.ts +30 -0
- package/lib/proxy/flakeid/AutoBatcher.js +104 -0
- package/lib/proxy/ringbuffer/LazyReadResultSet.d.ts +16 -0
- package/lib/proxy/ringbuffer/LazyReadResultSet.js +54 -0
- package/lib/proxy/ringbuffer/ReadResultSet.d.ts +41 -0
- package/lib/proxy/ringbuffer/ReadResultSet.js +17 -0
- package/lib/proxy/ringbuffer/RingbufferProxy.d.ts +19 -0
- package/lib/proxy/ringbuffer/RingbufferProxy.js +98 -0
- package/lib/proxy/topic/ITopic.d.ts +9 -0
- package/lib/proxy/topic/ITopic.js +17 -0
- package/lib/proxy/topic/Message.d.ts +8 -0
- package/lib/proxy/topic/Message.js +23 -0
- package/lib/proxy/topic/MessageListener.d.ts +2 -0
- package/lib/proxy/topic/MessageListener.js +2 -0
- package/lib/proxy/topic/ReliableTopicListenerRunner.d.ts +20 -0
- package/lib/proxy/topic/ReliableTopicListenerRunner.js +73 -0
- package/lib/proxy/topic/ReliableTopicMessage.d.ts +19 -0
- package/lib/proxy/topic/ReliableTopicMessage.js +53 -0
- package/lib/proxy/topic/ReliableTopicProxy.d.ts +31 -0
- package/lib/proxy/topic/ReliableTopicProxy.js +151 -0
- package/lib/proxy/topic/TopicOverloadPolicy.d.ts +23 -0
- package/lib/proxy/topic/TopicOverloadPolicy.js +41 -0
- package/lib/serialization/Data.d.ts +114 -0
- package/lib/serialization/Data.js +17 -0
- package/lib/serialization/DefaultPredicates.d.ts +131 -0
- package/lib/serialization/DefaultPredicates.js +465 -0
- package/lib/serialization/DefaultSerializer.d.ts +134 -0
- package/lib/serialization/DefaultSerializer.js +442 -0
- package/lib/serialization/HeapData.d.ts +44 -0
- package/lib/serialization/HeapData.js +104 -0
- package/lib/serialization/ObjectData.d.ts +102 -0
- package/lib/serialization/ObjectData.js +566 -0
- package/lib/serialization/PredicateFactory.d.ts +15 -0
- package/lib/serialization/PredicateFactory.js +46 -0
- package/lib/serialization/Serializable.d.ts +23 -0
- package/lib/serialization/Serializable.js +17 -0
- package/lib/serialization/SerializationService.d.ts +60 -0
- package/lib/serialization/SerializationService.js +312 -0
- package/lib/serialization/SerializationUtil.d.ts +3 -0
- package/lib/serialization/SerializationUtil.js +31 -0
- package/lib/serialization/portable/ClassDefinition.d.ts +54 -0
- package/lib/serialization/portable/ClassDefinition.js +140 -0
- package/lib/serialization/portable/ClassDefinitionBuilder.d.ts +35 -0
- package/lib/serialization/portable/ClassDefinitionBuilder.js +126 -0
- package/lib/serialization/portable/ClassDefinitionContext.d.ts +9 -0
- package/lib/serialization/portable/ClassDefinitionContext.js +51 -0
- package/lib/serialization/portable/ClassDefinitionWriter.d.ts +35 -0
- package/lib/serialization/portable/ClassDefinitionWriter.js +123 -0
- package/lib/serialization/portable/DefaultPortableReader.d.ts +43 -0
- package/lib/serialization/portable/DefaultPortableReader.js +188 -0
- package/lib/serialization/portable/DefaultPortableWriter.d.ts +37 -0
- package/lib/serialization/portable/DefaultPortableWriter.js +156 -0
- package/lib/serialization/portable/MorphingPortableReader.d.ts +31 -0
- package/lib/serialization/portable/MorphingPortableReader.js +189 -0
- package/lib/serialization/portable/PortableContext.d.ts +16 -0
- package/lib/serialization/portable/PortableContext.js +126 -0
- package/lib/serialization/portable/PortableSerializer.d.ts +68 -0
- package/lib/serialization/portable/PortableSerializer.js +94 -0
- package/lib/statistics/Statistics.d.ts +50 -0
- package/lib/statistics/Statistics.js +232 -0
- package/lib/util/ArrayComparator.d.ts +1 -0
- package/lib/util/ArrayComparator.js +17 -0
- package/lib/util/UuidUtil.d.ts +4 -0
- package/lib/util/UuidUtil.js +35 -0
- package/lib.es6.d.ts +18650 -0
- package/package.json +55 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,117 @@
|
|
|
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 assert = require("assert");
|
|
19
|
+
var Long = require("long");
|
|
20
|
+
var MetadataFetcher_1 = require("./MetadataFetcher");
|
|
21
|
+
var RepairingHandler_1 = require("./RepairingHandler");
|
|
22
|
+
var Promise = require("bluebird");
|
|
23
|
+
var PROPERTY_MAX_RECONCILIATION_INTERVAL_SECONDS = 'hazelcast.invalidation.reconciliation.interval.seconds';
|
|
24
|
+
var PROPERTY_MIN_RECONCILIATION_INTERVAL_SECONDS = 'hazelcast.invalidation.min.reconciliation.interval.seconds';
|
|
25
|
+
var PROPERTY_MAX_TOLERATED_MISS_COUNT = 'hazelcast.invalidation.max.tolerated.miss.count';
|
|
26
|
+
var RepairingTask = /** @class */ (function () {
|
|
27
|
+
function RepairingTask(client) {
|
|
28
|
+
this.client = client;
|
|
29
|
+
this.logger = this.client.getLoggingService().getLogger();
|
|
30
|
+
var config = this.client.getConfig();
|
|
31
|
+
this.minAllowedReconciliationSeconds = config.properties[PROPERTY_MIN_RECONCILIATION_INTERVAL_SECONDS];
|
|
32
|
+
var requestedReconciliationSeconds = config.properties[PROPERTY_MAX_RECONCILIATION_INTERVAL_SECONDS];
|
|
33
|
+
this.reconcilliationInterval = this.getReconciliationIntervalMillis(requestedReconciliationSeconds);
|
|
34
|
+
this.handlers = new Map();
|
|
35
|
+
this.localUuid = this.client.getLocalEndpoint().uuid;
|
|
36
|
+
this.maxToleratedMissCount = config.properties[PROPERTY_MAX_TOLERATED_MISS_COUNT];
|
|
37
|
+
this.metadataFetcher = new MetadataFetcher_1.MetadataFetcher(client);
|
|
38
|
+
this.partitionCount = this.client.getPartitionService().getPartitionCount();
|
|
39
|
+
}
|
|
40
|
+
RepairingTask.prototype.registerAndGetHandler = function (objectName, nearCache) {
|
|
41
|
+
var _this = this;
|
|
42
|
+
var handler = this.handlers.get(objectName);
|
|
43
|
+
if (handler !== undefined) {
|
|
44
|
+
return Promise.resolve(handler);
|
|
45
|
+
}
|
|
46
|
+
handler = new RepairingHandler_1.RepairingHandler(objectName, this.client.getPartitionService(), nearCache, this.localUuid);
|
|
47
|
+
return this.metadataFetcher.initHandler(handler).then(function () {
|
|
48
|
+
_this.handlers.set(objectName, handler);
|
|
49
|
+
if (_this.antientropyTaskHandle === undefined) {
|
|
50
|
+
_this.start();
|
|
51
|
+
}
|
|
52
|
+
return handler;
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
RepairingTask.prototype.deregisterHandler = function (objectName) {
|
|
56
|
+
this.handlers.delete(objectName);
|
|
57
|
+
};
|
|
58
|
+
RepairingTask.prototype.start = function () {
|
|
59
|
+
assert(this.reconcilliationInterval > 0);
|
|
60
|
+
this.antientropyTaskHandle = setInterval(this.antiEntropyTask.bind(this), this.reconcilliationInterval);
|
|
61
|
+
};
|
|
62
|
+
RepairingTask.prototype.shutdown = function () {
|
|
63
|
+
if (this.antientropyTaskHandle != null) {
|
|
64
|
+
clearInterval(this.antientropyTaskHandle);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
RepairingTask.prototype.antiEntropyTask = function () {
|
|
68
|
+
var _this = this;
|
|
69
|
+
if (this.client.getLifecycleService().isRunning()) {
|
|
70
|
+
this.handlers.forEach(function (handler) {
|
|
71
|
+
if (_this.isAboveMaxToleratedMissCount(handler)) {
|
|
72
|
+
_this.updateLastKnownStaleSequences(handler);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
this.metadataFetcher.fetchMetadata(this.handlers);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.shutdown();
|
|
79
|
+
this.logger.debug('RepairingTask', 'Anti entropy task was on although client was not running.' +
|
|
80
|
+
'Anti entropy task was shutdown forcibly.');
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
RepairingTask.prototype.isAboveMaxToleratedMissCount = function (handler) {
|
|
84
|
+
var totalMissCount = Long.fromNumber(0);
|
|
85
|
+
for (var i = 0; i < this.partitionCount; i++) {
|
|
86
|
+
var added = handler.getMetadataContainer(i).getMissedSequenceCount();
|
|
87
|
+
totalMissCount = totalMissCount.add(added);
|
|
88
|
+
if (totalMissCount.greaterThanOrEqual(this.maxToleratedMissCount)) {
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return false;
|
|
93
|
+
};
|
|
94
|
+
RepairingTask.prototype.updateLastKnownStaleSequences = function (handler) {
|
|
95
|
+
for (var i = 0; i < this.partitionCount; i++) {
|
|
96
|
+
var container = handler.getMetadataContainer(i);
|
|
97
|
+
var missedCount = container.getMissedSequenceCount();
|
|
98
|
+
if (missedCount.notEquals(0)) {
|
|
99
|
+
container.increaseMissedSequenceCount(missedCount.negate());
|
|
100
|
+
handler.updateLastKnownStaleSequence(container);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
RepairingTask.prototype.getReconciliationIntervalMillis = function (seconds) {
|
|
105
|
+
if (seconds === 0 || seconds >= this.minAllowedReconciliationSeconds) {
|
|
106
|
+
return seconds * 1000;
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
var message = 'Reconciliation interval can be at least ' + this.minAllowedReconciliationSeconds + ' seconds ' +
|
|
110
|
+
'if not 0. Configured interval is ' + seconds + ' seconds. ' +
|
|
111
|
+
'Note: configuring a value of 0 seconds disables the reconciliation task.';
|
|
112
|
+
throw new RangeError(message);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
return RepairingTask;
|
|
116
|
+
}());
|
|
117
|
+
exports.RepairingTask = RepairingTask;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataRecord } from './DataRecord';
|
|
2
|
+
import { MetadataContainer } from './MetadataContainer';
|
|
3
|
+
export interface StaleReadDetector {
|
|
4
|
+
isStaleRead(key: any, record: DataRecord): boolean;
|
|
5
|
+
getPartitionId(key: any): number;
|
|
6
|
+
getMetadataContainer(partitionId: number): MetadataContainer;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PartitionService } from '../PartitionService';
|
|
2
|
+
import { DataRecord } from './DataRecord';
|
|
3
|
+
import { MetadataContainer } from './MetadataContainer';
|
|
4
|
+
import { RepairingHandler } from './RepairingHandler';
|
|
5
|
+
import { StaleReadDetector } from './StaleReadDetector';
|
|
6
|
+
export declare class StaleReadDetectorImpl implements StaleReadDetector {
|
|
7
|
+
private readonly repairingHandler;
|
|
8
|
+
private readonly partitionService;
|
|
9
|
+
constructor(handler: RepairingHandler, partitionService: PartitionService);
|
|
10
|
+
isStaleRead(key: any, record: DataRecord): boolean;
|
|
11
|
+
getMetadataContainer(partitionId: number): MetadataContainer;
|
|
12
|
+
getPartitionId(key: any): number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 StaleReadDetectorImpl = /** @class */ (function () {
|
|
19
|
+
function StaleReadDetectorImpl(handler, partitionService) {
|
|
20
|
+
this.repairingHandler = handler;
|
|
21
|
+
this.partitionService = partitionService;
|
|
22
|
+
}
|
|
23
|
+
StaleReadDetectorImpl.prototype.isStaleRead = function (key, record) {
|
|
24
|
+
try {
|
|
25
|
+
var metadata = this.getMetadataContainer(this.getPartitionId(record.key));
|
|
26
|
+
// Add null checks to prevent errors during failover
|
|
27
|
+
if (!metadata || !metadata.getUuid()) {
|
|
28
|
+
// If metadata is not available, consider the read as potentially stale
|
|
29
|
+
// This can happen during failover when partition information is being updated
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
return !record.hasSameUuid(metadata.getUuid()) || record.getInvalidationSequence().lessThan(metadata.getStaleSequence());
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
// During failover, partition service might not be fully initialized
|
|
36
|
+
// Consider the read as stale to be safe
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
StaleReadDetectorImpl.prototype.getMetadataContainer = function (partitionId) {
|
|
41
|
+
try {
|
|
42
|
+
return this.repairingHandler.getMetadataContainer(partitionId);
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
// Return null if metadata container is not available
|
|
46
|
+
// This can happen during failover scenarios
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
StaleReadDetectorImpl.prototype.getPartitionId = function (key) {
|
|
51
|
+
try {
|
|
52
|
+
return this.partitionService.getPartitionId(key);
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
// Return -1 if partition service is not available
|
|
56
|
+
// This can happen during failover scenarios
|
|
57
|
+
return -1;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
return StaleReadDetectorImpl;
|
|
61
|
+
}());
|
|
62
|
+
exports.StaleReadDetectorImpl = StaleReadDetectorImpl;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare class ClientProtocolErrorCodes {
|
|
2
|
+
static readonly UNDEFINED: number;
|
|
3
|
+
static readonly ARRAY_INDEX_OUT_OF_BOUNDS: number;
|
|
4
|
+
static readonly ARRAY_STORE: number;
|
|
5
|
+
static readonly AUTHENTICATION: number;
|
|
6
|
+
static readonly CACHE: number;
|
|
7
|
+
static readonly CACHE_LOADER: number;
|
|
8
|
+
static readonly CACHE_NOT_EXISTS: number;
|
|
9
|
+
static readonly CACHE_WRITER: number;
|
|
10
|
+
static readonly CALLER_NOT_MEMBER: number;
|
|
11
|
+
static readonly CANCELLATION: number;
|
|
12
|
+
static readonly CLASS_CAST: number;
|
|
13
|
+
static readonly CLASS_NOT_FOUND: number;
|
|
14
|
+
static readonly CONCURRENT_MODIFICATION: number;
|
|
15
|
+
static readonly CONFIG_MISMATCH: number;
|
|
16
|
+
static readonly CONFIGURATION: number;
|
|
17
|
+
static readonly DISTRIBUTED_OBJECT_DESTROYED: number;
|
|
18
|
+
static readonly DUPLICATE_INSTANCE_NAME: number;
|
|
19
|
+
static readonly EOF: number;
|
|
20
|
+
static readonly ENTRY_PROCESSOR: number;
|
|
21
|
+
static readonly EXECUTION: number;
|
|
22
|
+
static readonly HAZELCAST: number;
|
|
23
|
+
static readonly HAZELCAST_INSTANCE_NOT_ACTIVE: number;
|
|
24
|
+
static readonly HAZELCAST_OVERLOAD: number;
|
|
25
|
+
static readonly HAZELCAST_SERIALIZATION: number;
|
|
26
|
+
static readonly IO: number;
|
|
27
|
+
static readonly ILLEGAL_ARGUMENT: number;
|
|
28
|
+
static readonly ILLEGAL_ACCESS_EXCEPTION: number;
|
|
29
|
+
static readonly ILLEGAL_ACCESS_ERROR: number;
|
|
30
|
+
static readonly ILLEGAL_MONITOR_STATE: number;
|
|
31
|
+
static readonly ILLEGAL_STATE: number;
|
|
32
|
+
static readonly ILLEGAL_THREAD_STATE: number;
|
|
33
|
+
static readonly INDEX_OUT_OF_BOUNDS: number;
|
|
34
|
+
static readonly INTERRUPTED: number;
|
|
35
|
+
static readonly INVALID_ADDRESS: number;
|
|
36
|
+
static readonly INVALID_CONFIGURATION: number;
|
|
37
|
+
static readonly MEMBER_LEFT: number;
|
|
38
|
+
static readonly NEGATIVE_ARRAY_SIZE: number;
|
|
39
|
+
static readonly NO_SUCH_ELEMENT: number;
|
|
40
|
+
static readonly NOT_SERIALIZABLE: number;
|
|
41
|
+
static readonly NULL_POINTER: number;
|
|
42
|
+
static readonly OPERATION_TIMEOUT: number;
|
|
43
|
+
static readonly PARTITION_MIGRATING: number;
|
|
44
|
+
static readonly QUERY: number;
|
|
45
|
+
static readonly QUERY_RESULT_SIZE_EXCEEDED: number;
|
|
46
|
+
static readonly QUORUM: number;
|
|
47
|
+
static readonly REACHED_MAX_SIZE: number;
|
|
48
|
+
static readonly REJECTED_EXECUTION: number;
|
|
49
|
+
static readonly REMOTE_MAP_REDUCE: number;
|
|
50
|
+
static readonly RESPONSE_ALREADY_SENT: number;
|
|
51
|
+
static readonly RETRYABLE_HAZELCAST: number;
|
|
52
|
+
static readonly RETRYABLE_IO: number;
|
|
53
|
+
static readonly RUNTIME: number;
|
|
54
|
+
static readonly SECURITY: number;
|
|
55
|
+
static readonly SOCKET: number;
|
|
56
|
+
static readonly STALE_SEQUENCE: number;
|
|
57
|
+
static readonly TARGET_DISCONNECTED: number;
|
|
58
|
+
static readonly TARGET_NOT_MEMBER: number;
|
|
59
|
+
static readonly TIMEOUT: number;
|
|
60
|
+
static readonly TOPIC_OVERLOAD: number;
|
|
61
|
+
static readonly TOPOLOGY_CHANGED: number;
|
|
62
|
+
static readonly TRANSACTION: number;
|
|
63
|
+
static readonly TRANSACTION_NOT_ACTIVE: number;
|
|
64
|
+
static readonly TRANSACTION_TIMED_OUT: number;
|
|
65
|
+
static readonly URI_SYNTAX: number;
|
|
66
|
+
static readonly UTF_DATA_FORMAT: number;
|
|
67
|
+
static readonly UNSUPPORTED_OPERATION: number;
|
|
68
|
+
static readonly WRONG_TARGET: number;
|
|
69
|
+
static readonly XA: number;
|
|
70
|
+
static readonly ACCESS_CONTROL: number;
|
|
71
|
+
static readonly LOGIN: number;
|
|
72
|
+
static readonly UNSUPPORTED_CALLBACK: number;
|
|
73
|
+
static readonly NO_DATA_MEMBER: number;
|
|
74
|
+
static readonly REPLICATED_MAP_CANT_BE_CREATED: number;
|
|
75
|
+
static readonly MAX_MESSAGE_SIZE_EXCEEDED: number;
|
|
76
|
+
static readonly WAN_REPLICATION_QUEUE_FULL: number;
|
|
77
|
+
static readonly ASSERTION_ERROR: number;
|
|
78
|
+
static readonly OUT_OF_MEMORY_ERROR: number;
|
|
79
|
+
static readonly STACK_OVERFLOW_ERROR: number;
|
|
80
|
+
static readonly NATIVE_OUT_OF_MEMORY_ERROR: number;
|
|
81
|
+
static readonly SERVICE_NOT_FOUND: number;
|
|
82
|
+
static readonly STALE_TASK_ID: number;
|
|
83
|
+
static readonly DUPLICATE_TASK: number;
|
|
84
|
+
static readonly STALE_TASK: number;
|
|
85
|
+
static readonly LOCAL_MEMBER_RESET: number;
|
|
86
|
+
static readonly INDETERMINATE_OPERATION_STATE: number;
|
|
87
|
+
static readonly FLAKE_ID_NODE_ID_OUT_OF_RANGE_EXCEPTION: number;
|
|
88
|
+
static readonly TARGET_NOT_REPLICA_EXCEPTION: number;
|
|
89
|
+
static readonly MUTATION_DISALLOWED_EXCEPTION: number;
|
|
90
|
+
static readonly CONSISTENCY_LOST_EXCEPTION: number;
|
|
91
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 ClientProtocolErrorCodes = /** @class */ (function () {
|
|
19
|
+
function ClientProtocolErrorCodes() {
|
|
20
|
+
}
|
|
21
|
+
ClientProtocolErrorCodes.UNDEFINED = 0;
|
|
22
|
+
ClientProtocolErrorCodes.ARRAY_INDEX_OUT_OF_BOUNDS = 1;
|
|
23
|
+
ClientProtocolErrorCodes.ARRAY_STORE = 2;
|
|
24
|
+
ClientProtocolErrorCodes.AUTHENTICATION = 3;
|
|
25
|
+
ClientProtocolErrorCodes.CACHE = 4;
|
|
26
|
+
ClientProtocolErrorCodes.CACHE_LOADER = 5;
|
|
27
|
+
ClientProtocolErrorCodes.CACHE_NOT_EXISTS = 6;
|
|
28
|
+
ClientProtocolErrorCodes.CACHE_WRITER = 7;
|
|
29
|
+
ClientProtocolErrorCodes.CALLER_NOT_MEMBER = 8;
|
|
30
|
+
ClientProtocolErrorCodes.CANCELLATION = 9;
|
|
31
|
+
ClientProtocolErrorCodes.CLASS_CAST = 10;
|
|
32
|
+
ClientProtocolErrorCodes.CLASS_NOT_FOUND = 11;
|
|
33
|
+
ClientProtocolErrorCodes.CONCURRENT_MODIFICATION = 12;
|
|
34
|
+
ClientProtocolErrorCodes.CONFIG_MISMATCH = 13;
|
|
35
|
+
ClientProtocolErrorCodes.CONFIGURATION = 14;
|
|
36
|
+
ClientProtocolErrorCodes.DISTRIBUTED_OBJECT_DESTROYED = 15;
|
|
37
|
+
ClientProtocolErrorCodes.DUPLICATE_INSTANCE_NAME = 16;
|
|
38
|
+
ClientProtocolErrorCodes.EOF = 17;
|
|
39
|
+
ClientProtocolErrorCodes.ENTRY_PROCESSOR = 18;
|
|
40
|
+
ClientProtocolErrorCodes.EXECUTION = 19;
|
|
41
|
+
ClientProtocolErrorCodes.HAZELCAST = 20;
|
|
42
|
+
ClientProtocolErrorCodes.HAZELCAST_INSTANCE_NOT_ACTIVE = 21;
|
|
43
|
+
ClientProtocolErrorCodes.HAZELCAST_OVERLOAD = 22;
|
|
44
|
+
ClientProtocolErrorCodes.HAZELCAST_SERIALIZATION = 23;
|
|
45
|
+
ClientProtocolErrorCodes.IO = 24;
|
|
46
|
+
ClientProtocolErrorCodes.ILLEGAL_ARGUMENT = 25;
|
|
47
|
+
ClientProtocolErrorCodes.ILLEGAL_ACCESS_EXCEPTION = 26;
|
|
48
|
+
ClientProtocolErrorCodes.ILLEGAL_ACCESS_ERROR = 27;
|
|
49
|
+
ClientProtocolErrorCodes.ILLEGAL_MONITOR_STATE = 28;
|
|
50
|
+
ClientProtocolErrorCodes.ILLEGAL_STATE = 29;
|
|
51
|
+
ClientProtocolErrorCodes.ILLEGAL_THREAD_STATE = 30;
|
|
52
|
+
ClientProtocolErrorCodes.INDEX_OUT_OF_BOUNDS = 31;
|
|
53
|
+
ClientProtocolErrorCodes.INTERRUPTED = 32;
|
|
54
|
+
ClientProtocolErrorCodes.INVALID_ADDRESS = 33;
|
|
55
|
+
ClientProtocolErrorCodes.INVALID_CONFIGURATION = 34;
|
|
56
|
+
ClientProtocolErrorCodes.MEMBER_LEFT = 35;
|
|
57
|
+
ClientProtocolErrorCodes.NEGATIVE_ARRAY_SIZE = 36;
|
|
58
|
+
ClientProtocolErrorCodes.NO_SUCH_ELEMENT = 37;
|
|
59
|
+
ClientProtocolErrorCodes.NOT_SERIALIZABLE = 38;
|
|
60
|
+
ClientProtocolErrorCodes.NULL_POINTER = 39;
|
|
61
|
+
ClientProtocolErrorCodes.OPERATION_TIMEOUT = 40;
|
|
62
|
+
ClientProtocolErrorCodes.PARTITION_MIGRATING = 41;
|
|
63
|
+
ClientProtocolErrorCodes.QUERY = 42;
|
|
64
|
+
ClientProtocolErrorCodes.QUERY_RESULT_SIZE_EXCEEDED = 43;
|
|
65
|
+
ClientProtocolErrorCodes.QUORUM = 44;
|
|
66
|
+
ClientProtocolErrorCodes.REACHED_MAX_SIZE = 45;
|
|
67
|
+
ClientProtocolErrorCodes.REJECTED_EXECUTION = 46;
|
|
68
|
+
ClientProtocolErrorCodes.REMOTE_MAP_REDUCE = 47;
|
|
69
|
+
ClientProtocolErrorCodes.RESPONSE_ALREADY_SENT = 48;
|
|
70
|
+
ClientProtocolErrorCodes.RETRYABLE_HAZELCAST = 49;
|
|
71
|
+
ClientProtocolErrorCodes.RETRYABLE_IO = 50;
|
|
72
|
+
ClientProtocolErrorCodes.RUNTIME = 51;
|
|
73
|
+
ClientProtocolErrorCodes.SECURITY = 52;
|
|
74
|
+
ClientProtocolErrorCodes.SOCKET = 53;
|
|
75
|
+
ClientProtocolErrorCodes.STALE_SEQUENCE = 54;
|
|
76
|
+
ClientProtocolErrorCodes.TARGET_DISCONNECTED = 55;
|
|
77
|
+
ClientProtocolErrorCodes.TARGET_NOT_MEMBER = 56;
|
|
78
|
+
ClientProtocolErrorCodes.TIMEOUT = 57;
|
|
79
|
+
ClientProtocolErrorCodes.TOPIC_OVERLOAD = 58;
|
|
80
|
+
ClientProtocolErrorCodes.TOPOLOGY_CHANGED = 59;
|
|
81
|
+
ClientProtocolErrorCodes.TRANSACTION = 60;
|
|
82
|
+
ClientProtocolErrorCodes.TRANSACTION_NOT_ACTIVE = 61;
|
|
83
|
+
ClientProtocolErrorCodes.TRANSACTION_TIMED_OUT = 62;
|
|
84
|
+
ClientProtocolErrorCodes.URI_SYNTAX = 63;
|
|
85
|
+
ClientProtocolErrorCodes.UTF_DATA_FORMAT = 64;
|
|
86
|
+
ClientProtocolErrorCodes.UNSUPPORTED_OPERATION = 65;
|
|
87
|
+
ClientProtocolErrorCodes.WRONG_TARGET = 66;
|
|
88
|
+
ClientProtocolErrorCodes.XA = 67;
|
|
89
|
+
ClientProtocolErrorCodes.ACCESS_CONTROL = 68;
|
|
90
|
+
ClientProtocolErrorCodes.LOGIN = 69;
|
|
91
|
+
ClientProtocolErrorCodes.UNSUPPORTED_CALLBACK = 70;
|
|
92
|
+
ClientProtocolErrorCodes.NO_DATA_MEMBER = 71;
|
|
93
|
+
ClientProtocolErrorCodes.REPLICATED_MAP_CANT_BE_CREATED = 72;
|
|
94
|
+
ClientProtocolErrorCodes.MAX_MESSAGE_SIZE_EXCEEDED = 73;
|
|
95
|
+
ClientProtocolErrorCodes.WAN_REPLICATION_QUEUE_FULL = 74;
|
|
96
|
+
ClientProtocolErrorCodes.ASSERTION_ERROR = 75;
|
|
97
|
+
ClientProtocolErrorCodes.OUT_OF_MEMORY_ERROR = 76;
|
|
98
|
+
ClientProtocolErrorCodes.STACK_OVERFLOW_ERROR = 77;
|
|
99
|
+
ClientProtocolErrorCodes.NATIVE_OUT_OF_MEMORY_ERROR = 78;
|
|
100
|
+
ClientProtocolErrorCodes.SERVICE_NOT_FOUND = 79;
|
|
101
|
+
ClientProtocolErrorCodes.STALE_TASK_ID = 80;
|
|
102
|
+
ClientProtocolErrorCodes.DUPLICATE_TASK = 81;
|
|
103
|
+
ClientProtocolErrorCodes.STALE_TASK = 82;
|
|
104
|
+
ClientProtocolErrorCodes.LOCAL_MEMBER_RESET = 83;
|
|
105
|
+
ClientProtocolErrorCodes.INDETERMINATE_OPERATION_STATE = 84;
|
|
106
|
+
ClientProtocolErrorCodes.FLAKE_ID_NODE_ID_OUT_OF_RANGE_EXCEPTION = 85;
|
|
107
|
+
ClientProtocolErrorCodes.TARGET_NOT_REPLICA_EXCEPTION = 86;
|
|
108
|
+
ClientProtocolErrorCodes.MUTATION_DISALLOWED_EXCEPTION = 87;
|
|
109
|
+
ClientProtocolErrorCodes.CONSISTENCY_LOST_EXCEPTION = 88;
|
|
110
|
+
return ClientProtocolErrorCodes;
|
|
111
|
+
}());
|
|
112
|
+
exports.ClientProtocolErrorCodes = ClientProtocolErrorCodes;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ClientMessage = require('../ClientMessage');
|
|
2
|
+
import { StackTraceElementCodec } from './StackTraceElementCodec';
|
|
3
|
+
export declare class ErrorCodec {
|
|
4
|
+
errorCode: number;
|
|
5
|
+
className: string;
|
|
6
|
+
message: string;
|
|
7
|
+
stackTrace: StackTraceElementCodec[];
|
|
8
|
+
causeErrorCode: number;
|
|
9
|
+
causeClassName: string;
|
|
10
|
+
static decode(clientMessage: ClientMessage): ErrorCodec;
|
|
11
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 StackTraceElementCodec_1 = require("./StackTraceElementCodec");
|
|
19
|
+
var ErrorCodec = /** @class */ (function () {
|
|
20
|
+
function ErrorCodec() {
|
|
21
|
+
this.errorCode = null;
|
|
22
|
+
this.className = null;
|
|
23
|
+
this.message = null;
|
|
24
|
+
this.stackTrace = [];
|
|
25
|
+
this.causeErrorCode = null;
|
|
26
|
+
this.causeClassName = null;
|
|
27
|
+
}
|
|
28
|
+
ErrorCodec.decode = function (clientMessage) {
|
|
29
|
+
var exception = new ErrorCodec();
|
|
30
|
+
exception.errorCode = clientMessage.readInt32();
|
|
31
|
+
exception.className = clientMessage.readString();
|
|
32
|
+
var isMessageNull = clientMessage.readBoolean();
|
|
33
|
+
if (!isMessageNull) {
|
|
34
|
+
exception.message = clientMessage.readString();
|
|
35
|
+
}
|
|
36
|
+
var stackTraceDepth = clientMessage.readInt32();
|
|
37
|
+
exception.stackTrace = [];
|
|
38
|
+
for (var i = 0; i < stackTraceDepth; i++) {
|
|
39
|
+
exception.stackTrace.push(StackTraceElementCodec_1.StackTraceElementCodec.decode(clientMessage));
|
|
40
|
+
}
|
|
41
|
+
exception.causeErrorCode = clientMessage.readInt32();
|
|
42
|
+
var causeClassNameNull = clientMessage.readBoolean();
|
|
43
|
+
if (!causeClassNameNull) {
|
|
44
|
+
exception.causeClassName = clientMessage.readString();
|
|
45
|
+
}
|
|
46
|
+
return exception;
|
|
47
|
+
};
|
|
48
|
+
return ErrorCodec;
|
|
49
|
+
}());
|
|
50
|
+
exports.ErrorCodec = ErrorCodec;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ClientMessage = require('../ClientMessage');
|
|
2
|
+
export declare class ClientErrorFactory {
|
|
3
|
+
private codeToErrorConstructor;
|
|
4
|
+
constructor();
|
|
5
|
+
createErrorFromClientMessage(clientMessage: ClientMessage): Error;
|
|
6
|
+
createError(errorCode: number, className: string, message: string, cause: Error): Error;
|
|
7
|
+
private register(code, errorFactory);
|
|
8
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var HazelcastError_1 = require("../HazelcastError");
|
|
19
|
+
var ClientProtocolErrorCodes_1 = require("./ClientProtocolErrorCodes");
|
|
20
|
+
var ErrorCodec_1 = require("./ErrorCodec");
|
|
21
|
+
var ClientErrorFactory = /** @class */ (function () {
|
|
22
|
+
function ClientErrorFactory() {
|
|
23
|
+
this.codeToErrorConstructor = new Map();
|
|
24
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.ARRAY_INDEX_OUT_OF_BOUNDS, function (m, c) { return new RangeError(m); });
|
|
25
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.ARRAY_STORE, function (m, c) { return new TypeError(m); });
|
|
26
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.AUTHENTICATION, function (m, c) { return new HazelcastError_1.AuthenticationError(m, c); });
|
|
27
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.CALLER_NOT_MEMBER, function (m, c) { return new HazelcastError_1.CallerNotMemberError(m, c); });
|
|
28
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.CANCELLATION, function (m, c) { return new HazelcastError_1.CancellationError(m, c); });
|
|
29
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.CLASS_CAST, function (m, c) { return new HazelcastError_1.ClassCastError(m, c); });
|
|
30
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.CLASS_NOT_FOUND, function (m, c) { return new HazelcastError_1.ClassNotFoundError(m, c); });
|
|
31
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.CONCURRENT_MODIFICATION, function (m, c) { return new HazelcastError_1.ConcurrentModificationError(m, c); });
|
|
32
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.CONFIG_MISMATCH, function (m, c) { return new HazelcastError_1.ConfigMismatchError(m, c); });
|
|
33
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.CONFIGURATION, function (m, c) { return new HazelcastError_1.ConfigurationError(m, c); });
|
|
34
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.DISTRIBUTED_OBJECT_DESTROYED, function (m, c) { return new HazelcastError_1.DistributedObjectDestroyedError(m, c); });
|
|
35
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.DUPLICATE_INSTANCE_NAME, function (m, c) { return new HazelcastError_1.DuplicateInstanceNameError(m, c); });
|
|
36
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.EOF, function (m, c) { return new HazelcastError_1.IOError(m, c); });
|
|
37
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.HAZELCAST, function (m, c) { return new HazelcastError_1.HazelcastError(m, c); });
|
|
38
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.HAZELCAST_INSTANCE_NOT_ACTIVE, function (m, c) { return new HazelcastError_1.HazelcastInstanceNotActiveError(m, c); });
|
|
39
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.HAZELCAST_OVERLOAD, function (m, c) { return new HazelcastError_1.HazelcastError(m, c); });
|
|
40
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.HAZELCAST_SERIALIZATION, function (m, c) { return new HazelcastError_1.HazelcastSerializationError(m, c); });
|
|
41
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.IO, function (m, c) { return new HazelcastError_1.IOError(m, c); });
|
|
42
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.ILLEGAL_ARGUMENT, function (m, c) { return new TypeError(m); });
|
|
43
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.ILLEGAL_STATE, function (m, c) { return new HazelcastError_1.IllegalStateError(m, c); });
|
|
44
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.INDEX_OUT_OF_BOUNDS, function (m, c) { return new RangeError(m); });
|
|
45
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.INTERRUPTED, function (m, c) { return new Error(m); });
|
|
46
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.INVALID_ADDRESS, function (m, c) { return new TypeError(m); });
|
|
47
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.INVALID_CONFIGURATION, function (m, c) { return new TypeError(m); });
|
|
48
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.MEMBER_LEFT, function (m, c) { return new HazelcastError_1.MemberLeftError(m, c); });
|
|
49
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.NEGATIVE_ARRAY_SIZE, function (m, c) { return new RangeError(m); });
|
|
50
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.NO_SUCH_ELEMENT, function (m, c) { return new ReferenceError(m); });
|
|
51
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.NOT_SERIALIZABLE, function (m, c) { return new HazelcastError_1.IOError(m, c); });
|
|
52
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.NULL_POINTER, function (m, c) { return new ReferenceError(m); });
|
|
53
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.OPERATION_TIMEOUT, function (m, c) { return new HazelcastError_1.InvocationTimeoutError(m, c); });
|
|
54
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.PARTITION_MIGRATING, function (m, c) { return new HazelcastError_1.PartitionMigratingError(m, c); });
|
|
55
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.QUERY, function (m, c) { return new HazelcastError_1.QueryError(m, c); });
|
|
56
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.QUERY_RESULT_SIZE_EXCEEDED, function (m, c) { return new HazelcastError_1.QueryError(m, c); });
|
|
57
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.QUORUM, function (m, c) { return new HazelcastError_1.QuorumError(m, c); });
|
|
58
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.RETRYABLE_HAZELCAST, function (m, c) { return new HazelcastError_1.RetryableHazelcastError(m, c); });
|
|
59
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.RETRYABLE_IO, function (m, c) { return new HazelcastError_1.RetryableIOError(m, c); });
|
|
60
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.SOCKET, function (m, c) { return new HazelcastError_1.IOError(m, c); });
|
|
61
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.STALE_SEQUENCE, function (m, c) { return new HazelcastError_1.StaleSequenceError(m, c); });
|
|
62
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.TARGET_DISCONNECTED, function (m, c) { return new HazelcastError_1.TargetDisconnectedError(m, c); });
|
|
63
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.TARGET_NOT_MEMBER, function (m, c) { return new HazelcastError_1.TargetNotMemberError(m, c); });
|
|
64
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.TOPIC_OVERLOAD, function (m, c) { return new HazelcastError_1.TopicOverloadError(m, c); });
|
|
65
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.TRANSACTION, function (m, c) { return new HazelcastError_1.TransactionError(m, c); });
|
|
66
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.TRANSACTION_NOT_ACTIVE, function (m, c) { return new HazelcastError_1.TransactionNotActiveError(m, c); });
|
|
67
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.TRANSACTION_TIMED_OUT, function (m, c) { return new HazelcastError_1.TransactionTimedOutError(m, c); });
|
|
68
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.UNSUPPORTED_OPERATION, function (m, c) { return new HazelcastError_1.UnsupportedOperationError(m, c); });
|
|
69
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.NO_DATA_MEMBER, function (m, c) { return new HazelcastError_1.NoDataMemberInClusterError(m, c); });
|
|
70
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.STALE_TASK_ID, function (m, c) { return new HazelcastError_1.StaleTaskIdError(m, c); });
|
|
71
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.FLAKE_ID_NODE_ID_OUT_OF_RANGE_EXCEPTION, function (m, c) { return new HazelcastError_1.NodeIdOutOfRangeError(m, c); });
|
|
72
|
+
this.register(ClientProtocolErrorCodes_1.ClientProtocolErrorCodes.CONSISTENCY_LOST_EXCEPTION, function (m, c) { return new HazelcastError_1.ConsistencyLostError(m, c); });
|
|
73
|
+
}
|
|
74
|
+
ClientErrorFactory.prototype.createErrorFromClientMessage = function (clientMessage) {
|
|
75
|
+
var errorCodec = ErrorCodec_1.ErrorCodec.decode(clientMessage);
|
|
76
|
+
return this.createError(errorCodec.errorCode, errorCodec.className, errorCodec.message, null);
|
|
77
|
+
};
|
|
78
|
+
ClientErrorFactory.prototype.createError = function (errorCode, className, message, cause) {
|
|
79
|
+
var factoryFunc = this.codeToErrorConstructor.get(errorCode);
|
|
80
|
+
if (factoryFunc != null) {
|
|
81
|
+
return factoryFunc(message, cause);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return new HazelcastError_1.UndefinedErrorCodeError(message, className);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
ClientErrorFactory.prototype.register = function (code, errorFactory) {
|
|
88
|
+
this.codeToErrorConstructor.set(code, errorFactory);
|
|
89
|
+
};
|
|
90
|
+
return ClientErrorFactory;
|
|
91
|
+
}());
|
|
92
|
+
exports.ClientErrorFactory = ClientErrorFactory;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 StackTraceElementCodec = /** @class */ (function () {
|
|
19
|
+
function StackTraceElementCodec() {
|
|
20
|
+
this.declaringClass = null;
|
|
21
|
+
this.methodName = null;
|
|
22
|
+
this.fileName = null;
|
|
23
|
+
this.lineNumber = null;
|
|
24
|
+
}
|
|
25
|
+
StackTraceElementCodec.decode = function (payload) {
|
|
26
|
+
var stackTraceElement = new StackTraceElementCodec();
|
|
27
|
+
stackTraceElement.declaringClass = payload.readString();
|
|
28
|
+
stackTraceElement.methodName = payload.readString();
|
|
29
|
+
var fileNameNull = payload.readBoolean();
|
|
30
|
+
if (!fileNameNull) {
|
|
31
|
+
stackTraceElement.fileName = payload.readString();
|
|
32
|
+
}
|
|
33
|
+
stackTraceElement.lineNumber = payload.readInt32();
|
|
34
|
+
return stackTraceElement;
|
|
35
|
+
};
|
|
36
|
+
return StackTraceElementCodec;
|
|
37
|
+
}());
|
|
38
|
+
exports.StackTraceElementCodec = StackTraceElementCodec;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
/// <reference types="bluebird" />
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import * as Long from 'long';
|
|
5
|
+
import { IAtomicLong } from './IAtomicLong';
|
|
6
|
+
import { PartitionSpecificProxy } from './PartitionSpecificProxy';
|
|
7
|
+
export declare class AtomicLongProxy extends PartitionSpecificProxy implements IAtomicLong {
|
|
8
|
+
addAndGet(delta: Long | number): Promise<Long>;
|
|
9
|
+
compareAndSet(expect: Long | number, update: Long | number): Promise<boolean>;
|
|
10
|
+
decrementAndGet(): Promise<Long>;
|
|
11
|
+
get(): Promise<Long>;
|
|
12
|
+
getAndAdd(delta: Long | number): Promise<Long>;
|
|
13
|
+
getAndSet(newValue: Long | number): Promise<Long>;
|
|
14
|
+
incrementAndGet(): Promise<Long>;
|
|
15
|
+
getAndIncrement(): Promise<Long>;
|
|
16
|
+
set(newValue: Long | number): Promise<void>;
|
|
17
|
+
}
|