@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,328 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import * as Promise from 'bluebird';
|
|
3
|
+
import { Aggregator } from '../aggregation/Aggregator';
|
|
4
|
+
import { EntryView } from '../core/EntryView';
|
|
5
|
+
import { MapListener } from '../core/MapListener';
|
|
6
|
+
import { Predicate } from '../core/Predicate';
|
|
7
|
+
import { ReadOnlyLazyList } from '../core/ReadOnlyLazyList';
|
|
8
|
+
import { DistributedObject } from '../DistributedObject';
|
|
9
|
+
import { IdentifiedDataSerializable, Portable } from '../serialization/Serializable';
|
|
10
|
+
export interface IMap<K, V> extends DistributedObject {
|
|
11
|
+
/**
|
|
12
|
+
* Applies the aggregation logic on all map entries and returns the result
|
|
13
|
+
* <p>
|
|
14
|
+
* Fast-Aggregations are the successor of the Map-Reduce Aggregators.
|
|
15
|
+
* They are equivalent to the Map-Reduce Aggregators in most of the use-cases, but instead of running on the Map-Reduce
|
|
16
|
+
* engine they run on the Query infrastructure. Their performance is tens to hundreds times better due to the fact
|
|
17
|
+
* that they run in parallel for each partition and are highly optimized for speed and low memory consumption.
|
|
18
|
+
*
|
|
19
|
+
* @requires Hazelcast 3.8
|
|
20
|
+
* @param aggregator aggregator to aggregate the entries with
|
|
21
|
+
* @param <R> type of the result
|
|
22
|
+
* @return the result of the given type
|
|
23
|
+
*/
|
|
24
|
+
aggregate<R>(aggregator: Aggregator<R>): Promise<R>;
|
|
25
|
+
/**
|
|
26
|
+
* Applies the aggregation logic on map entries filtered with the Predicated and returns the result
|
|
27
|
+
* <p>
|
|
28
|
+
* Fast-Aggregations are the successor of the Map-Reduce Aggregators.
|
|
29
|
+
* They are equivalent to the Map-Reduce Aggregators in most of the use-cases, but instead of running on the Map-Reduce
|
|
30
|
+
* engine they run on the Query infrastructure. Their performance is tens to hundreds times better due to the fact
|
|
31
|
+
* that they run in parallel for each partition and are highly optimized for speed and low memory consumption.
|
|
32
|
+
*
|
|
33
|
+
* @requires Hazelcast 3.8
|
|
34
|
+
* @param aggregator aggregator to aggregate the entries with
|
|
35
|
+
* @param predicate predicate to filter the entries with
|
|
36
|
+
* @param <R> type of the result
|
|
37
|
+
* @return the result of the given type
|
|
38
|
+
*/
|
|
39
|
+
aggregateWithPredicate<R>(aggregator: Aggregator<R>, predicate: Predicate): Promise<R>;
|
|
40
|
+
/**
|
|
41
|
+
* Adds an index to this map for the specified entries so that queries can run faster.
|
|
42
|
+
* @param attribute index attribute of value
|
|
43
|
+
* @param ordered `true` if index should be ordered, `false` otherwise.
|
|
44
|
+
*/
|
|
45
|
+
addIndex(attribute: string, ordered: boolean): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* This method checks whether the map has an item asssociated with key
|
|
48
|
+
* @param key
|
|
49
|
+
* @throws {RangeError} if key is undefined or null
|
|
50
|
+
* @return `true` if the map contains the key, `false` otherwise.
|
|
51
|
+
*/
|
|
52
|
+
containsKey(key: K): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* This method return true if this map has key(s) associated with given value
|
|
55
|
+
* @param value
|
|
56
|
+
* @throws {RangeError} if value is undefined or null
|
|
57
|
+
* @return `true` if the map has key or keys associated with given value.
|
|
58
|
+
*/
|
|
59
|
+
containsValue(value: V): Promise<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Associates the specified value with the specified key.
|
|
62
|
+
* If key was associated with another value, it replaces the old value.
|
|
63
|
+
* If specified, value is evicted after ttl seconds.
|
|
64
|
+
* @param key
|
|
65
|
+
* @param value
|
|
66
|
+
* @param ttl Time to live in milliseconds. 0 means infinite.
|
|
67
|
+
* If ttl is not an integer, it is rounded up to the nearest integer value.
|
|
68
|
+
* @throws {RangeError} if specified key or value is undefined or null or ttl is negative.
|
|
69
|
+
* @return old value if there was any, `undefined` otherwise.
|
|
70
|
+
*/
|
|
71
|
+
put(key: K, value: V, ttl?: number): Promise<V>;
|
|
72
|
+
/**
|
|
73
|
+
* Puts all key value pairs from this array to the map as key -> value mappings.
|
|
74
|
+
* @param pairs
|
|
75
|
+
*/
|
|
76
|
+
putAll(pairs: Array<[K, V]>): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Retrieves the value associated with given key.
|
|
79
|
+
* @param key
|
|
80
|
+
* @throws {RangeError} if key is undefined or null
|
|
81
|
+
* @return value associated with key, undefined if the key does not exist.
|
|
82
|
+
*/
|
|
83
|
+
get(key: K): Promise<V>;
|
|
84
|
+
/**
|
|
85
|
+
* Retrieves key value pairs of given keys.
|
|
86
|
+
* @param keys the array of keys
|
|
87
|
+
*/
|
|
88
|
+
getAll(keys: K[]): Promise<Array<[K, V]>>;
|
|
89
|
+
/**
|
|
90
|
+
* Removes specified key from map. If optional value is specified, the key is removed only if currently mapped to
|
|
91
|
+
* given value.
|
|
92
|
+
* Note that serialized version of value is used in comparison.
|
|
93
|
+
* @param key
|
|
94
|
+
* @param value
|
|
95
|
+
* @throws {RangeError} if key is undefined or null
|
|
96
|
+
* @return value associated with key, `undefined` if the key did not exist before.
|
|
97
|
+
*/
|
|
98
|
+
remove(key: K, value?: V): Promise<V>;
|
|
99
|
+
/**
|
|
100
|
+
* Removes specified key from map. Unlike {@link remove} this method does not return deleted value.
|
|
101
|
+
* Therefore it eliminates deserialization cost of returned value.
|
|
102
|
+
* @throws {RangeError} if key is null or undefined.
|
|
103
|
+
* @param key
|
|
104
|
+
*/
|
|
105
|
+
delete(key: K): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves the number of elements in map
|
|
108
|
+
* @return number of elements in map
|
|
109
|
+
*/
|
|
110
|
+
size(): Promise<number>;
|
|
111
|
+
/**
|
|
112
|
+
* Removes all of the mappings
|
|
113
|
+
* @return
|
|
114
|
+
*/
|
|
115
|
+
clear(): Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* Returns whether this map is empty or not
|
|
118
|
+
*/
|
|
119
|
+
isEmpty(): Promise<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Returns entries as an array of key-value pairs.
|
|
122
|
+
*/
|
|
123
|
+
entrySet(): Promise<Array<[K, V]>>;
|
|
124
|
+
/**
|
|
125
|
+
* Queries the map based on the specified predicate and returns matching entries.
|
|
126
|
+
* Specified predicate runs on all members in parallel.
|
|
127
|
+
* @param predicate specified query criteria.
|
|
128
|
+
* @return result entry set of the query.
|
|
129
|
+
*/
|
|
130
|
+
entrySetWithPredicate(predicate: Predicate): Promise<Array<[K, V]>>;
|
|
131
|
+
/**
|
|
132
|
+
* Evicts the specified key from this map.
|
|
133
|
+
* @throws {RangeError} if key is null or undefined.
|
|
134
|
+
* @param key
|
|
135
|
+
*/
|
|
136
|
+
evict(key: K): Promise<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* Evicts all keys from this map.
|
|
139
|
+
*/
|
|
140
|
+
evictAll(): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* If this map has a MapStore, this method flushes all local dirty entries.
|
|
143
|
+
*/
|
|
144
|
+
flush(): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Releases the lock for the specified key regardless of the owner.
|
|
147
|
+
* It always unlocks the key.
|
|
148
|
+
* @throws {RangeError} if key is null or undefined.
|
|
149
|
+
* @param key
|
|
150
|
+
*/
|
|
151
|
+
forceUnlock(key: K): Promise<void>;
|
|
152
|
+
/**
|
|
153
|
+
* Checks whether given key is locked.
|
|
154
|
+
* @param key
|
|
155
|
+
* @throws {RangeError} if key is null or undefined.
|
|
156
|
+
* @return `true` if key is locked, `false` otherwise
|
|
157
|
+
*/
|
|
158
|
+
isLocked(key: K): Promise<boolean>;
|
|
159
|
+
/**
|
|
160
|
+
* Locks the given key for this map. Promise is resolved when lock is successfully acquired.
|
|
161
|
+
* This means it may never be resolved if some other process holds the lock and does not unlock it.
|
|
162
|
+
* A lock may be acquired on non-existent keys. Other processes wait on non-existent key.
|
|
163
|
+
* When this client puts the non-existent key, it is allowed to do that.
|
|
164
|
+
* Locks are re-entrant meaning that if lock is taken N times, it should be released N times.
|
|
165
|
+
* @param key
|
|
166
|
+
* @param ttl lock is automatically unlocked after `ttl` milliseconds.
|
|
167
|
+
* @throws {RangeError} if key is null or undefined.
|
|
168
|
+
*/
|
|
169
|
+
lock(key: K, ttl?: number): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* Returns the keys of this map as an array.
|
|
172
|
+
*/
|
|
173
|
+
keySet(): Promise<K[]>;
|
|
174
|
+
/**
|
|
175
|
+
* Queries the map based on the specified predicate and returns the keys of matching entries.
|
|
176
|
+
* @param predicate
|
|
177
|
+
*/
|
|
178
|
+
keySetWithPredicate(predicate: Predicate): Promise<K[]>;
|
|
179
|
+
/**
|
|
180
|
+
* Loads keys to the store.
|
|
181
|
+
* @param keys loads only given keys if set.
|
|
182
|
+
* @param replaceExistingValues if `true` existing keys will be replaced by newly loaded keys.
|
|
183
|
+
*/
|
|
184
|
+
loadAll(keys?: K[], replaceExistingValues?: boolean): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* Puts specified key value association if it was not present before.
|
|
187
|
+
* @param key
|
|
188
|
+
* @param value
|
|
189
|
+
* @param ttl if set, key will be evicted automatically after `ttl` milliseconds.
|
|
190
|
+
* @throws {RangeError} if key or value is null or undefined.
|
|
191
|
+
* @return old value of the entry.
|
|
192
|
+
*/
|
|
193
|
+
putIfAbsent(key: K, value: V, ttl?: number): Promise<V>;
|
|
194
|
+
/**
|
|
195
|
+
* Same as {@link put} except it does not call underlying MapStore.
|
|
196
|
+
* @param key
|
|
197
|
+
* @param value
|
|
198
|
+
* @param ttl
|
|
199
|
+
* @throws {RangeError} if key or value is null or undefined.
|
|
200
|
+
*/
|
|
201
|
+
putTransient(key: K, value: V, ttl?: number): Promise<void>;
|
|
202
|
+
/**
|
|
203
|
+
* Replaces value of the key if only it was associated to `oldValue`.
|
|
204
|
+
* @param key
|
|
205
|
+
* @param value
|
|
206
|
+
* @param oldValue
|
|
207
|
+
* @throws {RangeError} if key, oldValue or newValue is null or undefined.
|
|
208
|
+
* @return `true` if the value was replaced.
|
|
209
|
+
*/
|
|
210
|
+
replaceIfSame(key: K, oldValue: V, newValue: V): Promise<boolean>;
|
|
211
|
+
/**
|
|
212
|
+
* Replaces value of given key with `newValue`.
|
|
213
|
+
* @param key
|
|
214
|
+
* @param newValue
|
|
215
|
+
* @throws {RangeError} if key or newValue is null or undefined.
|
|
216
|
+
* @return previous value
|
|
217
|
+
*/
|
|
218
|
+
replace(key: K, newValue: V): Promise<V>;
|
|
219
|
+
/**
|
|
220
|
+
* Similar to {@link put} except it does not return the old value.
|
|
221
|
+
* @param key
|
|
222
|
+
* @param value
|
|
223
|
+
* @param ttl
|
|
224
|
+
* @throws {RangeError} if key or value is null or undefined.
|
|
225
|
+
*/
|
|
226
|
+
set(key: K, value: V, ttl?: number): Promise<void>;
|
|
227
|
+
/**
|
|
228
|
+
* Releases the lock for this key.
|
|
229
|
+
* If this client holds the lock, hold count is decremented.
|
|
230
|
+
* If hold count is zero, lock is released.
|
|
231
|
+
* @throws {RangeError} if this client is not the owner of the key.
|
|
232
|
+
* @param key
|
|
233
|
+
*/
|
|
234
|
+
unlock(key: K): Promise<void>;
|
|
235
|
+
/**
|
|
236
|
+
* Returns a list of values contained in this map.
|
|
237
|
+
*/
|
|
238
|
+
values(): Promise<ReadOnlyLazyList<V>>;
|
|
239
|
+
/**
|
|
240
|
+
* Queries the map based on the specified predicate and returns the values of matching entries.
|
|
241
|
+
* Specified predicate runs on all members in parallel.
|
|
242
|
+
* @param predicate
|
|
243
|
+
* @return a list of values that satisfies the given predicate.
|
|
244
|
+
*/
|
|
245
|
+
valuesWithPredicate(predicate: Predicate): Promise<ReadOnlyLazyList<V>>;
|
|
246
|
+
/**
|
|
247
|
+
* Returns a key-value pair representing the association of given key
|
|
248
|
+
* @param key
|
|
249
|
+
* @throws {RangeError} if key is null or undefined.
|
|
250
|
+
*/
|
|
251
|
+
getEntryView(key: K): Promise<EntryView<K, V>>;
|
|
252
|
+
/**
|
|
253
|
+
* Tries to acquire the lock for the specified key.
|
|
254
|
+
* If lock is not available, server immediately responds with {false}
|
|
255
|
+
* @param key
|
|
256
|
+
* @param timeout Server waits for `timeout` milliseconds to acquire the lock before giving up.
|
|
257
|
+
* @param lease lock is automatically release after `lease` milliseconds.
|
|
258
|
+
* @throws {RangeError} if key is null or undefined.
|
|
259
|
+
*/
|
|
260
|
+
tryLock(key: K, timeout?: number, lease?: number): Promise<boolean>;
|
|
261
|
+
/**
|
|
262
|
+
* Tries to put specified key value pair into map. If this method returns
|
|
263
|
+
* false, it indicates that caller thread was not able to acquire the lock for
|
|
264
|
+
* given key in `timeout` milliseconds.
|
|
265
|
+
* @param key
|
|
266
|
+
* @param value
|
|
267
|
+
* @param timeout
|
|
268
|
+
* @throws {RangeError} if key or value is null or undefined.
|
|
269
|
+
*/
|
|
270
|
+
tryPut(key: K, value: V, timeout: number): Promise<boolean>;
|
|
271
|
+
/**
|
|
272
|
+
* Tries to remove specified key from map. If this method returns
|
|
273
|
+
* false, it indicates that caller thread was not able to acquire the lock for
|
|
274
|
+
* given key in `timeout` milliseconds.
|
|
275
|
+
* @param key
|
|
276
|
+
* @param timeout
|
|
277
|
+
* @throws {RangeError} if key is null or undefined.
|
|
278
|
+
*/
|
|
279
|
+
tryRemove(key: K, timeout: number): Promise<boolean>;
|
|
280
|
+
/**
|
|
281
|
+
* Adds a {@link MapListener} for this map.
|
|
282
|
+
* @param listener
|
|
283
|
+
* @param key Events are triggered for only this key if set.
|
|
284
|
+
* @param includeValue Event message contains new value of the key if set to {true}.
|
|
285
|
+
* @return Registration id of the listener.
|
|
286
|
+
*/
|
|
287
|
+
addEntryListener(listener: MapListener<K, V>, key?: K, includeValue?: boolean): Promise<string>;
|
|
288
|
+
/**
|
|
289
|
+
* Adds a {@link MapListener} for this map.
|
|
290
|
+
* Listener will get notified for map add/remove/update/evict events filtered by the given predicate.
|
|
291
|
+
* @param listener
|
|
292
|
+
* @param predicate
|
|
293
|
+
* @param key Events are triggered for only this key if set.
|
|
294
|
+
* @param includeValue Event message contains new value of the key if set to `true`.
|
|
295
|
+
* @return Registration id of the listener.
|
|
296
|
+
*/
|
|
297
|
+
addEntryListenerWithPredicate(listener: MapListener<K, V>, predicate: Predicate, key?: K, includeValue?: boolean): Promise<string>;
|
|
298
|
+
/**
|
|
299
|
+
* Removes a {@link MapListener} from this map.
|
|
300
|
+
* @param listenerId Registration Id of the listener.
|
|
301
|
+
* @return `true` if remove operation is successful, `false` if unsuccessful or this listener did not exist.
|
|
302
|
+
*/
|
|
303
|
+
removeEntryListener(listenerId: string): Promise<boolean>;
|
|
304
|
+
/**
|
|
305
|
+
* Applies the user defined EntryProcessor to the all entries in the map.
|
|
306
|
+
* Returns the results mapped by each key in the map
|
|
307
|
+
* Note that {entryProcessor} should be registered at server side too.
|
|
308
|
+
* @param entryProcessor
|
|
309
|
+
* @param predicate if specified, entry processor is applied to the entries that satisfis this predicate.
|
|
310
|
+
* @return entries after entryprocessor is applied.
|
|
311
|
+
*/
|
|
312
|
+
executeOnEntries(entryProcessor: IdentifiedDataSerializable | Portable, predicate?: Predicate): Promise<Array<[K, V]>>;
|
|
313
|
+
/**
|
|
314
|
+
* Applies the user defined EntryProcessor to the entry mapped by the key.
|
|
315
|
+
* @param key entry processor is applied only to the value that is mapped with this key.
|
|
316
|
+
* @param entryProcessor entry processor to be applied.
|
|
317
|
+
* @return result of entry process.
|
|
318
|
+
*/
|
|
319
|
+
executeOnKey(key: K, entryProcessor: IdentifiedDataSerializable | Portable): Promise<V>;
|
|
320
|
+
/**
|
|
321
|
+
* Applies the user defined EntryProcessor to the entries mapped by the given keys.
|
|
322
|
+
*
|
|
323
|
+
* @param keys keys to be processed
|
|
324
|
+
* @param entryProcessor
|
|
325
|
+
* @return result of entry process
|
|
326
|
+
*/
|
|
327
|
+
executeOnKeys(keys: K[], entryProcessor: IdentifiedDataSerializable | Portable): Promise<Array<[K, V]>>;
|
|
328
|
+
}
|
|
@@ -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,128 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import * as Promise from 'bluebird';
|
|
3
|
+
import { ItemListener } from '../core/ItemListener';
|
|
4
|
+
import { DistributedObject } from '../DistributedObject';
|
|
5
|
+
export interface IQueue<E> extends DistributedObject {
|
|
6
|
+
/**
|
|
7
|
+
* Adds given item to the end of the queue. Operation is successful only
|
|
8
|
+
* if queue has required capacity.
|
|
9
|
+
* @param item element to add.
|
|
10
|
+
* @throws `IllegalStateError` if queue is full.
|
|
11
|
+
* @return `true`.
|
|
12
|
+
*/
|
|
13
|
+
add(item: E): Promise<boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* Adds all items in specified item array. If items array changes during
|
|
16
|
+
* this operation, behaviour is unspecified.
|
|
17
|
+
* @param items items to be added.
|
|
18
|
+
* @return `true` if this queue changed, `false` otherwise.
|
|
19
|
+
*/
|
|
20
|
+
addAll(items: E[]): Promise<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* Adds an item listener for this queue.
|
|
23
|
+
* Listener will be invoked for any add/remove item event.
|
|
24
|
+
* @param listener
|
|
25
|
+
* @param includeValue `true` if updated item should be included in the event.
|
|
26
|
+
* @return Registration id of the listener.
|
|
27
|
+
*/
|
|
28
|
+
addItemListener(listener: ItemListener<E>, includeValue: boolean): Promise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Removes all of the elements in this queue.
|
|
31
|
+
*/
|
|
32
|
+
clear(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns `true` if this queue contains the given item.
|
|
35
|
+
* @param item
|
|
36
|
+
* @return `true` if this queue containse the item, `false` otherwise.
|
|
37
|
+
*/
|
|
38
|
+
contains(item: E): Promise<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Checks if this queue contains all of the items in given array.
|
|
41
|
+
* @param items
|
|
42
|
+
* @return `true` if thi queue contains all items, `false` otherwise.
|
|
43
|
+
*/
|
|
44
|
+
containsAll(items: E[]): Promise<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* Removes all items in this queue and add them to the end of given `arr`.
|
|
47
|
+
* @param arr
|
|
48
|
+
* @param maxElements maximum number of elements that would be moved.
|
|
49
|
+
* @return number of items moved from this queue to the array.
|
|
50
|
+
*/
|
|
51
|
+
drainTo(arr: E[], maxElements?: number): Promise<number>;
|
|
52
|
+
/**
|
|
53
|
+
* Checks if this queue contains any element.
|
|
54
|
+
* @return `true` if number of elements in this queue is 0.
|
|
55
|
+
*/
|
|
56
|
+
isEmpty(): Promise<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* Inserts given item at the end of the queue if there is room.
|
|
59
|
+
* If queue capacity is full, offer operation fails.
|
|
60
|
+
* @param item
|
|
61
|
+
* @param time if specified, operation waits for `time` milliseconds for
|
|
62
|
+
* space to become available before returning false.
|
|
63
|
+
* @return `true` if the item is successfully added, `false` otherwise.
|
|
64
|
+
*/
|
|
65
|
+
offer(item: E, time?: number): Promise<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves, but does not remove the head of this queue.
|
|
68
|
+
* @return the head of this queue or `null` if the queue is empty.
|
|
69
|
+
*/
|
|
70
|
+
peek(): Promise<E>;
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves and removes the top of this queue.
|
|
73
|
+
* @param time operation waits upto `time` milliseconds if this queue is empty.
|
|
74
|
+
* @return the head of this queue or `null` if no element is available.
|
|
75
|
+
*/
|
|
76
|
+
poll(time?: number): Promise<E>;
|
|
77
|
+
/**
|
|
78
|
+
* Inserts the item at the end of this queue. It waits to return until
|
|
79
|
+
* space becomes available if neccessary.
|
|
80
|
+
* @param item
|
|
81
|
+
*/
|
|
82
|
+
put(item: E): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns the number of additional items, this queue can contain.
|
|
85
|
+
* @return remaining capacity or `Integer.MAX_VALUE` at server side.
|
|
86
|
+
*/
|
|
87
|
+
remainingCapacity(): Promise<number>;
|
|
88
|
+
/**
|
|
89
|
+
* Removes an instance of given item from this queue.
|
|
90
|
+
* @return `true` if this queue changed, `false` otherwise.
|
|
91
|
+
*/
|
|
92
|
+
remove(item: E): Promise<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* Removes all items in given `items` from this queue.
|
|
95
|
+
* @param items
|
|
96
|
+
* @return `true` if this queue changed, `false` otherwise.
|
|
97
|
+
*/
|
|
98
|
+
removeAll(items: E[]): Promise<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Removes an item listener for this queue.
|
|
101
|
+
* @param registrationId Registration id of the listener to be removed.
|
|
102
|
+
* @return `true` if the item listener is removed, `false` otherwise.
|
|
103
|
+
*/
|
|
104
|
+
removeItemListener(registrationId: string): Promise<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* Retains only the items that are present it given `items`.
|
|
107
|
+
* @param items
|
|
108
|
+
* @return `true` if this queue changed, `false` otherwise.
|
|
109
|
+
*/
|
|
110
|
+
retainAll(items: E[]): Promise<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* Returns the number of items in this queue.
|
|
113
|
+
* @return number of items or `Integer.MAX_VALUE` if number of elements is more than `Integer.MAX_VALUE`
|
|
114
|
+
* on server side.
|
|
115
|
+
*/
|
|
116
|
+
size(): Promise<number>;
|
|
117
|
+
/**
|
|
118
|
+
* Retrieves and removes the head of this queue. It waits to return until
|
|
119
|
+
* an element becomes available if neccessary.
|
|
120
|
+
* @param item
|
|
121
|
+
* @return head of the queue.
|
|
122
|
+
*/
|
|
123
|
+
take(): Promise<E>;
|
|
124
|
+
/**
|
|
125
|
+
* Returns an array that contains all items of this queue in proper sequence.
|
|
126
|
+
*/
|
|
127
|
+
toArray(): Promise<E[]>;
|
|
128
|
+
}
|
|
@@ -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,53 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
/// <reference types="long" />
|
|
3
|
+
import * as Promise from 'bluebird';
|
|
4
|
+
import { DistributedObject } from '../DistributedObject';
|
|
5
|
+
import Long = require('long');
|
|
6
|
+
export interface ISemaphore extends DistributedObject {
|
|
7
|
+
/**
|
|
8
|
+
* Try to initialize this ISemaphore instance with the given permit count.
|
|
9
|
+
* @param permits
|
|
10
|
+
*/
|
|
11
|
+
init(permits: number): Promise<boolean>;
|
|
12
|
+
/**
|
|
13
|
+
* Acquires the given number of permits if they are available, and returns
|
|
14
|
+
* immediately, reducing the number of available permits by the given amount.
|
|
15
|
+
* If insufficient permits are available returned promise is not resolved
|
|
16
|
+
* until until there are sufficient number of available permits or this
|
|
17
|
+
* {ISemaphore} is destroyed.
|
|
18
|
+
* @param permits
|
|
19
|
+
*/
|
|
20
|
+
acquire(permits?: number): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the current number of permits currently available in this semaphore.
|
|
23
|
+
* This message is idempotent.
|
|
24
|
+
*/
|
|
25
|
+
availablePermits(): Promise<number>;
|
|
26
|
+
/**
|
|
27
|
+
* Acquires and returns all permits that are immediately available.
|
|
28
|
+
*/
|
|
29
|
+
drainPermits(): Promise<number>;
|
|
30
|
+
/**
|
|
31
|
+
* Shrinks the number of available permits by the indicated reduction.
|
|
32
|
+
* @param reduction
|
|
33
|
+
*/
|
|
34
|
+
reducePermits(reduction: number): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Releases the given number of permits, increasing the number of available
|
|
37
|
+
* permits by that amount. There is no requirement that a thread that releases a
|
|
38
|
+
* permit must have acquired that permit by calling one of the acquire()acquire
|
|
39
|
+
* methods. Correct usage of a semaphore is established by programming convention
|
|
40
|
+
* in the application
|
|
41
|
+
*/
|
|
42
|
+
release(permits?: number): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Acquires the given number of permits, if they are available, and returns
|
|
45
|
+
* immediately, with the value true, reducing the number of available permits
|
|
46
|
+
* by the given amount. If insufficient permits are available then this
|
|
47
|
+
* method will return immediately with the value false and the number of
|
|
48
|
+
* available permits is unchanged.
|
|
49
|
+
* @param permits
|
|
50
|
+
* @param timeout
|
|
51
|
+
*/
|
|
52
|
+
tryAcquire(permits: number, timeout: Long | number): Promise<boolean>;
|
|
53
|
+
}
|
|
@@ -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,89 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import * as Promise from 'bluebird';
|
|
3
|
+
import { ItemListener } from '../core/ItemListener';
|
|
4
|
+
import { DistributedObject } from '../DistributedObject';
|
|
5
|
+
export interface ISet<E> extends DistributedObject {
|
|
6
|
+
/**
|
|
7
|
+
* Adds the specified element to this set if not already present.
|
|
8
|
+
* @param entry
|
|
9
|
+
* @throws {Error} if entry is null or undefined.
|
|
10
|
+
* @return a promise to be resolved to true if this set did not contain the element.
|
|
11
|
+
*/
|
|
12
|
+
add(entry: E): Promise<boolean>;
|
|
13
|
+
/**
|
|
14
|
+
* Adds the elements contained in array to this set if not already present.
|
|
15
|
+
* Set contains all elements of items array and its previous elements at the end.
|
|
16
|
+
* @param items
|
|
17
|
+
* @throws {Error} if collection or one of its elements is null or undefined.
|
|
18
|
+
* @return true if this set changed, false otherwise.
|
|
19
|
+
*/
|
|
20
|
+
addAll(items: E[]): Promise<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns an array containing all of the elements in the set.
|
|
23
|
+
* @return An array of items.
|
|
24
|
+
*/
|
|
25
|
+
toArray(): Promise<E[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Removes all of the elements from this set.
|
|
28
|
+
*/
|
|
29
|
+
clear(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Checks whether this set contains given element.
|
|
32
|
+
* @param entry
|
|
33
|
+
* @throws {Error} if entry is null.
|
|
34
|
+
* @return true if this set contains given element, false otherwise.
|
|
35
|
+
*/
|
|
36
|
+
contains(entry: E): Promise<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Checks whether this set contains all elements of given array.
|
|
39
|
+
* @param items
|
|
40
|
+
* @throws {Error} if collection or one of its elements is null or undefined.
|
|
41
|
+
* @return `tru`e if this set contains all elments of given collection, `false` otherwise.
|
|
42
|
+
*/
|
|
43
|
+
containsAll(items: E[]): Promise<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* @return true if this set does n
|
|
46
|
+
* Checks if this set has any elements.ot have any elements, false otherwise.
|
|
47
|
+
*/
|
|
48
|
+
isEmpty(): Promise<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Removes given entry from this set.
|
|
51
|
+
* @param entry
|
|
52
|
+
* @throws {Error} if entry is null or undefined.
|
|
53
|
+
* @return true if this set actually had given element, false otherwise.
|
|
54
|
+
*/
|
|
55
|
+
remove(entry: E): Promise<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* Removes all elements of given array from this set.
|
|
58
|
+
* @param items
|
|
59
|
+
* @throws {Error} if collection or one of its elements is null or undefined.
|
|
60
|
+
* @return `true` if this set changed.
|
|
61
|
+
*/
|
|
62
|
+
removeAll(items: E[]): Promise<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Removes all elements from this set except the elements of given array.
|
|
65
|
+
* @param items
|
|
66
|
+
* @throws {Error} if collection or one of its elements is null or undefined.
|
|
67
|
+
* @return `true` if this set changed.
|
|
68
|
+
*/
|
|
69
|
+
retainAll(items: E[]): Promise<boolean>;
|
|
70
|
+
/**
|
|
71
|
+
* Returns the size of this set.
|
|
72
|
+
* @return number of elements in this set.
|
|
73
|
+
*/
|
|
74
|
+
size(): Promise<number>;
|
|
75
|
+
/**
|
|
76
|
+
* Adds an item listener for this set.
|
|
77
|
+
* Listener will be invoked for any add/remove item event.
|
|
78
|
+
* @param listener
|
|
79
|
+
* @param includeValue `true` if updated item should be included in the event.
|
|
80
|
+
* @return Registration id of the listener.
|
|
81
|
+
*/
|
|
82
|
+
addItemListener(listener: ItemListener<E>, includeValue: boolean): Promise<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Removes an item listener for this set.
|
|
85
|
+
* @param registrationId Registration id of the listener to be removed.
|
|
86
|
+
* @return `true` if the item listener is removed, `false` otherwise.
|
|
87
|
+
*/
|
|
88
|
+
removeItemListener(registrationId: string): Promise<boolean>;
|
|
89
|
+
}
|
|
@@ -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 });
|