@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,61 @@
|
|
|
1
|
+
import { TopicOverloadPolicy } from '../proxy/topic/TopicOverloadPolicy';
|
|
2
|
+
import { ClientNetworkConfig } from './ClientNetworkConfig';
|
|
3
|
+
import { EvictionPolicy } from './EvictionPolicy';
|
|
4
|
+
import { FlakeIdGeneratorConfig } from './FlakeIdGeneratorConfig';
|
|
5
|
+
import { GroupConfig } from './GroupConfig';
|
|
6
|
+
import { ImportConfig } from './ImportConfig';
|
|
7
|
+
import { InMemoryFormat } from './InMemoryFormat';
|
|
8
|
+
import { ListenerConfig } from './ListenerConfig';
|
|
9
|
+
import { NearCacheConfig } from './NearCacheConfig';
|
|
10
|
+
import { SSLConfig } from './SSLConfig';
|
|
11
|
+
import { Properties } from './Properties';
|
|
12
|
+
import { ReliableTopicConfig } from './ReliableTopicConfig';
|
|
13
|
+
import { SerializationConfig } from './SerializationConfig';
|
|
14
|
+
import { ILogger } from '../logging/ILogger';
|
|
15
|
+
import { JsonStringDeserializationPolicy } from './JsonStringDeserializationPolicy';
|
|
16
|
+
import { StringSerializationPolicy } from './StringSerializationPolicy';
|
|
17
|
+
/**
|
|
18
|
+
* Top level configuration object of Hazelcast client. Other configurations items are properties of this object.
|
|
19
|
+
*/
|
|
20
|
+
export declare class ClientConfig {
|
|
21
|
+
properties: Properties;
|
|
22
|
+
/**
|
|
23
|
+
* Name of this client instance.
|
|
24
|
+
*/
|
|
25
|
+
instanceName: string;
|
|
26
|
+
groupConfig: GroupConfig;
|
|
27
|
+
networkConfig: ClientNetworkConfig;
|
|
28
|
+
customLogger: ILogger;
|
|
29
|
+
customCredentials: any;
|
|
30
|
+
listeners: ListenerConfig;
|
|
31
|
+
listenerConfigs: ImportConfig[];
|
|
32
|
+
serializationConfig: SerializationConfig;
|
|
33
|
+
reliableTopicConfigs: {
|
|
34
|
+
[name: string]: ReliableTopicConfig;
|
|
35
|
+
};
|
|
36
|
+
nearCacheConfigs: {
|
|
37
|
+
[name: string]: NearCacheConfig;
|
|
38
|
+
};
|
|
39
|
+
flakeIdGeneratorConfigs: {
|
|
40
|
+
[name: string]: FlakeIdGeneratorConfig;
|
|
41
|
+
};
|
|
42
|
+
private configPatternMatcher;
|
|
43
|
+
getInstanceName(): string;
|
|
44
|
+
getReliableTopicConfig(name: string): ReliableTopicConfig;
|
|
45
|
+
getNearCacheConfig(name: string): NearCacheConfig;
|
|
46
|
+
getFlakeIdGeneratorConfig(name: string): FlakeIdGeneratorConfig;
|
|
47
|
+
private lookupByPattern<T>(config, name);
|
|
48
|
+
}
|
|
49
|
+
export { ClientNetworkConfig };
|
|
50
|
+
export { TopicOverloadPolicy };
|
|
51
|
+
export { SerializationConfig };
|
|
52
|
+
export { GroupConfig };
|
|
53
|
+
export { ReliableTopicConfig };
|
|
54
|
+
export { EvictionPolicy };
|
|
55
|
+
export { InMemoryFormat };
|
|
56
|
+
export { NearCacheConfig };
|
|
57
|
+
export { ImportConfig };
|
|
58
|
+
export { FlakeIdGeneratorConfig };
|
|
59
|
+
export { SSLConfig };
|
|
60
|
+
export { JsonStringDeserializationPolicy };
|
|
61
|
+
export { StringSerializationPolicy };
|
|
@@ -0,0 +1,138 @@
|
|
|
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 TopicOverloadPolicy_1 = require("../proxy/topic/TopicOverloadPolicy");
|
|
19
|
+
exports.TopicOverloadPolicy = TopicOverloadPolicy_1.TopicOverloadPolicy;
|
|
20
|
+
var ClientNetworkConfig_1 = require("./ClientNetworkConfig");
|
|
21
|
+
exports.ClientNetworkConfig = ClientNetworkConfig_1.ClientNetworkConfig;
|
|
22
|
+
var ConfigPatternMatcher_1 = require("./ConfigPatternMatcher");
|
|
23
|
+
var EvictionPolicy_1 = require("./EvictionPolicy");
|
|
24
|
+
exports.EvictionPolicy = EvictionPolicy_1.EvictionPolicy;
|
|
25
|
+
var FlakeIdGeneratorConfig_1 = require("./FlakeIdGeneratorConfig");
|
|
26
|
+
exports.FlakeIdGeneratorConfig = FlakeIdGeneratorConfig_1.FlakeIdGeneratorConfig;
|
|
27
|
+
var GroupConfig_1 = require("./GroupConfig");
|
|
28
|
+
exports.GroupConfig = GroupConfig_1.GroupConfig;
|
|
29
|
+
var InMemoryFormat_1 = require("./InMemoryFormat");
|
|
30
|
+
exports.InMemoryFormat = InMemoryFormat_1.InMemoryFormat;
|
|
31
|
+
var ListenerConfig_1 = require("./ListenerConfig");
|
|
32
|
+
var NearCacheConfig_1 = require("./NearCacheConfig");
|
|
33
|
+
exports.NearCacheConfig = NearCacheConfig_1.NearCacheConfig;
|
|
34
|
+
var SSLConfig_1 = require("./SSLConfig");
|
|
35
|
+
exports.SSLConfig = SSLConfig_1.SSLConfig;
|
|
36
|
+
var ReliableTopicConfig_1 = require("./ReliableTopicConfig");
|
|
37
|
+
exports.ReliableTopicConfig = ReliableTopicConfig_1.ReliableTopicConfig;
|
|
38
|
+
var SerializationConfig_1 = require("./SerializationConfig");
|
|
39
|
+
exports.SerializationConfig = SerializationConfig_1.SerializationConfig;
|
|
40
|
+
var Statistics_1 = require("../statistics/Statistics");
|
|
41
|
+
var __1 = require("..");
|
|
42
|
+
var JsonStringDeserializationPolicy_1 = require("./JsonStringDeserializationPolicy");
|
|
43
|
+
exports.JsonStringDeserializationPolicy = JsonStringDeserializationPolicy_1.JsonStringDeserializationPolicy;
|
|
44
|
+
var StringSerializationPolicy_1 = require("./StringSerializationPolicy");
|
|
45
|
+
exports.StringSerializationPolicy = StringSerializationPolicy_1.StringSerializationPolicy;
|
|
46
|
+
/**
|
|
47
|
+
* Top level configuration object of Hazelcast client. Other configurations items are properties of this object.
|
|
48
|
+
*/
|
|
49
|
+
var ClientConfig = /** @class */ (function () {
|
|
50
|
+
function ClientConfig() {
|
|
51
|
+
this.properties = {
|
|
52
|
+
'hazelcast.client.heartbeat.interval': 5000,
|
|
53
|
+
'hazelcast.client.heartbeat.timeout': 60000,
|
|
54
|
+
'hazelcast.client.invocation.retry.pause.millis': 1000,
|
|
55
|
+
'hazelcast.client.invocation.timeout.millis': 120000,
|
|
56
|
+
'hazelcast.client.internal.clean.resources.millis': 100,
|
|
57
|
+
'hazelcast.client.cloud.url': 'https://coordinator.hazelcast.cloud',
|
|
58
|
+
'hazelcast.client.statistics.enabled': false,
|
|
59
|
+
'hazelcast.client.statistics.period.seconds': Statistics_1.Statistics.PERIOD_SECONDS_DEFAULT_VALUE,
|
|
60
|
+
'hazelcast.invalidation.reconciliation.interval.seconds': 60,
|
|
61
|
+
'hazelcast.invalidation.max.tolerated.miss.count': 10,
|
|
62
|
+
'hazelcast.invalidation.min.reconciliation.interval.seconds': 30,
|
|
63
|
+
'hazelcast.logging.level': __1.LogLevel.INFO,
|
|
64
|
+
'hazelcast.client.autopipelining.enabled': true,
|
|
65
|
+
'hazelcast.client.autopipelining.threshold.bytes': 8192,
|
|
66
|
+
'hazelcast.client.socket.no.delay': true,
|
|
67
|
+
// Enhanced connection management properties
|
|
68
|
+
'hazelcast.client.connection.health.check.interval': 5000,
|
|
69
|
+
'hazelcast.client.connection.max.retries': 3,
|
|
70
|
+
'hazelcast.client.connection.retry.delay': 1000,
|
|
71
|
+
'hazelcast.client.failover.cooldown': 5000,
|
|
72
|
+
'hazelcast.client.partition.refresh.min.interval': 2000,
|
|
73
|
+
'hazelcast.client.invocation.max.retries': 10,
|
|
74
|
+
'hazelcast.client.partition.failure.backoff': 2000,
|
|
75
|
+
};
|
|
76
|
+
this.groupConfig = new GroupConfig_1.GroupConfig();
|
|
77
|
+
this.networkConfig = new ClientNetworkConfig_1.ClientNetworkConfig();
|
|
78
|
+
this.customCredentials = null;
|
|
79
|
+
this.listeners = new ListenerConfig_1.ListenerConfig();
|
|
80
|
+
this.listenerConfigs = [];
|
|
81
|
+
this.serializationConfig = new SerializationConfig_1.SerializationConfig();
|
|
82
|
+
this.reliableTopicConfigs = {};
|
|
83
|
+
this.nearCacheConfigs = {};
|
|
84
|
+
this.flakeIdGeneratorConfigs = {};
|
|
85
|
+
this.configPatternMatcher = new ConfigPatternMatcher_1.ConfigPatternMatcher();
|
|
86
|
+
}
|
|
87
|
+
ClientConfig.prototype.getInstanceName = function () {
|
|
88
|
+
return this.instanceName;
|
|
89
|
+
};
|
|
90
|
+
ClientConfig.prototype.getReliableTopicConfig = function (name) {
|
|
91
|
+
var matching = this.lookupByPattern(this.reliableTopicConfigs, name);
|
|
92
|
+
var config;
|
|
93
|
+
if (matching != null) {
|
|
94
|
+
config = matching.clone();
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
config = new ReliableTopicConfig_1.ReliableTopicConfig();
|
|
98
|
+
}
|
|
99
|
+
config.name = name;
|
|
100
|
+
return config;
|
|
101
|
+
};
|
|
102
|
+
ClientConfig.prototype.getNearCacheConfig = function (name) {
|
|
103
|
+
var matching = this.lookupByPattern(this.nearCacheConfigs, name);
|
|
104
|
+
if (matching == null) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
var config = matching.clone();
|
|
108
|
+
config.name = name;
|
|
109
|
+
return config;
|
|
110
|
+
};
|
|
111
|
+
ClientConfig.prototype.getFlakeIdGeneratorConfig = function (name) {
|
|
112
|
+
var matching = this.lookupByPattern(this.flakeIdGeneratorConfigs, name);
|
|
113
|
+
var config;
|
|
114
|
+
if (matching != null) {
|
|
115
|
+
config = matching.clone();
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
config = new FlakeIdGeneratorConfig_1.FlakeIdGeneratorConfig();
|
|
119
|
+
}
|
|
120
|
+
config.name = name;
|
|
121
|
+
return config;
|
|
122
|
+
};
|
|
123
|
+
ClientConfig.prototype.lookupByPattern = function (config, name) {
|
|
124
|
+
if (config[name] != null) {
|
|
125
|
+
return config[name];
|
|
126
|
+
}
|
|
127
|
+
var matchingPattern = this.configPatternMatcher.matches(Object.keys(config), name);
|
|
128
|
+
if (matchingPattern != null) {
|
|
129
|
+
return config[matchingPattern];
|
|
130
|
+
}
|
|
131
|
+
if (config.default != null) {
|
|
132
|
+
return config.default;
|
|
133
|
+
}
|
|
134
|
+
return null;
|
|
135
|
+
};
|
|
136
|
+
return ClientConfig;
|
|
137
|
+
}());
|
|
138
|
+
exports.ClientConfig = ClientConfig;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import * as Promise from 'bluebird';
|
|
3
|
+
import { ClientConfig } from './Config';
|
|
4
|
+
export declare class ConfigBuilder {
|
|
5
|
+
private clientConfig;
|
|
6
|
+
private loadedJson;
|
|
7
|
+
private configLocator;
|
|
8
|
+
loadConfig(): Promise<void>;
|
|
9
|
+
build(): ClientConfig;
|
|
10
|
+
private replaceImportsWithContent(jsonObject);
|
|
11
|
+
private handleConfig(jsonObject);
|
|
12
|
+
private handleNetwork(jsonObject);
|
|
13
|
+
private handleHazelcastCloud(jsonObject);
|
|
14
|
+
private parseProperties(jsonObject);
|
|
15
|
+
private parseImportConfig(jsonObject);
|
|
16
|
+
private handleSSL(jsonObject);
|
|
17
|
+
private handleClusterMembers(jsonObject);
|
|
18
|
+
private handleGroup(jsonObject);
|
|
19
|
+
private handleProperties(jsonObject);
|
|
20
|
+
private handleListeners(jsonObject);
|
|
21
|
+
private handleSerialization(jsonObject);
|
|
22
|
+
private handleSerializers(jsonObject);
|
|
23
|
+
private handleNearCaches(jsonObject);
|
|
24
|
+
private handleReliableTopics(jsonObject);
|
|
25
|
+
private handleFlakeIds(jsonObject);
|
|
26
|
+
}
|
|
@@ -0,0 +1,322 @@
|
|
|
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 BasicSSLOptionsFactory_1 = require("../connection/BasicSSLOptionsFactory");
|
|
20
|
+
var HazelcastError_1 = require("../HazelcastError");
|
|
21
|
+
var TopicOverloadPolicy_1 = require("../proxy/topic/TopicOverloadPolicy");
|
|
22
|
+
var Util_1 = require("../Util");
|
|
23
|
+
var Config_1 = require("./Config");
|
|
24
|
+
var EvictionPolicy_1 = require("./EvictionPolicy");
|
|
25
|
+
var FlakeIdGeneratorConfig_1 = require("./FlakeIdGeneratorConfig");
|
|
26
|
+
var InMemoryFormat_1 = require("./InMemoryFormat");
|
|
27
|
+
var JsonConfigLocator_1 = require("./JsonConfigLocator");
|
|
28
|
+
var NearCacheConfig_1 = require("./NearCacheConfig");
|
|
29
|
+
var ReliableTopicConfig_1 = require("./ReliableTopicConfig");
|
|
30
|
+
var JsonStringDeserializationPolicy_1 = require("./JsonStringDeserializationPolicy");
|
|
31
|
+
var StringSerializationPolicy_1 = require("./StringSerializationPolicy");
|
|
32
|
+
var ConfigBuilder = /** @class */ (function () {
|
|
33
|
+
function ConfigBuilder() {
|
|
34
|
+
this.clientConfig = new Config_1.ClientConfig();
|
|
35
|
+
this.configLocator = new JsonConfigLocator_1.JsonConfigLocator();
|
|
36
|
+
}
|
|
37
|
+
ConfigBuilder.prototype.loadConfig = function () {
|
|
38
|
+
var _this = this;
|
|
39
|
+
return this.configLocator.load().then(function () {
|
|
40
|
+
var loadedBuffer = _this.configLocator.getBuffer();
|
|
41
|
+
if (loadedBuffer) {
|
|
42
|
+
_this.loadedJson = JSON.parse(loadedBuffer.toString());
|
|
43
|
+
return _this.replaceImportsWithContent(_this.loadedJson);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
ConfigBuilder.prototype.build = function () {
|
|
48
|
+
try {
|
|
49
|
+
this.handleConfig(this.loadedJson);
|
|
50
|
+
return this.clientConfig;
|
|
51
|
+
}
|
|
52
|
+
catch (e) {
|
|
53
|
+
throw new HazelcastError_1.HazelcastError('Error parsing config: ' + e.message, e);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
ConfigBuilder.prototype.replaceImportsWithContent = function (jsonObject) {
|
|
57
|
+
var _this = this;
|
|
58
|
+
if (jsonObject.import) {
|
|
59
|
+
var includes = Util_1.tryGetArray(jsonObject.import);
|
|
60
|
+
return Promise.map(includes, function (path) {
|
|
61
|
+
return _this.configLocator.loadImported(path);
|
|
62
|
+
}).map(function (buffer) {
|
|
63
|
+
Util_1.mergeJson(jsonObject, JSON.parse(buffer.toString()));
|
|
64
|
+
}).return();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
ConfigBuilder.prototype.handleConfig = function (jsonObject) {
|
|
68
|
+
for (var key in jsonObject) {
|
|
69
|
+
if (key === 'network') {
|
|
70
|
+
this.handleNetwork(jsonObject[key]);
|
|
71
|
+
}
|
|
72
|
+
else if (key === 'group') {
|
|
73
|
+
this.handleGroup(jsonObject[key]);
|
|
74
|
+
}
|
|
75
|
+
else if (key === 'properties') {
|
|
76
|
+
this.handleProperties(jsonObject[key]);
|
|
77
|
+
}
|
|
78
|
+
else if (key === 'listeners') {
|
|
79
|
+
this.handleListeners(jsonObject[key]);
|
|
80
|
+
}
|
|
81
|
+
else if (key === 'serialization') {
|
|
82
|
+
this.handleSerialization(jsonObject[key]);
|
|
83
|
+
}
|
|
84
|
+
else if (key === 'nearCaches') {
|
|
85
|
+
this.handleNearCaches(jsonObject[key]);
|
|
86
|
+
}
|
|
87
|
+
else if (key === 'reliableTopics') {
|
|
88
|
+
this.handleReliableTopics(jsonObject[key]);
|
|
89
|
+
}
|
|
90
|
+
else if (key === 'flakeIdGeneratorConfigs') {
|
|
91
|
+
this.handleFlakeIds(jsonObject[key]);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
ConfigBuilder.prototype.handleNetwork = function (jsonObject) {
|
|
96
|
+
for (var key in jsonObject) {
|
|
97
|
+
if (key === 'clusterMembers') {
|
|
98
|
+
this.handleClusterMembers(jsonObject[key]);
|
|
99
|
+
}
|
|
100
|
+
else if (key === 'smartRouting') {
|
|
101
|
+
this.clientConfig.networkConfig.smartRouting = Util_1.tryGetBoolean(jsonObject[key]);
|
|
102
|
+
}
|
|
103
|
+
else if (key === 'connectionTimeout') {
|
|
104
|
+
this.clientConfig.networkConfig.connectionTimeout = Util_1.tryGetNumber(jsonObject[key]);
|
|
105
|
+
}
|
|
106
|
+
else if (key === 'connectionAttemptPeriod') {
|
|
107
|
+
this.clientConfig.networkConfig.connectionAttemptPeriod = Util_1.tryGetNumber(jsonObject[key]);
|
|
108
|
+
}
|
|
109
|
+
else if (key === 'connectionAttemptLimit') {
|
|
110
|
+
this.clientConfig.networkConfig.connectionAttemptLimit = Util_1.tryGetNumber(jsonObject[key]);
|
|
111
|
+
}
|
|
112
|
+
else if (key === 'ssl') {
|
|
113
|
+
this.handleSSL(jsonObject[key]);
|
|
114
|
+
}
|
|
115
|
+
else if (key === 'hazelcastCloud') {
|
|
116
|
+
this.handleHazelcastCloud(jsonObject[key]);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
ConfigBuilder.prototype.handleHazelcastCloud = function (jsonObject) {
|
|
121
|
+
var cloudConfigEnabled = Util_1.tryGetBoolean(jsonObject.enabled);
|
|
122
|
+
if (cloudConfigEnabled) {
|
|
123
|
+
this.clientConfig.networkConfig.cloudConfig.enabled = cloudConfigEnabled;
|
|
124
|
+
}
|
|
125
|
+
for (var key in jsonObject) {
|
|
126
|
+
if (key === 'discoveryToken') {
|
|
127
|
+
this.clientConfig.networkConfig.cloudConfig.discoveryToken = Util_1.tryGetString(jsonObject[key]);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
ConfigBuilder.prototype.parseProperties = function (jsonObject) {
|
|
132
|
+
var props = {};
|
|
133
|
+
for (var key in jsonObject) {
|
|
134
|
+
props[key] = jsonObject[key];
|
|
135
|
+
}
|
|
136
|
+
return props;
|
|
137
|
+
};
|
|
138
|
+
ConfigBuilder.prototype.parseImportConfig = function (jsonObject) {
|
|
139
|
+
var importConfig = {};
|
|
140
|
+
importConfig.path = jsonObject.path;
|
|
141
|
+
importConfig.exportedName = jsonObject.exportedName;
|
|
142
|
+
return importConfig;
|
|
143
|
+
};
|
|
144
|
+
ConfigBuilder.prototype.handleSSL = function (jsonObject) {
|
|
145
|
+
var sslEnabled = Util_1.tryGetBoolean(jsonObject.enabled);
|
|
146
|
+
this.clientConfig.networkConfig.sslConfig.enabled = sslEnabled;
|
|
147
|
+
if (jsonObject.sslOptions) {
|
|
148
|
+
if (jsonObject.factory) {
|
|
149
|
+
throw new RangeError('Invalid configuration. Either SSL options should be set manually or SSL factory' +
|
|
150
|
+
' should be used.');
|
|
151
|
+
}
|
|
152
|
+
this.clientConfig.networkConfig.sslConfig.sslOptions = jsonObject.sslOptions;
|
|
153
|
+
}
|
|
154
|
+
else if (jsonObject.factory) {
|
|
155
|
+
var factory = jsonObject.factory;
|
|
156
|
+
var importConfig = this.parseImportConfig(factory);
|
|
157
|
+
if (importConfig.path == null && importConfig.exportedName !== BasicSSLOptionsFactory_1.BasicSSLOptionsFactory.name) {
|
|
158
|
+
throw new RangeError('Invalid configuration. Either SSL factory path should be set or exportedName' +
|
|
159
|
+
' should be ' + BasicSSLOptionsFactory_1.BasicSSLOptionsFactory.name + '.');
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
this.clientConfig.networkConfig.sslConfig.sslOptionsFactoryConfig = this.parseImportConfig(factory);
|
|
163
|
+
this.clientConfig.networkConfig.sslConfig.sslOptionsFactoryProperties = this.parseProperties(factory.properties);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
ConfigBuilder.prototype.handleClusterMembers = function (jsonObject) {
|
|
168
|
+
var addressArray = Util_1.tryGetArray(jsonObject);
|
|
169
|
+
for (var index in addressArray) {
|
|
170
|
+
var address = addressArray[index];
|
|
171
|
+
this.clientConfig.networkConfig.addresses.push(Util_1.tryGetString(address));
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
ConfigBuilder.prototype.handleGroup = function (jsonObject) {
|
|
175
|
+
for (var key in jsonObject) {
|
|
176
|
+
if (key === 'name') {
|
|
177
|
+
this.clientConfig.groupConfig.name = Util_1.tryGetString(jsonObject[key]);
|
|
178
|
+
}
|
|
179
|
+
else if (key === 'password') {
|
|
180
|
+
this.clientConfig.groupConfig.password = Util_1.tryGetString(jsonObject[key]);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
ConfigBuilder.prototype.handleProperties = function (jsonObject) {
|
|
185
|
+
for (var key in jsonObject) {
|
|
186
|
+
this.clientConfig.properties[key] = jsonObject[key];
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
ConfigBuilder.prototype.handleListeners = function (jsonObject) {
|
|
190
|
+
var listenersArray = Util_1.tryGetArray(jsonObject);
|
|
191
|
+
for (var index in listenersArray) {
|
|
192
|
+
var listenerConfig = listenersArray[index];
|
|
193
|
+
this.clientConfig.listenerConfigs.push(this.parseImportConfig(listenerConfig));
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
ConfigBuilder.prototype.handleSerialization = function (jsonObject) {
|
|
197
|
+
for (var key in jsonObject) {
|
|
198
|
+
if (key === 'defaultNumberType') {
|
|
199
|
+
this.clientConfig.serializationConfig.defaultNumberType = Util_1.tryGetString(jsonObject[key]);
|
|
200
|
+
}
|
|
201
|
+
else if (key === 'isBigEndian') {
|
|
202
|
+
this.clientConfig.serializationConfig.isBigEndian = Util_1.tryGetBoolean(jsonObject[key]);
|
|
203
|
+
}
|
|
204
|
+
else if (key === 'portableVersion') {
|
|
205
|
+
this.clientConfig.serializationConfig.portableVersion = Util_1.tryGetNumber(jsonObject[key]);
|
|
206
|
+
}
|
|
207
|
+
else if (key === 'dataSerializableFactories') {
|
|
208
|
+
for (var index in jsonObject[key]) {
|
|
209
|
+
var factory = jsonObject[key][index];
|
|
210
|
+
this.clientConfig.serializationConfig
|
|
211
|
+
.dataSerializableFactoryConfigs[factory.factoryId] = this.parseImportConfig(factory);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
else if (key === 'portableFactories') {
|
|
215
|
+
for (var index in jsonObject[key]) {
|
|
216
|
+
var factory = jsonObject[key][index];
|
|
217
|
+
this.clientConfig.serializationConfig
|
|
218
|
+
.portableFactoryConfigs[factory.factoryId] = this.parseImportConfig(factory);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
else if (key === 'globalSerializer') {
|
|
222
|
+
var globalSerializer = jsonObject[key];
|
|
223
|
+
this.clientConfig.serializationConfig.globalSerializerConfig = this.parseImportConfig(globalSerializer);
|
|
224
|
+
}
|
|
225
|
+
else if (key === 'serializers') {
|
|
226
|
+
this.handleSerializers(jsonObject[key]);
|
|
227
|
+
}
|
|
228
|
+
else if (key === 'jsonStringDeserializationPolicy') {
|
|
229
|
+
this.clientConfig.serializationConfig
|
|
230
|
+
.jsonStringDeserializationPolicy = Util_1.tryGetEnum(JsonStringDeserializationPolicy_1.JsonStringDeserializationPolicy, jsonObject[key]);
|
|
231
|
+
}
|
|
232
|
+
else if (key === 'stringSerializationPolicy') {
|
|
233
|
+
this.clientConfig.serializationConfig
|
|
234
|
+
.stringSerializationPolicy = Util_1.tryGetEnum(StringSerializationPolicy_1.StringSerializationPolicy, jsonObject[key]);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
ConfigBuilder.prototype.handleSerializers = function (jsonObject) {
|
|
239
|
+
var serializersArray = Util_1.tryGetArray(jsonObject);
|
|
240
|
+
for (var index in serializersArray) {
|
|
241
|
+
var serializer = serializersArray[index];
|
|
242
|
+
this.clientConfig.serializationConfig.customSerializerConfigs[serializer.typeId] = this.parseImportConfig(serializer);
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
ConfigBuilder.prototype.handleNearCaches = function (jsonObject) {
|
|
246
|
+
var nearCachesArray = Util_1.tryGetArray(jsonObject);
|
|
247
|
+
for (var index in nearCachesArray) {
|
|
248
|
+
var ncConfig = nearCachesArray[index];
|
|
249
|
+
var nearCacheConfig = new NearCacheConfig_1.NearCacheConfig();
|
|
250
|
+
for (var name in ncConfig) {
|
|
251
|
+
if (name === 'name') {
|
|
252
|
+
nearCacheConfig.name = Util_1.tryGetString(ncConfig[name]);
|
|
253
|
+
}
|
|
254
|
+
else if (name === 'invalidateOnChange') {
|
|
255
|
+
nearCacheConfig.invalidateOnChange = Util_1.tryGetBoolean(ncConfig[name]);
|
|
256
|
+
}
|
|
257
|
+
else if (name === 'maxIdleSeconds') {
|
|
258
|
+
nearCacheConfig.maxIdleSeconds = Util_1.tryGetNumber(ncConfig[name]);
|
|
259
|
+
}
|
|
260
|
+
else if (name === 'inMemoryFormat') {
|
|
261
|
+
nearCacheConfig.inMemoryFormat = Util_1.tryGetEnum(InMemoryFormat_1.InMemoryFormat, ncConfig[name]);
|
|
262
|
+
}
|
|
263
|
+
else if (name === 'timeToLiveSeconds') {
|
|
264
|
+
nearCacheConfig.timeToLiveSeconds = Util_1.tryGetNumber(ncConfig[name]);
|
|
265
|
+
}
|
|
266
|
+
else if (name === 'evictionPolicy') {
|
|
267
|
+
nearCacheConfig.evictionPolicy = Util_1.tryGetEnum(EvictionPolicy_1.EvictionPolicy, ncConfig[name]);
|
|
268
|
+
}
|
|
269
|
+
else if (name === 'evictionMaxSize') {
|
|
270
|
+
nearCacheConfig.evictionMaxSize = Util_1.tryGetNumber(ncConfig[name]);
|
|
271
|
+
}
|
|
272
|
+
else if (name === 'evictionSamplingCount') {
|
|
273
|
+
nearCacheConfig.evictionSamplingCount = Util_1.tryGetNumber(ncConfig[name]);
|
|
274
|
+
}
|
|
275
|
+
else if (name === 'evictionSamplingPoolSize') {
|
|
276
|
+
nearCacheConfig.evictionSamplingPoolSize = Util_1.tryGetNumber(ncConfig[name]);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
this.clientConfig.nearCacheConfigs[nearCacheConfig.name] = nearCacheConfig;
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
ConfigBuilder.prototype.handleReliableTopics = function (jsonObject) {
|
|
283
|
+
var rtConfigsArray = Util_1.tryGetArray(jsonObject);
|
|
284
|
+
for (var index in rtConfigsArray) {
|
|
285
|
+
var jsonRtCfg = rtConfigsArray[index];
|
|
286
|
+
var reliableTopicConfig = new ReliableTopicConfig_1.ReliableTopicConfig();
|
|
287
|
+
for (var name in jsonRtCfg) {
|
|
288
|
+
if (name === 'name') {
|
|
289
|
+
reliableTopicConfig.name = jsonRtCfg[name];
|
|
290
|
+
}
|
|
291
|
+
else if (name === 'readBatchSize') {
|
|
292
|
+
reliableTopicConfig.readBatchSize = jsonRtCfg[name];
|
|
293
|
+
}
|
|
294
|
+
else if (name === 'overloadPolicy') {
|
|
295
|
+
reliableTopicConfig.overloadPolicy = Util_1.tryGetEnum(TopicOverloadPolicy_1.TopicOverloadPolicy, jsonRtCfg[name]);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
this.clientConfig.reliableTopicConfigs[reliableTopicConfig.name] = reliableTopicConfig;
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
ConfigBuilder.prototype.handleFlakeIds = function (jsonObject) {
|
|
302
|
+
var flakeIdsArray = Util_1.tryGetArray(jsonObject);
|
|
303
|
+
for (var index in flakeIdsArray) {
|
|
304
|
+
var fidConfig = flakeIdsArray[index];
|
|
305
|
+
var flakeIdConfig = new FlakeIdGeneratorConfig_1.FlakeIdGeneratorConfig();
|
|
306
|
+
for (var name in fidConfig) {
|
|
307
|
+
if (name === 'name') {
|
|
308
|
+
flakeIdConfig.name = Util_1.tryGetString(fidConfig[name]);
|
|
309
|
+
}
|
|
310
|
+
else if (name === 'prefetchCount') {
|
|
311
|
+
flakeIdConfig.prefetchCount = Util_1.tryGetNumber(fidConfig[name]);
|
|
312
|
+
}
|
|
313
|
+
else if (name === 'prefetchValidityMillis') {
|
|
314
|
+
flakeIdConfig.prefetchValidityMillis = Util_1.tryGetNumber(fidConfig[name]);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
this.clientConfig.flakeIdGeneratorConfigs[flakeIdConfig.name] = flakeIdConfig;
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
return ConfigBuilder;
|
|
321
|
+
}());
|
|
322
|
+
exports.ConfigBuilder = ConfigBuilder;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class ConfigPatternMatcher {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param configPatterns
|
|
5
|
+
* @param itemName
|
|
6
|
+
* @throws
|
|
7
|
+
* @returns `null` if there is no matching pattern
|
|
8
|
+
* the best matching pattern otherwis
|
|
9
|
+
*/
|
|
10
|
+
matches(configPatterns: string[], itemName: string): string;
|
|
11
|
+
getMatchingPoint(pattern: string, itemName: string): number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 ConfigPatternMatcher = /** @class */ (function () {
|
|
20
|
+
function ConfigPatternMatcher() {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param configPatterns
|
|
25
|
+
* @param itemName
|
|
26
|
+
* @throws
|
|
27
|
+
* @returns `null` if there is no matching pattern
|
|
28
|
+
* the best matching pattern otherwis
|
|
29
|
+
*/
|
|
30
|
+
ConfigPatternMatcher.prototype.matches = function (configPatterns, itemName) {
|
|
31
|
+
var _this = this;
|
|
32
|
+
var bestMatchingPoint = -1;
|
|
33
|
+
var matchingPattern = null;
|
|
34
|
+
var duplicatePattern = null;
|
|
35
|
+
configPatterns.forEach(function (pattern) {
|
|
36
|
+
var currentPoint = _this.getMatchingPoint(pattern, itemName);
|
|
37
|
+
if (currentPoint > bestMatchingPoint) {
|
|
38
|
+
bestMatchingPoint = currentPoint;
|
|
39
|
+
matchingPattern = pattern;
|
|
40
|
+
duplicatePattern = null;
|
|
41
|
+
}
|
|
42
|
+
else if (currentPoint === bestMatchingPoint && matchingPattern != null) {
|
|
43
|
+
duplicatePattern = matchingPattern;
|
|
44
|
+
matchingPattern = pattern;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
if (duplicatePattern != null) {
|
|
48
|
+
throw new HazelcastError_1.ConfigurationError('Found ambiguous configurations for item ' + itemName + ': "' + matchingPattern +
|
|
49
|
+
'" vs "' + duplicatePattern + '". Please specify your configuration.');
|
|
50
|
+
}
|
|
51
|
+
return matchingPattern;
|
|
52
|
+
};
|
|
53
|
+
ConfigPatternMatcher.prototype.getMatchingPoint = function (pattern, itemName) {
|
|
54
|
+
var index = pattern.indexOf('*');
|
|
55
|
+
if (index === -1) {
|
|
56
|
+
return -1;
|
|
57
|
+
}
|
|
58
|
+
var firstPart = pattern.substring(0, index);
|
|
59
|
+
if (!itemName.startsWith(firstPart)) {
|
|
60
|
+
return -1;
|
|
61
|
+
}
|
|
62
|
+
var secondPart = pattern.substring(index + 1);
|
|
63
|
+
if (!itemName.endsWith(secondPart)) {
|
|
64
|
+
return -1;
|
|
65
|
+
}
|
|
66
|
+
return firstPart.length + secondPart.length;
|
|
67
|
+
};
|
|
68
|
+
return ConfigPatternMatcher;
|
|
69
|
+
}());
|
|
70
|
+
exports.ConfigPatternMatcher = ConfigPatternMatcher;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
19
|
+
* Represents the format that objects are kept in this client's memory.
|
|
20
|
+
*/
|
|
21
|
+
var EvictionPolicy;
|
|
22
|
+
(function (EvictionPolicy) {
|
|
23
|
+
EvictionPolicy[EvictionPolicy["NONE"] = 0] = "NONE";
|
|
24
|
+
EvictionPolicy[EvictionPolicy["LRU"] = 1] = "LRU";
|
|
25
|
+
EvictionPolicy[EvictionPolicy["LFU"] = 2] = "LFU";
|
|
26
|
+
EvictionPolicy[EvictionPolicy["RANDOM"] = 3] = "RANDOM";
|
|
27
|
+
})(EvictionPolicy = exports.EvictionPolicy || (exports.EvictionPolicy = {}));
|