@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,201 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import * as Promise from 'bluebird';
|
|
3
|
+
import { ClientInfo } from './ClientInfo';
|
|
4
|
+
import { ClientConfig } from './config/Config';
|
|
5
|
+
import { DistributedObject } from './DistributedObject';
|
|
6
|
+
import { Heartbeat } from './HeartbeatService';
|
|
7
|
+
import { ClientConnectionManager } from './invocation/ClientConnectionManager';
|
|
8
|
+
import { ClusterService } from './invocation/ClusterService';
|
|
9
|
+
import { InvocationService } from './invocation/InvocationService';
|
|
10
|
+
import { LifecycleService } from './LifecycleService';
|
|
11
|
+
import { ListenerService } from './ListenerService';
|
|
12
|
+
import { LockReferenceIdGenerator } from './LockReferenceIdGenerator';
|
|
13
|
+
import { LoggingService } from './logging/LoggingService';
|
|
14
|
+
import { RepairingTask } from './nearcache/RepairingTask';
|
|
15
|
+
import { PartitionService } from './PartitionService';
|
|
16
|
+
import { ClientErrorFactory } from './protocol/ErrorFactory';
|
|
17
|
+
import { FlakeIdGenerator } from './proxy/FlakeIdGenerator';
|
|
18
|
+
import { IAtomicLong } from './proxy/IAtomicLong';
|
|
19
|
+
import { IList } from './proxy/IList';
|
|
20
|
+
import { ILock } from './proxy/ILock';
|
|
21
|
+
import { IMap } from './proxy/IMap';
|
|
22
|
+
import { IQueue } from './proxy/IQueue';
|
|
23
|
+
import { ReplicatedMap } from './proxy/ReplicatedMap';
|
|
24
|
+
import { Ringbuffer } from './proxy/Ringbuffer';
|
|
25
|
+
import { ISemaphore } from './proxy/ISemaphore';
|
|
26
|
+
import { ISet } from './proxy/ISet';
|
|
27
|
+
import { MultiMap } from './proxy/MultiMap';
|
|
28
|
+
import { PNCounter } from './proxy/PNCounter';
|
|
29
|
+
import { ProxyManager } from './proxy/ProxyManager';
|
|
30
|
+
import { ITopic } from './proxy/topic/ITopic';
|
|
31
|
+
import { SerializationService } from './serialization/SerializationService';
|
|
32
|
+
import { NearCacheManager } from './nearcache/NearCacheManager';
|
|
33
|
+
import { DistributedObjectListener } from './core/DistributedObjectListener';
|
|
34
|
+
export default class HazelcastClient {
|
|
35
|
+
private static CLIENT_ID;
|
|
36
|
+
private readonly instanceName;
|
|
37
|
+
private readonly id;
|
|
38
|
+
private readonly config;
|
|
39
|
+
private readonly loggingService;
|
|
40
|
+
private readonly serializationService;
|
|
41
|
+
private readonly invocationService;
|
|
42
|
+
private readonly listenerService;
|
|
43
|
+
private readonly connectionManager;
|
|
44
|
+
private readonly partitionService;
|
|
45
|
+
private readonly clusterService;
|
|
46
|
+
private readonly lifecycleService;
|
|
47
|
+
private readonly proxyManager;
|
|
48
|
+
private readonly nearCacheManager;
|
|
49
|
+
private readonly heartbeat;
|
|
50
|
+
private readonly lockReferenceIdGenerator;
|
|
51
|
+
private readonly errorFactory;
|
|
52
|
+
private readonly statistics;
|
|
53
|
+
private mapRepairingTask;
|
|
54
|
+
constructor(config?: ClientConfig);
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new client object and automatically connects to cluster.
|
|
57
|
+
* @param config Default {@link ClientConfig} is used when this parameter is absent.
|
|
58
|
+
* @returns a new client instance
|
|
59
|
+
*/
|
|
60
|
+
static newHazelcastClient(config?: ClientConfig): Promise<HazelcastClient>;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the name of this Hazelcast instance.
|
|
63
|
+
*
|
|
64
|
+
* @return name of this Hazelcast instance
|
|
65
|
+
*/
|
|
66
|
+
getName(): string;
|
|
67
|
+
/**
|
|
68
|
+
* Gathers information of this local client.
|
|
69
|
+
* @returns {ClientInfo}
|
|
70
|
+
*/
|
|
71
|
+
getLocalEndpoint(): ClientInfo;
|
|
72
|
+
/**
|
|
73
|
+
* Gives all known distributed objects in cluster.
|
|
74
|
+
* @returns {Promise<DistributedObject[]>|Promise<T>}
|
|
75
|
+
*/
|
|
76
|
+
getDistributedObjects(): Promise<DistributedObject[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the distributed map instance with given name.
|
|
79
|
+
* @param name
|
|
80
|
+
* @returns {Promise<IMap<K, V>>}
|
|
81
|
+
*/
|
|
82
|
+
getMap<K, V>(name: string): Promise<IMap<K, V>>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns the distributed set instance with given name.
|
|
85
|
+
* @param name
|
|
86
|
+
* @returns {Promise<ISet<E>>}
|
|
87
|
+
*/
|
|
88
|
+
getSet<E>(name: string): Promise<ISet<E>>;
|
|
89
|
+
/**
|
|
90
|
+
* Returns the distributed lock instance with given name.
|
|
91
|
+
* @param name
|
|
92
|
+
* @returns {Promise<ILock>}
|
|
93
|
+
*/
|
|
94
|
+
getLock(name: string): Promise<ILock>;
|
|
95
|
+
/**
|
|
96
|
+
* Returns the distributed queue instance with given name.
|
|
97
|
+
* @param name
|
|
98
|
+
* @returns {Promise<IQueue<E>>}
|
|
99
|
+
*/
|
|
100
|
+
getQueue<E>(name: string): Promise<IQueue<E>>;
|
|
101
|
+
/**
|
|
102
|
+
* Returns the distributed list instance with given name.
|
|
103
|
+
* @param name
|
|
104
|
+
* @returns {Promise<IList<E>>}
|
|
105
|
+
*/
|
|
106
|
+
getList<E>(name: string): Promise<IList<E>>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns the distributed multi-map instance with given name.
|
|
109
|
+
* @param name
|
|
110
|
+
* @returns {Promise<MultiMap<K, V>>}
|
|
111
|
+
*/
|
|
112
|
+
getMultiMap<K, V>(name: string): Promise<MultiMap<K, V>>;
|
|
113
|
+
/**
|
|
114
|
+
* Returns a distributed ringbuffer instance with the given name.
|
|
115
|
+
* @param name
|
|
116
|
+
* @returns {Promise<Ringbuffer<E>>}
|
|
117
|
+
*/
|
|
118
|
+
getRingbuffer<E>(name: string): Promise<Ringbuffer<E>>;
|
|
119
|
+
/**
|
|
120
|
+
* Returns a distributed reliable topic instance with the given name.
|
|
121
|
+
* @param name
|
|
122
|
+
* @returns {Promise<ITopic<E>>}
|
|
123
|
+
*/
|
|
124
|
+
getReliableTopic<E>(name: string): Promise<ITopic<E>>;
|
|
125
|
+
/**
|
|
126
|
+
* Returns the distributed replicated-map instance with given name.
|
|
127
|
+
* @param name
|
|
128
|
+
* @returns {Promise<ReplicatedMap<K, V>>}
|
|
129
|
+
*/
|
|
130
|
+
getReplicatedMap<K, V>(name: string): Promise<ReplicatedMap<K, V>>;
|
|
131
|
+
/**
|
|
132
|
+
* Returns the distributed atomic long instance with given name.
|
|
133
|
+
* @param name
|
|
134
|
+
* @returns {Promise<IAtomicLong>}
|
|
135
|
+
*/
|
|
136
|
+
getAtomicLong(name: string): Promise<IAtomicLong>;
|
|
137
|
+
/**
|
|
138
|
+
* Returns the distributed flake ID generator instance with given name.
|
|
139
|
+
* @param name
|
|
140
|
+
* @returns {Promise<FlakeIdGenerator>}
|
|
141
|
+
*/
|
|
142
|
+
getFlakeIdGenerator(name: string): Promise<FlakeIdGenerator>;
|
|
143
|
+
/**
|
|
144
|
+
* Returns the distributed PN Counter instance with given name.
|
|
145
|
+
* @param name
|
|
146
|
+
* @returns {Promise<PNCounter>}
|
|
147
|
+
*/
|
|
148
|
+
getPNCounter(name: string): Promise<PNCounter>;
|
|
149
|
+
/**
|
|
150
|
+
* Returns the distributed semaphore instance with given name.
|
|
151
|
+
* @param name
|
|
152
|
+
* @returns {Promise<ISemaphore>}
|
|
153
|
+
*/
|
|
154
|
+
getSemaphore(name: string): Promise<ISemaphore>;
|
|
155
|
+
/**
|
|
156
|
+
* Return configuration that this instance started with.
|
|
157
|
+
* Returned configuration object should not be modified.
|
|
158
|
+
* @returns {ClientConfig}
|
|
159
|
+
*/
|
|
160
|
+
getConfig(): ClientConfig;
|
|
161
|
+
getSerializationService(): SerializationService;
|
|
162
|
+
getInvocationService(): InvocationService;
|
|
163
|
+
getListenerService(): ListenerService;
|
|
164
|
+
getConnectionManager(): ClientConnectionManager;
|
|
165
|
+
getPartitionService(): PartitionService;
|
|
166
|
+
getProxyManager(): ProxyManager;
|
|
167
|
+
getNearCacheManager(): NearCacheManager;
|
|
168
|
+
getClusterService(): ClusterService;
|
|
169
|
+
getHeartbeat(): Heartbeat;
|
|
170
|
+
getLifecycleService(): LifecycleService;
|
|
171
|
+
getRepairingTask(): RepairingTask;
|
|
172
|
+
getLoggingService(): LoggingService;
|
|
173
|
+
/**
|
|
174
|
+
* Registers a distributed object listener to cluster.
|
|
175
|
+
* @param listenerFunc Callback function will be called with following arguments.
|
|
176
|
+
* <ul>
|
|
177
|
+
* <li>service name</li>
|
|
178
|
+
* <li>distributed object name</li>
|
|
179
|
+
* <li>name of the event that happened: either 'created' or 'destroyed'</li>
|
|
180
|
+
* </ul>
|
|
181
|
+
* @returns registration id of the listener.
|
|
182
|
+
*/
|
|
183
|
+
addDistributedObjectListener(distributedObjectListener: DistributedObjectListener): Promise<string>;
|
|
184
|
+
/**
|
|
185
|
+
* Removes a distributed object listener from cluster.
|
|
186
|
+
* @param listenerId id of the listener to be removed.
|
|
187
|
+
* @returns `true` if registration is removed, `false` otherwise.
|
|
188
|
+
*/
|
|
189
|
+
removeDistributedObjectListener(listenerId: string): Promise<boolean>;
|
|
190
|
+
getLockReferenceIdGenerator(): LockReferenceIdGenerator;
|
|
191
|
+
getErrorFactory(): ClientErrorFactory;
|
|
192
|
+
/**
|
|
193
|
+
* Shuts down this client instance.
|
|
194
|
+
*/
|
|
195
|
+
shutdown(): void;
|
|
196
|
+
private init();
|
|
197
|
+
private createAddressTranslator();
|
|
198
|
+
private createAddressProviders();
|
|
199
|
+
private initCloudAddressProvider();
|
|
200
|
+
private getConnectionTimeoutMillis();
|
|
201
|
+
}
|
|
@@ -0,0 +1,370 @@
|
|
|
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 Promise = require("bluebird");
|
|
19
|
+
var ClientGetDistributedObjectsCodec_1 = require("./codec/ClientGetDistributedObjectsCodec");
|
|
20
|
+
var Config_1 = require("./config/Config");
|
|
21
|
+
var ConfigBuilder_1 = require("./config/ConfigBuilder");
|
|
22
|
+
var HeartbeatService_1 = require("./HeartbeatService");
|
|
23
|
+
var ClientConnectionManager_1 = require("./invocation/ClientConnectionManager");
|
|
24
|
+
var ClusterService_1 = require("./invocation/ClusterService");
|
|
25
|
+
var InvocationService_1 = require("./invocation/InvocationService");
|
|
26
|
+
var LifecycleService_1 = require("./LifecycleService");
|
|
27
|
+
var ListenerService_1 = require("./ListenerService");
|
|
28
|
+
var LockReferenceIdGenerator_1 = require("./LockReferenceIdGenerator");
|
|
29
|
+
var LoggingService_1 = require("./logging/LoggingService");
|
|
30
|
+
var RepairingTask_1 = require("./nearcache/RepairingTask");
|
|
31
|
+
var PartitionService_1 = require("./PartitionService");
|
|
32
|
+
var ErrorFactory_1 = require("./protocol/ErrorFactory");
|
|
33
|
+
var ProxyManager_1 = require("./proxy/ProxyManager");
|
|
34
|
+
var SerializationService_1 = require("./serialization/SerializationService");
|
|
35
|
+
var HazelcastCloudAddressProvider_1 = require("./discovery/HazelcastCloudAddressProvider");
|
|
36
|
+
var HazelcastCloudAddressTranslator_1 = require("./discovery/HazelcastCloudAddressTranslator");
|
|
37
|
+
var DefaultAddressTranslator_1 = require("./connection/DefaultAddressTranslator");
|
|
38
|
+
var DefaultAddressProvider_1 = require("./connection/DefaultAddressProvider");
|
|
39
|
+
var HazelcastCloudDiscovery_1 = require("./discovery/HazelcastCloudDiscovery");
|
|
40
|
+
var Statistics_1 = require("./statistics/Statistics");
|
|
41
|
+
var NearCacheManager_1 = require("./nearcache/NearCacheManager");
|
|
42
|
+
var HazelcastClient = /** @class */ (function () {
|
|
43
|
+
function HazelcastClient(config) {
|
|
44
|
+
this.id = HazelcastClient.CLIENT_ID++;
|
|
45
|
+
this.config = new Config_1.ClientConfig();
|
|
46
|
+
if (config) {
|
|
47
|
+
this.config = config;
|
|
48
|
+
}
|
|
49
|
+
if (config.getInstanceName() != null) {
|
|
50
|
+
this.instanceName = config.getInstanceName();
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
this.instanceName = 'hz.client_' + this.id;
|
|
54
|
+
}
|
|
55
|
+
this.loggingService = new LoggingService_1.LoggingService(this.config.customLogger, this.config.properties['hazelcast.logging.level']);
|
|
56
|
+
this.invocationService = new InvocationService_1.InvocationService(this);
|
|
57
|
+
this.listenerService = new ListenerService_1.ListenerService(this);
|
|
58
|
+
this.serializationService = new SerializationService_1.SerializationServiceV1(this, this.config.serializationConfig);
|
|
59
|
+
this.proxyManager = new ProxyManager_1.ProxyManager(this);
|
|
60
|
+
this.nearCacheManager = new NearCacheManager_1.NearCacheManager(this);
|
|
61
|
+
this.partitionService = new PartitionService_1.PartitionService(this);
|
|
62
|
+
var addressProviders = this.createAddressProviders();
|
|
63
|
+
var addressTranslator = this.createAddressTranslator();
|
|
64
|
+
this.connectionManager = new ClientConnectionManager_1.ClientConnectionManager(this, addressTranslator, addressProviders);
|
|
65
|
+
this.clusterService = new ClusterService_1.ClusterService(this);
|
|
66
|
+
this.lifecycleService = new LifecycleService_1.LifecycleService(this);
|
|
67
|
+
this.heartbeat = new HeartbeatService_1.Heartbeat(this);
|
|
68
|
+
this.lockReferenceIdGenerator = new LockReferenceIdGenerator_1.LockReferenceIdGenerator();
|
|
69
|
+
this.errorFactory = new ErrorFactory_1.ClientErrorFactory();
|
|
70
|
+
this.statistics = new Statistics_1.Statistics(this);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Creates a new client object and automatically connects to cluster.
|
|
74
|
+
* @param config Default {@link ClientConfig} is used when this parameter is absent.
|
|
75
|
+
* @returns a new client instance
|
|
76
|
+
*/
|
|
77
|
+
HazelcastClient.newHazelcastClient = function (config) {
|
|
78
|
+
if (config == null) {
|
|
79
|
+
var configBuilder_1 = new ConfigBuilder_1.ConfigBuilder();
|
|
80
|
+
return configBuilder_1.loadConfig().then(function () {
|
|
81
|
+
var client = new HazelcastClient(configBuilder_1.build());
|
|
82
|
+
return client.init();
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
var client = new HazelcastClient(config);
|
|
87
|
+
return client.init();
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Returns the name of this Hazelcast instance.
|
|
92
|
+
*
|
|
93
|
+
* @return name of this Hazelcast instance
|
|
94
|
+
*/
|
|
95
|
+
HazelcastClient.prototype.getName = function () {
|
|
96
|
+
return this.instanceName;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Gathers information of this local client.
|
|
100
|
+
* @returns {ClientInfo}
|
|
101
|
+
*/
|
|
102
|
+
HazelcastClient.prototype.getLocalEndpoint = function () {
|
|
103
|
+
return this.clusterService.getClientInfo();
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Gives all known distributed objects in cluster.
|
|
107
|
+
* @returns {Promise<DistributedObject[]>|Promise<T>}
|
|
108
|
+
*/
|
|
109
|
+
HazelcastClient.prototype.getDistributedObjects = function () {
|
|
110
|
+
var clientMessage = ClientGetDistributedObjectsCodec_1.ClientGetDistributedObjectsCodec.encodeRequest();
|
|
111
|
+
var toObjectFunc = this.getSerializationService().toObject.bind(this);
|
|
112
|
+
var proxyManager = this.proxyManager;
|
|
113
|
+
return this.invocationService.invokeOnRandomTarget(clientMessage).then(function (resp) {
|
|
114
|
+
var response = ClientGetDistributedObjectsCodec_1.ClientGetDistributedObjectsCodec.decodeResponse(resp, toObjectFunc).response;
|
|
115
|
+
return Promise.all(response.map(function (objectInfo) {
|
|
116
|
+
return proxyManager.getOrCreateProxy(objectInfo.value, objectInfo.key, false);
|
|
117
|
+
}));
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Returns the distributed map instance with given name.
|
|
122
|
+
* @param name
|
|
123
|
+
* @returns {Promise<IMap<K, V>>}
|
|
124
|
+
*/
|
|
125
|
+
HazelcastClient.prototype.getMap = function (name) {
|
|
126
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.MAP_SERVICE);
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Returns the distributed set instance with given name.
|
|
130
|
+
* @param name
|
|
131
|
+
* @returns {Promise<ISet<E>>}
|
|
132
|
+
*/
|
|
133
|
+
HazelcastClient.prototype.getSet = function (name) {
|
|
134
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.SET_SERVICE);
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Returns the distributed lock instance with given name.
|
|
138
|
+
* @param name
|
|
139
|
+
* @returns {Promise<ILock>}
|
|
140
|
+
*/
|
|
141
|
+
HazelcastClient.prototype.getLock = function (name) {
|
|
142
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.LOCK_SERVICE);
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Returns the distributed queue instance with given name.
|
|
146
|
+
* @param name
|
|
147
|
+
* @returns {Promise<IQueue<E>>}
|
|
148
|
+
*/
|
|
149
|
+
HazelcastClient.prototype.getQueue = function (name) {
|
|
150
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.QUEUE_SERVICE);
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Returns the distributed list instance with given name.
|
|
154
|
+
* @param name
|
|
155
|
+
* @returns {Promise<IList<E>>}
|
|
156
|
+
*/
|
|
157
|
+
HazelcastClient.prototype.getList = function (name) {
|
|
158
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.LIST_SERVICE);
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Returns the distributed multi-map instance with given name.
|
|
162
|
+
* @param name
|
|
163
|
+
* @returns {Promise<MultiMap<K, V>>}
|
|
164
|
+
*/
|
|
165
|
+
HazelcastClient.prototype.getMultiMap = function (name) {
|
|
166
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.MULTIMAP_SERVICE);
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Returns a distributed ringbuffer instance with the given name.
|
|
170
|
+
* @param name
|
|
171
|
+
* @returns {Promise<Ringbuffer<E>>}
|
|
172
|
+
*/
|
|
173
|
+
HazelcastClient.prototype.getRingbuffer = function (name) {
|
|
174
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.RINGBUFFER_SERVICE);
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Returns a distributed reliable topic instance with the given name.
|
|
178
|
+
* @param name
|
|
179
|
+
* @returns {Promise<ITopic<E>>}
|
|
180
|
+
*/
|
|
181
|
+
HazelcastClient.prototype.getReliableTopic = function (name) {
|
|
182
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.RELIABLETOPIC_SERVICE);
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Returns the distributed replicated-map instance with given name.
|
|
186
|
+
* @param name
|
|
187
|
+
* @returns {Promise<ReplicatedMap<K, V>>}
|
|
188
|
+
*/
|
|
189
|
+
HazelcastClient.prototype.getReplicatedMap = function (name) {
|
|
190
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.REPLICATEDMAP_SERVICE);
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Returns the distributed atomic long instance with given name.
|
|
194
|
+
* @param name
|
|
195
|
+
* @returns {Promise<IAtomicLong>}
|
|
196
|
+
*/
|
|
197
|
+
HazelcastClient.prototype.getAtomicLong = function (name) {
|
|
198
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.ATOMICLONG_SERVICE);
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Returns the distributed flake ID generator instance with given name.
|
|
202
|
+
* @param name
|
|
203
|
+
* @returns {Promise<FlakeIdGenerator>}
|
|
204
|
+
*/
|
|
205
|
+
HazelcastClient.prototype.getFlakeIdGenerator = function (name) {
|
|
206
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.FLAKEID_SERVICE);
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Returns the distributed PN Counter instance with given name.
|
|
210
|
+
* @param name
|
|
211
|
+
* @returns {Promise<PNCounter>}
|
|
212
|
+
*/
|
|
213
|
+
HazelcastClient.prototype.getPNCounter = function (name) {
|
|
214
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.PNCOUNTER_SERVICE);
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Returns the distributed semaphore instance with given name.
|
|
218
|
+
* @param name
|
|
219
|
+
* @returns {Promise<ISemaphore>}
|
|
220
|
+
*/
|
|
221
|
+
HazelcastClient.prototype.getSemaphore = function (name) {
|
|
222
|
+
return this.proxyManager.getOrCreateProxy(name, ProxyManager_1.ProxyManager.SEMAPHORE_SERVICE);
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Return configuration that this instance started with.
|
|
226
|
+
* Returned configuration object should not be modified.
|
|
227
|
+
* @returns {ClientConfig}
|
|
228
|
+
*/
|
|
229
|
+
HazelcastClient.prototype.getConfig = function () {
|
|
230
|
+
return this.config;
|
|
231
|
+
};
|
|
232
|
+
HazelcastClient.prototype.getSerializationService = function () {
|
|
233
|
+
return this.serializationService;
|
|
234
|
+
};
|
|
235
|
+
HazelcastClient.prototype.getInvocationService = function () {
|
|
236
|
+
return this.invocationService;
|
|
237
|
+
};
|
|
238
|
+
HazelcastClient.prototype.getListenerService = function () {
|
|
239
|
+
return this.listenerService;
|
|
240
|
+
};
|
|
241
|
+
HazelcastClient.prototype.getConnectionManager = function () {
|
|
242
|
+
return this.connectionManager;
|
|
243
|
+
};
|
|
244
|
+
HazelcastClient.prototype.getPartitionService = function () {
|
|
245
|
+
return this.partitionService;
|
|
246
|
+
};
|
|
247
|
+
HazelcastClient.prototype.getProxyManager = function () {
|
|
248
|
+
return this.proxyManager;
|
|
249
|
+
};
|
|
250
|
+
HazelcastClient.prototype.getNearCacheManager = function () {
|
|
251
|
+
return this.nearCacheManager;
|
|
252
|
+
};
|
|
253
|
+
HazelcastClient.prototype.getClusterService = function () {
|
|
254
|
+
return this.clusterService;
|
|
255
|
+
};
|
|
256
|
+
HazelcastClient.prototype.getHeartbeat = function () {
|
|
257
|
+
return this.heartbeat;
|
|
258
|
+
};
|
|
259
|
+
HazelcastClient.prototype.getLifecycleService = function () {
|
|
260
|
+
return this.lifecycleService;
|
|
261
|
+
};
|
|
262
|
+
HazelcastClient.prototype.getRepairingTask = function () {
|
|
263
|
+
if (this.mapRepairingTask == null) {
|
|
264
|
+
this.mapRepairingTask = new RepairingTask_1.RepairingTask(this);
|
|
265
|
+
}
|
|
266
|
+
return this.mapRepairingTask;
|
|
267
|
+
};
|
|
268
|
+
HazelcastClient.prototype.getLoggingService = function () {
|
|
269
|
+
return this.loggingService;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Registers a distributed object listener to cluster.
|
|
273
|
+
* @param listenerFunc Callback function will be called with following arguments.
|
|
274
|
+
* <ul>
|
|
275
|
+
* <li>service name</li>
|
|
276
|
+
* <li>distributed object name</li>
|
|
277
|
+
* <li>name of the event that happened: either 'created' or 'destroyed'</li>
|
|
278
|
+
* </ul>
|
|
279
|
+
* @returns registration id of the listener.
|
|
280
|
+
*/
|
|
281
|
+
HazelcastClient.prototype.addDistributedObjectListener = function (distributedObjectListener) {
|
|
282
|
+
return this.proxyManager.addDistributedObjectListener(distributedObjectListener);
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Removes a distributed object listener from cluster.
|
|
286
|
+
* @param listenerId id of the listener to be removed.
|
|
287
|
+
* @returns `true` if registration is removed, `false` otherwise.
|
|
288
|
+
*/
|
|
289
|
+
HazelcastClient.prototype.removeDistributedObjectListener = function (listenerId) {
|
|
290
|
+
return this.proxyManager.removeDistributedObjectListener(listenerId);
|
|
291
|
+
};
|
|
292
|
+
HazelcastClient.prototype.getLockReferenceIdGenerator = function () {
|
|
293
|
+
return this.lockReferenceIdGenerator;
|
|
294
|
+
};
|
|
295
|
+
HazelcastClient.prototype.getErrorFactory = function () {
|
|
296
|
+
return this.errorFactory;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Shuts down this client instance.
|
|
300
|
+
*/
|
|
301
|
+
HazelcastClient.prototype.shutdown = function () {
|
|
302
|
+
this.lifecycleService.emitLifecycleEvent(LifecycleService_1.LifecycleEvent.shuttingDown);
|
|
303
|
+
if (this.mapRepairingTask !== undefined) {
|
|
304
|
+
this.mapRepairingTask.shutdown();
|
|
305
|
+
}
|
|
306
|
+
this.nearCacheManager.destroyAllNearCaches();
|
|
307
|
+
this.statistics.stop();
|
|
308
|
+
this.partitionService.shutdown();
|
|
309
|
+
this.heartbeat.cancel();
|
|
310
|
+
this.connectionManager.shutdown();
|
|
311
|
+
this.listenerService.shutdown();
|
|
312
|
+
this.invocationService.shutdown();
|
|
313
|
+
this.lifecycleService.emitLifecycleEvent(LifecycleService_1.LifecycleEvent.shutdown);
|
|
314
|
+
};
|
|
315
|
+
HazelcastClient.prototype.init = function () {
|
|
316
|
+
var _this = this;
|
|
317
|
+
return this.clusterService.start().then(function () {
|
|
318
|
+
return _this.partitionService.initialize();
|
|
319
|
+
}).then(function () {
|
|
320
|
+
return _this.heartbeat.start();
|
|
321
|
+
}).then(function () {
|
|
322
|
+
_this.lifecycleService.emitLifecycleEvent(LifecycleService_1.LifecycleEvent.started);
|
|
323
|
+
}).then(function () {
|
|
324
|
+
_this.proxyManager.init();
|
|
325
|
+
_this.listenerService.start();
|
|
326
|
+
_this.invocationService.start();
|
|
327
|
+
_this.statistics.start();
|
|
328
|
+
return _this;
|
|
329
|
+
}).catch(function (e) {
|
|
330
|
+
_this.shutdown();
|
|
331
|
+
_this.loggingService.getLogger().error('HazelcastClient', 'Client failed to start.', e);
|
|
332
|
+
throw e;
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
HazelcastClient.prototype.createAddressTranslator = function () {
|
|
336
|
+
var cloudConfig = this.getConfig().networkConfig.cloudConfig;
|
|
337
|
+
if (cloudConfig.enabled) {
|
|
338
|
+
var urlEndpoint = HazelcastCloudDiscovery_1.HazelcastCloudDiscovery.createUrlEndpoint(this.getConfig().properties, cloudConfig.discoveryToken);
|
|
339
|
+
return new HazelcastCloudAddressTranslator_1.HazelcastCloudAddressTranslator(urlEndpoint, this.getConnectionTimeoutMillis(), this.loggingService.getLogger());
|
|
340
|
+
}
|
|
341
|
+
return new DefaultAddressTranslator_1.DefaultAddressTranslator();
|
|
342
|
+
};
|
|
343
|
+
HazelcastClient.prototype.createAddressProviders = function () {
|
|
344
|
+
var networkConfig = this.getConfig().networkConfig;
|
|
345
|
+
var addressProviders = [];
|
|
346
|
+
var cloudAddressProvider = this.initCloudAddressProvider();
|
|
347
|
+
if (cloudAddressProvider != null) {
|
|
348
|
+
addressProviders.push(cloudAddressProvider);
|
|
349
|
+
}
|
|
350
|
+
addressProviders.push(new DefaultAddressProvider_1.DefaultAddressProvider(networkConfig, addressProviders.length === 0));
|
|
351
|
+
return addressProviders;
|
|
352
|
+
};
|
|
353
|
+
HazelcastClient.prototype.initCloudAddressProvider = function () {
|
|
354
|
+
var cloudConfig = this.getConfig().networkConfig.cloudConfig;
|
|
355
|
+
if (cloudConfig.enabled) {
|
|
356
|
+
var discoveryToken = cloudConfig.discoveryToken;
|
|
357
|
+
var urlEndpoint = HazelcastCloudDiscovery_1.HazelcastCloudDiscovery.createUrlEndpoint(this.getConfig().properties, discoveryToken);
|
|
358
|
+
return new HazelcastCloudAddressProvider_1.HazelcastCloudAddressProvider(urlEndpoint, this.getConnectionTimeoutMillis(), this.loggingService.getLogger());
|
|
359
|
+
}
|
|
360
|
+
return null;
|
|
361
|
+
};
|
|
362
|
+
HazelcastClient.prototype.getConnectionTimeoutMillis = function () {
|
|
363
|
+
var networkConfig = this.getConfig().networkConfig;
|
|
364
|
+
var connTimeout = networkConfig.connectionTimeout;
|
|
365
|
+
return connTimeout === 0 ? Number.MAX_VALUE : connTimeout;
|
|
366
|
+
};
|
|
367
|
+
HazelcastClient.CLIENT_ID = 0;
|
|
368
|
+
return HazelcastClient;
|
|
369
|
+
}());
|
|
370
|
+
exports.default = HazelcastClient;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export interface HazelcastErrorConstructor {
|
|
2
|
+
readonly prototype: Error;
|
|
3
|
+
new (message: string, cause?: Error): HazelcastError;
|
|
4
|
+
}
|
|
5
|
+
export declare class HazelcastError extends Error {
|
|
6
|
+
cause: Error;
|
|
7
|
+
stack: string;
|
|
8
|
+
constructor(msg: string, cause?: Error);
|
|
9
|
+
}
|
|
10
|
+
export declare class HazelcastSerializationError extends HazelcastError {
|
|
11
|
+
constructor(msg: string, cause?: Error);
|
|
12
|
+
}
|
|
13
|
+
export declare class AuthenticationError extends HazelcastError {
|
|
14
|
+
constructor(msg: string, cause?: Error);
|
|
15
|
+
}
|
|
16
|
+
export declare class ClientNotActiveError extends HazelcastError {
|
|
17
|
+
constructor(msg: string, cause?: Error);
|
|
18
|
+
}
|
|
19
|
+
export declare class IllegalStateError extends HazelcastError {
|
|
20
|
+
constructor(msg: string, cause?: Error);
|
|
21
|
+
}
|
|
22
|
+
export declare class StaleSequenceError extends HazelcastError {
|
|
23
|
+
constructor(msg: string, cause?: Error);
|
|
24
|
+
}
|
|
25
|
+
export declare class TopicOverloadError extends HazelcastError {
|
|
26
|
+
constructor(msg: string, cause?: Error);
|
|
27
|
+
}
|
|
28
|
+
export declare class IOError extends HazelcastError {
|
|
29
|
+
constructor(msg: string, cause?: Error);
|
|
30
|
+
}
|
|
31
|
+
export declare class UndefinedErrorCodeError extends HazelcastError {
|
|
32
|
+
constructor(msg: string, className: string);
|
|
33
|
+
}
|
|
34
|
+
export declare class InvocationTimeoutError extends HazelcastError {
|
|
35
|
+
constructor(msg: string, cause?: Error);
|
|
36
|
+
}
|
|
37
|
+
export declare class RetryableHazelcastError extends HazelcastError {
|
|
38
|
+
constructor(msg: string, cause?: Error);
|
|
39
|
+
}
|
|
40
|
+
export declare class TargetNotMemberError extends RetryableHazelcastError {
|
|
41
|
+
constructor(msg: string, cause?: Error);
|
|
42
|
+
}
|
|
43
|
+
export declare class CallerNotMemberError extends RetryableHazelcastError {
|
|
44
|
+
constructor(msg: string, cause?: Error);
|
|
45
|
+
}
|
|
46
|
+
export declare class CancellationError extends IllegalStateError {
|
|
47
|
+
constructor(msg: string, cause?: Error);
|
|
48
|
+
}
|
|
49
|
+
export declare class ClassCastError extends HazelcastError {
|
|
50
|
+
constructor(msg: string, cause?: Error);
|
|
51
|
+
}
|
|
52
|
+
export declare class ClassNotFoundError extends HazelcastError {
|
|
53
|
+
constructor(msg: string, cause?: Error);
|
|
54
|
+
}
|
|
55
|
+
export declare class ConcurrentModificationError extends HazelcastError {
|
|
56
|
+
constructor(msg: string, cause?: Error);
|
|
57
|
+
}
|
|
58
|
+
export declare class ConfigMismatchError extends HazelcastError {
|
|
59
|
+
constructor(msg: string, cause?: Error);
|
|
60
|
+
}
|
|
61
|
+
export declare class ConfigurationError extends HazelcastError {
|
|
62
|
+
constructor(msg: string, cause?: Error);
|
|
63
|
+
}
|
|
64
|
+
export declare class DistributedObjectDestroyedError extends HazelcastError {
|
|
65
|
+
constructor(msg: string, cause?: Error);
|
|
66
|
+
}
|
|
67
|
+
export declare class DuplicateInstanceNameError extends HazelcastError {
|
|
68
|
+
constructor(msg: string, cause?: Error);
|
|
69
|
+
}
|
|
70
|
+
export declare class HazelcastInstanceNotActiveError extends IllegalStateError {
|
|
71
|
+
constructor(msg: string, cause?: Error);
|
|
72
|
+
}
|
|
73
|
+
export declare class MemberLeftError extends RetryableHazelcastError {
|
|
74
|
+
constructor(msg: string, cause?: Error);
|
|
75
|
+
}
|
|
76
|
+
export declare class PartitionMigratingError extends RetryableHazelcastError {
|
|
77
|
+
constructor(msg: string, cause?: Error);
|
|
78
|
+
}
|
|
79
|
+
export declare class QueryError extends HazelcastError {
|
|
80
|
+
constructor(msg: string, cause?: Error);
|
|
81
|
+
}
|
|
82
|
+
export declare class TransactionError extends HazelcastError {
|
|
83
|
+
constructor(msg: string, cause?: Error);
|
|
84
|
+
}
|
|
85
|
+
export declare class TransactionNotActiveError extends HazelcastError {
|
|
86
|
+
constructor(msg: string, cause?: Error);
|
|
87
|
+
}
|
|
88
|
+
export declare class TransactionTimedOutError extends HazelcastError {
|
|
89
|
+
constructor(msg: string, cause?: Error);
|
|
90
|
+
}
|
|
91
|
+
export declare class QuorumError extends TransactionError {
|
|
92
|
+
constructor(msg: string, cause?: Error);
|
|
93
|
+
}
|
|
94
|
+
export declare class RetryableIOError extends RetryableHazelcastError {
|
|
95
|
+
constructor(msg: string, cause?: Error);
|
|
96
|
+
}
|
|
97
|
+
export declare class TargetDisconnectedError extends HazelcastError {
|
|
98
|
+
constructor(msg: string, cause?: Error);
|
|
99
|
+
}
|
|
100
|
+
export declare class UnsupportedOperationError extends HazelcastError {
|
|
101
|
+
constructor(msg: string, cause?: Error);
|
|
102
|
+
}
|
|
103
|
+
export declare class ConsistencyLostError extends HazelcastError {
|
|
104
|
+
constructor(msg: string, cause?: Error);
|
|
105
|
+
}
|
|
106
|
+
export declare class NoDataMemberInClusterError extends HazelcastError {
|
|
107
|
+
constructor(msg: string, cause?: Error);
|
|
108
|
+
}
|
|
109
|
+
export declare class StaleTaskIdError extends HazelcastError {
|
|
110
|
+
constructor(msg: string, cause?: Error);
|
|
111
|
+
}
|
|
112
|
+
export declare class NodeIdOutOfRangeError extends HazelcastError {
|
|
113
|
+
constructor(msg: string, cause?: Error);
|
|
114
|
+
}
|