@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,149 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
/// <reference types="bluebird" />
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import { EntryListener } from '../core/EntryListener';
|
|
5
|
+
import { Predicate } from '../core/Predicate';
|
|
6
|
+
import { ReadOnlyLazyList } from '../core/ReadOnlyLazyList';
|
|
7
|
+
import { DistributedObject } from '../DistributedObject';
|
|
8
|
+
import { ArrayComparator } from '../util/ArrayComparator';
|
|
9
|
+
import Long = require('long');
|
|
10
|
+
export interface ReplicatedMap<K, V> extends DistributedObject {
|
|
11
|
+
/**
|
|
12
|
+
* Associates a given value to the specified key and replicates it to the
|
|
13
|
+
* cluster. If there is an old value, it will be replaced by the specified
|
|
14
|
+
* one and returned from the call.
|
|
15
|
+
*
|
|
16
|
+
* @param key key with which the specified value is to be associated.
|
|
17
|
+
* @param value value to be associated with the specified key.
|
|
18
|
+
* @param ttl milliseconds to be associated with the specified key-value pair.
|
|
19
|
+
* @return old value if there was any, `null` otherwise.
|
|
20
|
+
*/
|
|
21
|
+
put(key: K, value: V, ttl?: Long | number): Promise<V>;
|
|
22
|
+
/**
|
|
23
|
+
* The clear operation wipes data out of the replicated maps.
|
|
24
|
+
* If some node fails on executing the operation, it is retried for at most
|
|
25
|
+
* 5 times (on the failing nodes only).
|
|
26
|
+
* @return
|
|
27
|
+
*/
|
|
28
|
+
clear(): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the value to which the specified key is mapped, or null if this map
|
|
31
|
+
* contains no mapping for the key.
|
|
32
|
+
*
|
|
33
|
+
* If this map permits null values, then a return value of null does not
|
|
34
|
+
* necessarily indicate that the map contains no mapping for the key; it's also
|
|
35
|
+
* possible that the map explicitly maps the key to null. The #containsKey
|
|
36
|
+
* operation may be used to distinguish these two cases. This message is
|
|
37
|
+
* idempotent.
|
|
38
|
+
*
|
|
39
|
+
* @param key key to search for.
|
|
40
|
+
* @return value associated with the specified key.
|
|
41
|
+
*/
|
|
42
|
+
get(key: K): Promise<V>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if this map contains a mapping for the specified key. This message is idempotent.
|
|
45
|
+
*
|
|
46
|
+
* @param key key to search for.
|
|
47
|
+
* @return `true` if this map contains the specified key, `false` otherwise.
|
|
48
|
+
*/
|
|
49
|
+
containsKey(key: K): Promise<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if this map maps one or more keys to the specified value.
|
|
52
|
+
*
|
|
53
|
+
* @param value value to search for.
|
|
54
|
+
* @return `true` if the specified value is associated with at least one key.
|
|
55
|
+
*/
|
|
56
|
+
containsValue(value: V): Promise<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* If the map contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
|
|
59
|
+
* @return Returns the number of key-value mappings in this map.
|
|
60
|
+
*/
|
|
61
|
+
size(): Promise<number>;
|
|
62
|
+
/**
|
|
63
|
+
* @return `true` if this map has no entries, `false` otherwise.
|
|
64
|
+
*/
|
|
65
|
+
isEmpty(): Promise<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Removes the mapping for a key from this map if it is present (optional operation).
|
|
68
|
+
* Returns the value to which this map previously associated the key,
|
|
69
|
+
* or null if the map contained no mapping for the key. If this map permits null values,
|
|
70
|
+
* then a return value of null does not necessarily indicate that the map contained
|
|
71
|
+
* no mapping for the key; it's also possible that the map explicitly mapped the key to null.
|
|
72
|
+
* The map will not contain a mapping for the specified key once the call returns.
|
|
73
|
+
*
|
|
74
|
+
* @param key key to remove.
|
|
75
|
+
* @return value associated with key, `null` if the key did not exist before.
|
|
76
|
+
*/
|
|
77
|
+
remove(key: K): Promise<V>;
|
|
78
|
+
/**
|
|
79
|
+
* Copies all of the mappings from the specified key-value pairs array to this map
|
|
80
|
+
* (optional operation).
|
|
81
|
+
* The effect of this call is equivalent to that of calling put(Object,Object)
|
|
82
|
+
* put(k, v) on this map once for each mapping from key k to value v in the specified
|
|
83
|
+
* map. The behavior of this operation is undefined if the specified map is modified
|
|
84
|
+
* while the operation is in progress
|
|
85
|
+
*
|
|
86
|
+
* @param pairs
|
|
87
|
+
* @return
|
|
88
|
+
*/
|
|
89
|
+
putAll(pairs: Array<[K, V]>): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Returns a view of the key contained in this map.
|
|
92
|
+
*
|
|
93
|
+
* @return keys of this map as an array.
|
|
94
|
+
*/
|
|
95
|
+
keySet(): Promise<K[]>;
|
|
96
|
+
/**
|
|
97
|
+
* @return a list of values contained in this map.
|
|
98
|
+
*/
|
|
99
|
+
values(comparator?: ArrayComparator<V>): Promise<ReadOnlyLazyList<V>>;
|
|
100
|
+
/**
|
|
101
|
+
* @return Returns entries as an array of key-value pairs.
|
|
102
|
+
*/
|
|
103
|
+
entrySet(): Promise<Array<[K, V]>>;
|
|
104
|
+
/**
|
|
105
|
+
* Adds an continuous entry listener for this map. The listener will be notified for
|
|
106
|
+
* map add/remove/update/evict events filtered by the given predicate.
|
|
107
|
+
*
|
|
108
|
+
* @param listener
|
|
109
|
+
* @param key
|
|
110
|
+
* @param predicate
|
|
111
|
+
* @param localOnly
|
|
112
|
+
* @return Registration id of the listener.
|
|
113
|
+
*/
|
|
114
|
+
addEntryListenerToKeyWithPredicate(listener: EntryListener<K, V>, key: K, predicate: Predicate): Promise<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Adds an continuous entry listener for this map. The listener will be notified for
|
|
117
|
+
* map add/remove/update/evict events filtered by the given predicate.
|
|
118
|
+
*
|
|
119
|
+
* @param listener
|
|
120
|
+
* @param predicate
|
|
121
|
+
* @return Registration id of the listener.
|
|
122
|
+
*/
|
|
123
|
+
addEntryListenerWithPredicate(listener: EntryListener<K, V>, predicate: Predicate): Promise<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Adds the specified entry listener for the specified key. The listener will be
|
|
126
|
+
* notified for all add/remove/update/evict events of the specified key only.
|
|
127
|
+
*
|
|
128
|
+
* @param listener
|
|
129
|
+
* @param key
|
|
130
|
+
* @return Registration id of the listener.
|
|
131
|
+
*/
|
|
132
|
+
addEntryListenerToKey(listener: EntryListener<K, V>, key: K): Promise<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Adds an entry listener for this map. The listener will be notified for all
|
|
135
|
+
* map add/remove/update/evict events.
|
|
136
|
+
*
|
|
137
|
+
* @param listener
|
|
138
|
+
* @return Registration id of the listener.
|
|
139
|
+
*/
|
|
140
|
+
addEntryListener(listener: EntryListener<K, V>): Promise<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Removes the specified entry listener. Returns silently if there was no such
|
|
143
|
+
* listener added before. This message is idempotent.
|
|
144
|
+
*
|
|
145
|
+
* @param listenerId
|
|
146
|
+
* @return `true` if remove operation is successful, `false` if unsuccessful or this listener did not exist.
|
|
147
|
+
*/
|
|
148
|
+
removeEntryListener(listenerId: string): Promise<boolean>;
|
|
149
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
/// <reference types="bluebird" />
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import { EntryListener } from '../core/EntryListener';
|
|
5
|
+
import { Predicate } from '../core/Predicate';
|
|
6
|
+
import { ReadOnlyLazyList } from '../core/ReadOnlyLazyList';
|
|
7
|
+
import { ArrayComparator } from '../util/ArrayComparator';
|
|
8
|
+
import { ReplicatedMap } from './ReplicatedMap';
|
|
9
|
+
import { PartitionSpecificProxy } from './PartitionSpecificProxy';
|
|
10
|
+
import Long = require('long');
|
|
11
|
+
export declare class ReplicatedMapProxy<K, V> extends PartitionSpecificProxy implements ReplicatedMap<K, V> {
|
|
12
|
+
put(key: K, value: V, ttl?: Long | number): Promise<V>;
|
|
13
|
+
clear(): Promise<void>;
|
|
14
|
+
get(key: K): Promise<V>;
|
|
15
|
+
containsKey(key: K): Promise<boolean>;
|
|
16
|
+
containsValue(value: V): Promise<boolean>;
|
|
17
|
+
size(): Promise<number>;
|
|
18
|
+
isEmpty(): Promise<boolean>;
|
|
19
|
+
remove(key: K): Promise<V>;
|
|
20
|
+
putAll(pairs: Array<[K, V]>): Promise<void>;
|
|
21
|
+
keySet(): Promise<K[]>;
|
|
22
|
+
values(comparator?: ArrayComparator<V>): Promise<ReadOnlyLazyList<V>>;
|
|
23
|
+
entrySet(): Promise<Array<[K, V]>>;
|
|
24
|
+
addEntryListenerToKeyWithPredicate(listener: EntryListener<K, V>, key: K, predicate: Predicate): Promise<string>;
|
|
25
|
+
addEntryListenerWithPredicate(listener: EntryListener<K, V>, predicate: Predicate): Promise<string>;
|
|
26
|
+
addEntryListenerToKey(listener: EntryListener<K, V>, key: K): Promise<string>;
|
|
27
|
+
addEntryListener(listener: EntryListener<K, V>): Promise<string>;
|
|
28
|
+
removeEntryListener(listenerId: string): Promise<boolean>;
|
|
29
|
+
private addEntryListenerInternal(listener, predicate, key);
|
|
30
|
+
private createEntryListener(name);
|
|
31
|
+
private createEntryListenerToKey(name, keyData);
|
|
32
|
+
private createEntryListenerWithPredicate(name, predicateData);
|
|
33
|
+
private createEntryListenerToKeyWithPredicate(name, keyData, predicateData);
|
|
34
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var __extends = (this && this.__extends) || (function () {
|
|
18
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
19
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
extendStatics(d, b);
|
|
23
|
+
function __() { this.constructor = d; }
|
|
24
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25
|
+
};
|
|
26
|
+
})();
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var ReplicatedMapAddEntryListenerCodec_1 = require("../codec/ReplicatedMapAddEntryListenerCodec");
|
|
29
|
+
var ReplicatedMapAddEntryListenerToKeyCodec_1 = require("../codec/ReplicatedMapAddEntryListenerToKeyCodec");
|
|
30
|
+
/* tslint:disable:max-line-length */
|
|
31
|
+
var ReplicatedMapAddEntryListenerToKeyWithPredicateCodec_1 = require("../codec/ReplicatedMapAddEntryListenerToKeyWithPredicateCodec");
|
|
32
|
+
var ReplicatedMapAddEntryListenerWithPredicateCodec_1 = require("../codec/ReplicatedMapAddEntryListenerWithPredicateCodec");
|
|
33
|
+
var ReplicatedMapClearCodec_1 = require("../codec/ReplicatedMapClearCodec");
|
|
34
|
+
var ReplicatedMapContainsKeyCodec_1 = require("../codec/ReplicatedMapContainsKeyCodec");
|
|
35
|
+
var ReplicatedMapContainsValueCodec_1 = require("../codec/ReplicatedMapContainsValueCodec");
|
|
36
|
+
var ReplicatedMapEntrySetCodec_1 = require("../codec/ReplicatedMapEntrySetCodec");
|
|
37
|
+
var ReplicatedMapGetCodec_1 = require("../codec/ReplicatedMapGetCodec");
|
|
38
|
+
var ReplicatedMapIsEmptyCodec_1 = require("../codec/ReplicatedMapIsEmptyCodec");
|
|
39
|
+
var ReplicatedMapKeySetCodec_1 = require("../codec/ReplicatedMapKeySetCodec");
|
|
40
|
+
var ReplicatedMapPutAllCodec_1 = require("../codec/ReplicatedMapPutAllCodec");
|
|
41
|
+
var ReplicatedMapPutCodec_1 = require("../codec/ReplicatedMapPutCodec");
|
|
42
|
+
var ReplicatedMapRemoveCodec_1 = require("../codec/ReplicatedMapRemoveCodec");
|
|
43
|
+
var ReplicatedMapRemoveEntryListenerCodec_1 = require("../codec/ReplicatedMapRemoveEntryListenerCodec");
|
|
44
|
+
var ReplicatedMapSizeCodec_1 = require("../codec/ReplicatedMapSizeCodec");
|
|
45
|
+
var ReplicatedMapValuesCodec_1 = require("../codec/ReplicatedMapValuesCodec");
|
|
46
|
+
var EventType_1 = require("../core/EventType");
|
|
47
|
+
var EntryListener_1 = require("../core/EntryListener");
|
|
48
|
+
var ReadOnlyLazyList_1 = require("../core/ReadOnlyLazyList");
|
|
49
|
+
var Util_1 = require("../Util");
|
|
50
|
+
var PartitionSpecificProxy_1 = require("./PartitionSpecificProxy");
|
|
51
|
+
var MapListener_1 = require("../core/MapListener");
|
|
52
|
+
var ReplicatedMapProxy = /** @class */ (function (_super) {
|
|
53
|
+
__extends(ReplicatedMapProxy, _super);
|
|
54
|
+
function ReplicatedMapProxy() {
|
|
55
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56
|
+
}
|
|
57
|
+
ReplicatedMapProxy.prototype.put = function (key, value, ttl) {
|
|
58
|
+
if (ttl === void 0) { ttl = 0; }
|
|
59
|
+
Util_1.assertNotNull(key);
|
|
60
|
+
Util_1.assertNotNull(value);
|
|
61
|
+
var valueData = this.toData(value);
|
|
62
|
+
var keyData = this.toData(key);
|
|
63
|
+
return this.encodeInvokeOnKey(ReplicatedMapPutCodec_1.ReplicatedMapPutCodec, keyData, keyData, valueData, ttl);
|
|
64
|
+
};
|
|
65
|
+
ReplicatedMapProxy.prototype.clear = function () {
|
|
66
|
+
return this.encodeInvokeOnRandomTarget(ReplicatedMapClearCodec_1.ReplicatedMapClearCodec);
|
|
67
|
+
};
|
|
68
|
+
ReplicatedMapProxy.prototype.get = function (key) {
|
|
69
|
+
Util_1.assertNotNull(key);
|
|
70
|
+
var keyData = this.toData(key);
|
|
71
|
+
return this.encodeInvokeOnKey(ReplicatedMapGetCodec_1.ReplicatedMapGetCodec, keyData, keyData);
|
|
72
|
+
};
|
|
73
|
+
ReplicatedMapProxy.prototype.containsKey = function (key) {
|
|
74
|
+
Util_1.assertNotNull(key);
|
|
75
|
+
var keyData = this.toData(key);
|
|
76
|
+
return this.encodeInvokeOnKey(ReplicatedMapContainsKeyCodec_1.ReplicatedMapContainsKeyCodec, keyData, keyData);
|
|
77
|
+
};
|
|
78
|
+
ReplicatedMapProxy.prototype.containsValue = function (value) {
|
|
79
|
+
Util_1.assertNotNull(value);
|
|
80
|
+
var valueData = this.toData(value);
|
|
81
|
+
return this.encodeInvoke(ReplicatedMapContainsValueCodec_1.ReplicatedMapContainsValueCodec, valueData);
|
|
82
|
+
};
|
|
83
|
+
ReplicatedMapProxy.prototype.size = function () {
|
|
84
|
+
return this.encodeInvoke(ReplicatedMapSizeCodec_1.ReplicatedMapSizeCodec);
|
|
85
|
+
};
|
|
86
|
+
ReplicatedMapProxy.prototype.isEmpty = function () {
|
|
87
|
+
return this.encodeInvoke(ReplicatedMapIsEmptyCodec_1.ReplicatedMapIsEmptyCodec);
|
|
88
|
+
};
|
|
89
|
+
ReplicatedMapProxy.prototype.remove = function (key) {
|
|
90
|
+
Util_1.assertNotNull(key);
|
|
91
|
+
var keyData = this.toData(key);
|
|
92
|
+
return this.encodeInvokeOnKey(ReplicatedMapRemoveCodec_1.ReplicatedMapRemoveCodec, keyData, keyData);
|
|
93
|
+
};
|
|
94
|
+
ReplicatedMapProxy.prototype.putAll = function (pairs) {
|
|
95
|
+
var pair;
|
|
96
|
+
var pairId;
|
|
97
|
+
var entries = [];
|
|
98
|
+
for (pairId in pairs) {
|
|
99
|
+
pair = pairs[pairId];
|
|
100
|
+
var keyData = this.toData(pair[0]);
|
|
101
|
+
var valueData = this.toData(pair[1]);
|
|
102
|
+
entries.push([keyData, valueData]);
|
|
103
|
+
}
|
|
104
|
+
return this.encodeInvokeOnRandomTarget(ReplicatedMapPutAllCodec_1.ReplicatedMapPutAllCodec, entries);
|
|
105
|
+
};
|
|
106
|
+
ReplicatedMapProxy.prototype.keySet = function () {
|
|
107
|
+
var toObject = this.toObject.bind(this);
|
|
108
|
+
return this.encodeInvoke(ReplicatedMapKeySetCodec_1.ReplicatedMapKeySetCodec).then(function (keySet) {
|
|
109
|
+
return keySet.map(toObject);
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
ReplicatedMapProxy.prototype.values = function (comparator) {
|
|
113
|
+
var _this = this;
|
|
114
|
+
var toObject = this.toObject.bind(this);
|
|
115
|
+
return this.encodeInvoke(ReplicatedMapValuesCodec_1.ReplicatedMapValuesCodec).then(function (valuesData) {
|
|
116
|
+
if (comparator) {
|
|
117
|
+
var desValues = valuesData.map(toObject);
|
|
118
|
+
return new ReadOnlyLazyList_1.ReadOnlyLazyList(desValues.sort(comparator), _this.client.getSerializationService());
|
|
119
|
+
}
|
|
120
|
+
return new ReadOnlyLazyList_1.ReadOnlyLazyList(valuesData, _this.client.getSerializationService());
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
ReplicatedMapProxy.prototype.entrySet = function () {
|
|
124
|
+
var toObject = this.toObject.bind(this);
|
|
125
|
+
return this.encodeInvoke(ReplicatedMapEntrySetCodec_1.ReplicatedMapEntrySetCodec).then(function (entrySet) {
|
|
126
|
+
return entrySet.map(function (entry) { return [toObject(entry[0]), toObject(entry[1])]; });
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
ReplicatedMapProxy.prototype.addEntryListenerToKeyWithPredicate = function (listener, key, predicate) {
|
|
130
|
+
return this.addEntryListenerInternal(listener, predicate, key);
|
|
131
|
+
};
|
|
132
|
+
ReplicatedMapProxy.prototype.addEntryListenerWithPredicate = function (listener, predicate) {
|
|
133
|
+
return this.addEntryListenerInternal(listener, predicate, undefined);
|
|
134
|
+
};
|
|
135
|
+
ReplicatedMapProxy.prototype.addEntryListenerToKey = function (listener, key) {
|
|
136
|
+
return this.addEntryListenerInternal(listener, undefined, key);
|
|
137
|
+
};
|
|
138
|
+
ReplicatedMapProxy.prototype.addEntryListener = function (listener) {
|
|
139
|
+
return this.addEntryListenerInternal(listener, undefined, undefined);
|
|
140
|
+
};
|
|
141
|
+
ReplicatedMapProxy.prototype.removeEntryListener = function (listenerId) {
|
|
142
|
+
return this.client.getListenerService().deregisterListener(listenerId);
|
|
143
|
+
};
|
|
144
|
+
ReplicatedMapProxy.prototype.addEntryListenerInternal = function (listener, predicate, key) {
|
|
145
|
+
var _this = this;
|
|
146
|
+
var toObject = this.toObject.bind(this);
|
|
147
|
+
/* tslint:disable-next-line:no-shadowed-variable */
|
|
148
|
+
var entryEventHandler = function (key, value, oldValue, mergingValue, event, uuid, numberOfAffectedEntries) {
|
|
149
|
+
var member = _this.client.getClusterService().getMember(uuid);
|
|
150
|
+
var name = _this.name;
|
|
151
|
+
key = toObject(key);
|
|
152
|
+
value = toObject(value);
|
|
153
|
+
oldValue = toObject(oldValue);
|
|
154
|
+
mergingValue = toObject(mergingValue);
|
|
155
|
+
var entryEvent = new EntryListener_1.EntryEvent(name, key, value, oldValue, mergingValue, member);
|
|
156
|
+
var mapEvent = new MapListener_1.MapEvent(name, numberOfAffectedEntries, member);
|
|
157
|
+
var entryEventToListenerMap = (_a = {},
|
|
158
|
+
_a[EventType_1.EventType.ADDED] = 'added',
|
|
159
|
+
_a[EventType_1.EventType.REMOVED] = 'removed',
|
|
160
|
+
_a[EventType_1.EventType.UPDATED] = 'updated',
|
|
161
|
+
_a[EventType_1.EventType.EVICTED] = 'evicted',
|
|
162
|
+
_a);
|
|
163
|
+
var mapEventToListenerMap = (_b = {},
|
|
164
|
+
_b[EventType_1.EventType.CLEAR_ALL] = 'mapCleared',
|
|
165
|
+
_b);
|
|
166
|
+
var entryEventMethod = entryEventToListenerMap[event];
|
|
167
|
+
var mapEventMethod = mapEventToListenerMap[event];
|
|
168
|
+
if (listener.hasOwnProperty(entryEventMethod)) {
|
|
169
|
+
listener[entryEventMethod].apply(null, [entryEvent]);
|
|
170
|
+
}
|
|
171
|
+
else if (listener.hasOwnProperty(mapEventMethod)) {
|
|
172
|
+
listener[mapEventMethod].apply(null, [mapEvent]);
|
|
173
|
+
}
|
|
174
|
+
var _a, _b;
|
|
175
|
+
};
|
|
176
|
+
var listenerHandler;
|
|
177
|
+
var codec;
|
|
178
|
+
if (key && predicate) {
|
|
179
|
+
var keyData = this.toData(key);
|
|
180
|
+
var predicateData = this.toData(predicate);
|
|
181
|
+
codec = this.createEntryListenerToKeyWithPredicate(this.name, keyData, predicateData);
|
|
182
|
+
listenerHandler = ReplicatedMapAddEntryListenerToKeyWithPredicateCodec_1.ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.handle;
|
|
183
|
+
}
|
|
184
|
+
else if (key && !predicate) {
|
|
185
|
+
var keyData = this.toData(key);
|
|
186
|
+
codec = this.createEntryListenerToKey(this.name, keyData);
|
|
187
|
+
listenerHandler = ReplicatedMapAddEntryListenerToKeyCodec_1.ReplicatedMapAddEntryListenerToKeyCodec.handle;
|
|
188
|
+
}
|
|
189
|
+
else if (!key && predicate) {
|
|
190
|
+
var predicateData = this.toData(predicate);
|
|
191
|
+
codec = this.createEntryListenerWithPredicate(this.name, predicateData);
|
|
192
|
+
listenerHandler = ReplicatedMapAddEntryListenerWithPredicateCodec_1.ReplicatedMapAddEntryListenerWithPredicateCodec.handle;
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
codec = this.createEntryListener(this.name);
|
|
196
|
+
listenerHandler = ReplicatedMapAddEntryListenerCodec_1.ReplicatedMapAddEntryListenerCodec.handle;
|
|
197
|
+
}
|
|
198
|
+
return this.client.getListenerService().registerListener(codec, function (m) {
|
|
199
|
+
listenerHandler(m, entryEventHandler, toObject);
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
ReplicatedMapProxy.prototype.createEntryListener = function (name) {
|
|
203
|
+
return {
|
|
204
|
+
encodeAddRequest: function (localOnly) {
|
|
205
|
+
return ReplicatedMapAddEntryListenerCodec_1.ReplicatedMapAddEntryListenerCodec.encodeRequest(name, localOnly);
|
|
206
|
+
},
|
|
207
|
+
decodeAddResponse: function (msg) {
|
|
208
|
+
return ReplicatedMapAddEntryListenerCodec_1.ReplicatedMapAddEntryListenerCodec.decodeResponse(msg).response;
|
|
209
|
+
},
|
|
210
|
+
encodeRemoveRequest: function (listenerId) {
|
|
211
|
+
return ReplicatedMapRemoveEntryListenerCodec_1.ReplicatedMapRemoveEntryListenerCodec.encodeRequest(name, listenerId);
|
|
212
|
+
},
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
ReplicatedMapProxy.prototype.createEntryListenerToKey = function (name, keyData) {
|
|
216
|
+
return {
|
|
217
|
+
encodeAddRequest: function (localOnly) {
|
|
218
|
+
return ReplicatedMapAddEntryListenerToKeyCodec_1.ReplicatedMapAddEntryListenerToKeyCodec.encodeRequest(name, keyData, localOnly);
|
|
219
|
+
},
|
|
220
|
+
decodeAddResponse: function (msg) {
|
|
221
|
+
return ReplicatedMapAddEntryListenerToKeyCodec_1.ReplicatedMapAddEntryListenerToKeyCodec.decodeResponse(msg).response;
|
|
222
|
+
},
|
|
223
|
+
encodeRemoveRequest: function (listenerId) {
|
|
224
|
+
return ReplicatedMapRemoveEntryListenerCodec_1.ReplicatedMapRemoveEntryListenerCodec.encodeRequest(name, listenerId);
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
ReplicatedMapProxy.prototype.createEntryListenerWithPredicate = function (name, predicateData) {
|
|
229
|
+
return {
|
|
230
|
+
encodeAddRequest: function (localOnly) {
|
|
231
|
+
return ReplicatedMapAddEntryListenerWithPredicateCodec_1.ReplicatedMapAddEntryListenerWithPredicateCodec.encodeRequest(name, predicateData, localOnly);
|
|
232
|
+
},
|
|
233
|
+
decodeAddResponse: function (msg) {
|
|
234
|
+
return ReplicatedMapAddEntryListenerWithPredicateCodec_1.ReplicatedMapAddEntryListenerWithPredicateCodec.decodeResponse(msg).response;
|
|
235
|
+
},
|
|
236
|
+
encodeRemoveRequest: function (listenerId) {
|
|
237
|
+
return ReplicatedMapRemoveEntryListenerCodec_1.ReplicatedMapRemoveEntryListenerCodec.encodeRequest(name, listenerId);
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
ReplicatedMapProxy.prototype.createEntryListenerToKeyWithPredicate = function (name, keyData, predicateData) {
|
|
242
|
+
return {
|
|
243
|
+
encodeAddRequest: function (localOnly) {
|
|
244
|
+
return ReplicatedMapAddEntryListenerToKeyWithPredicateCodec_1.ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.encodeRequest(name, keyData, predicateData, localOnly);
|
|
245
|
+
},
|
|
246
|
+
decodeAddResponse: function (msg) {
|
|
247
|
+
return ReplicatedMapAddEntryListenerToKeyWithPredicateCodec_1.ReplicatedMapAddEntryListenerToKeyWithPredicateCodec.decodeResponse(msg).response;
|
|
248
|
+
},
|
|
249
|
+
encodeRemoveRequest: function (listenerId) {
|
|
250
|
+
return ReplicatedMapRemoveEntryListenerCodec_1.ReplicatedMapRemoveEntryListenerCodec.encodeRequest(name, listenerId);
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
return ReplicatedMapProxy;
|
|
255
|
+
}(PartitionSpecificProxy_1.PartitionSpecificProxy));
|
|
256
|
+
exports.ReplicatedMapProxy = ReplicatedMapProxy;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
/// <reference types="long" />
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import * as Long from 'long';
|
|
5
|
+
import { OverflowPolicy } from '../core/OverflowPolicy';
|
|
6
|
+
import { DistributedObject } from '../DistributedObject';
|
|
7
|
+
import { ReadResultSet } from './ringbuffer/ReadResultSet';
|
|
8
|
+
export interface Ringbuffer<E> extends DistributedObject {
|
|
9
|
+
/**
|
|
10
|
+
* @return capacity of this ringbuffer.
|
|
11
|
+
*/
|
|
12
|
+
capacity(): Promise<Long>;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the number of the items in this ringbuffer.
|
|
15
|
+
*
|
|
16
|
+
* If time-to-live was NOT configured for this ringbuffer,
|
|
17
|
+
* the size will always be equal to the capacity after the first loop is completed
|
|
18
|
+
* around the ring. This is because no items are getting removed and are overwritten instead.
|
|
19
|
+
*
|
|
20
|
+
* @return size of this ringbuffer.
|
|
21
|
+
*/
|
|
22
|
+
size(): Promise<Long>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the tail sequence. The tail is the side of the ringbuffer at which the items are added.
|
|
25
|
+
*
|
|
26
|
+
* The initial value of the tail sequence is -1.
|
|
27
|
+
*
|
|
28
|
+
* @return tail sequence of this ringbuffer.
|
|
29
|
+
*/
|
|
30
|
+
tailSequence(): Promise<Long>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the head sequence. The head is the side of the ringbuffer where the oldest items are found.
|
|
33
|
+
*
|
|
34
|
+
* If the ringbuffer is empty, the head will be one more than the tail.
|
|
35
|
+
*
|
|
36
|
+
* The initial value of the head is 0.
|
|
37
|
+
* @return head sequence of this ringbuffer.
|
|
38
|
+
*/
|
|
39
|
+
headSequence(): Promise<Long>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the remaining capacity of this ringbuffer.
|
|
42
|
+
*
|
|
43
|
+
* The returned value could be stale as soon as it is returned.
|
|
44
|
+
*
|
|
45
|
+
* If the time-to-live was NOT set in the configuration,
|
|
46
|
+
* the remaining capacity will always be equal to the capacity.
|
|
47
|
+
* @return remaining capacity of this ringbuffer.
|
|
48
|
+
*/
|
|
49
|
+
remainingCapacity(): Promise<Long>;
|
|
50
|
+
/**
|
|
51
|
+
* Adds an item to the tail of this ringbuffer. Overflow policy determines what will happen
|
|
52
|
+
* if there is no space left in this ringbuffer. If `OVERWRITE` was passed,
|
|
53
|
+
* the new item will overwrite the oldest one regardless of the configured time-to-live.
|
|
54
|
+
*
|
|
55
|
+
* In the case when FAIL was specified the add operation will keep failing until an oldest item in this
|
|
56
|
+
* ringbuffer will reach its time-to-live.
|
|
57
|
+
*
|
|
58
|
+
* The returned value is the sequence number of the added item. You can read the added item using this number.
|
|
59
|
+
*
|
|
60
|
+
* @param item the item to add.
|
|
61
|
+
* @param overflowPolicy overflow policy to be used.
|
|
62
|
+
* @return the sequence of the added item or -1 if the insert did not succeed.
|
|
63
|
+
*/
|
|
64
|
+
add(item: E, overflowPolicy?: OverflowPolicy): Promise<Long>;
|
|
65
|
+
/**
|
|
66
|
+
* Adds all items in the specified array to the tail of this buffer. The behavior of this method is essentially
|
|
67
|
+
* the same as the one of the `add` method.
|
|
68
|
+
*
|
|
69
|
+
* The method does not guarantee that the inserted items will have contiguous sequence numbers.
|
|
70
|
+
* @param items items to be added
|
|
71
|
+
* @param overflowPolicy overflow policy to be used
|
|
72
|
+
* @return the sequence number of the last written item from the specified array
|
|
73
|
+
*/
|
|
74
|
+
addAll(items: E[], overflowPolicy?: OverflowPolicy): Promise<Long>;
|
|
75
|
+
/**
|
|
76
|
+
* Reads a single item from this ringbuffer.
|
|
77
|
+
*
|
|
78
|
+
* If the sequence is equal to the current tail sequence plus one,
|
|
79
|
+
* this call will not return a response until an item is added.
|
|
80
|
+
* If it is more than that, an error will be thrown.
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* Unlike queue's `take`, this method does not remove an item from the ringbuffer. This means that the same item
|
|
84
|
+
* can be read by multiple processes.
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @param sequence the sequence number of the item to read.
|
|
88
|
+
* @return the item that was read.
|
|
89
|
+
* @throws `RangeError` if the sequence is:
|
|
90
|
+
* smaller then zero;
|
|
91
|
+
* smaller than {@link #headSequence()};
|
|
92
|
+
* more than {@link #tailSequence()} + 1
|
|
93
|
+
*/
|
|
94
|
+
readOne(sequence: number | Long): Promise<E>;
|
|
95
|
+
/**
|
|
96
|
+
* Reads a batch of items from this ringbuffer.
|
|
97
|
+
* If the number of available items starting at `sequence` is smaller than `maxCount`,
|
|
98
|
+
* then this method will not wait for more items to arrive.
|
|
99
|
+
* Instead, available items will be returned.
|
|
100
|
+
*
|
|
101
|
+
* If there are less items available than `minCount`, then this call will not return a response until
|
|
102
|
+
* a necessary number of items becomes available.
|
|
103
|
+
*
|
|
104
|
+
* @param sequence sequence number of the first item to be read.
|
|
105
|
+
* @param minCount minimum number of items to be read.
|
|
106
|
+
* @param maxCount maximum number of items to be read.
|
|
107
|
+
* @throws `RangeError` if startSequence is smaller than 0
|
|
108
|
+
* or if startSequence larger than {@link #tailSequence()}
|
|
109
|
+
* or if minCount smaller than 0
|
|
110
|
+
* or if minCount larger than maxCount,
|
|
111
|
+
* or if maxCount larger than the capacity of the ringbuffer
|
|
112
|
+
* or if maxCount larger than 1000 (to prevent overload)
|
|
113
|
+
*/
|
|
114
|
+
readMany(sequence: number | Long, minCount: number, maxCount: number): Promise<ReadResultSet<E>>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
/// <reference types="long" />
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import { ISemaphore } from './ISemaphore';
|
|
5
|
+
import { PartitionSpecificProxy } from './PartitionSpecificProxy';
|
|
6
|
+
import Long = require('long');
|
|
7
|
+
export declare class SemaphoreProxy extends PartitionSpecificProxy implements ISemaphore {
|
|
8
|
+
init(permits: number): Promise<boolean>;
|
|
9
|
+
acquire(permits?: number): Promise<void>;
|
|
10
|
+
availablePermits(): Promise<number>;
|
|
11
|
+
drainPermits(): Promise<number>;
|
|
12
|
+
reducePermits(reduction: number): Promise<void>;
|
|
13
|
+
release(permits?: number): Promise<void>;
|
|
14
|
+
tryAcquire(permits: number, timeout?: Long | number): Promise<boolean>;
|
|
15
|
+
}
|