@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,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var Message = /** @class */ (function () {
|
|
19
|
+
function Message() {
|
|
20
|
+
}
|
|
21
|
+
return Message;
|
|
22
|
+
}());
|
|
23
|
+
exports.Message = Message;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SerializationService } from '../../serialization/SerializationService';
|
|
2
|
+
import { Ringbuffer } from '../Ringbuffer';
|
|
3
|
+
import { ReliableTopicMessage } from './ReliableTopicMessage';
|
|
4
|
+
import { ReliableTopicProxy } from './ReliableTopicProxy';
|
|
5
|
+
import { MessageListener } from './MessageListener';
|
|
6
|
+
import { ILogger } from '../../logging/ILogger';
|
|
7
|
+
export declare class ReliableTopicListenerRunner<E> {
|
|
8
|
+
sequenceNumber: number;
|
|
9
|
+
private listener;
|
|
10
|
+
private ringbuffer;
|
|
11
|
+
private batchSize;
|
|
12
|
+
private serializationService;
|
|
13
|
+
private cancelled;
|
|
14
|
+
private logger;
|
|
15
|
+
private proxy;
|
|
16
|
+
private listenerId;
|
|
17
|
+
constructor(listenerId: string, listener: MessageListener<E>, ringbuffer: Ringbuffer<ReliableTopicMessage>, batchSize: number, serializationService: SerializationService, logger: ILogger, proxy: ReliableTopicProxy<E>);
|
|
18
|
+
next(): void;
|
|
19
|
+
cancel(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var HazelcastError_1 = require("../../HazelcastError");
|
|
19
|
+
var Message_1 = require("./Message");
|
|
20
|
+
var ReliableTopicListenerRunner = /** @class */ (function () {
|
|
21
|
+
function ReliableTopicListenerRunner(listenerId, listener, ringbuffer, batchSize, serializationService, logger, proxy) {
|
|
22
|
+
this.sequenceNumber = 0;
|
|
23
|
+
this.cancelled = false;
|
|
24
|
+
this.listenerId = listenerId;
|
|
25
|
+
this.listener = listener;
|
|
26
|
+
this.ringbuffer = ringbuffer;
|
|
27
|
+
this.batchSize = batchSize;
|
|
28
|
+
this.serializationService = serializationService;
|
|
29
|
+
this.proxy = proxy;
|
|
30
|
+
this.logger = logger;
|
|
31
|
+
}
|
|
32
|
+
ReliableTopicListenerRunner.prototype.next = function () {
|
|
33
|
+
var _this = this;
|
|
34
|
+
if (this.cancelled) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
this.ringbuffer.readMany(this.sequenceNumber, 1, this.batchSize).then(function (result) {
|
|
38
|
+
if (!_this.cancelled) {
|
|
39
|
+
for (var i = 0; i < result.size(); i++) {
|
|
40
|
+
var msg = new Message_1.Message();
|
|
41
|
+
var item = result.get(i);
|
|
42
|
+
msg.messageObject = _this.serializationService.toObject(item.payload);
|
|
43
|
+
msg.publisher = item.publisherAddress;
|
|
44
|
+
msg.publishingTime = item.publishTime;
|
|
45
|
+
setImmediate(_this.listener, msg);
|
|
46
|
+
_this.sequenceNumber++;
|
|
47
|
+
}
|
|
48
|
+
setImmediate(_this.next.bind(_this));
|
|
49
|
+
}
|
|
50
|
+
}).catch(function (e) {
|
|
51
|
+
var message;
|
|
52
|
+
if (e instanceof HazelcastError_1.StaleSequenceError) {
|
|
53
|
+
_this.ringbuffer.headSequence().then(function (seq) {
|
|
54
|
+
var newSequence = seq.toNumber();
|
|
55
|
+
message = 'Topic "' + _this.proxy.getName() + '" ran into a stale sequence. ' +
|
|
56
|
+
' Jumping from old sequence ' + _this.sequenceNumber + ' to new sequence ' + newSequence;
|
|
57
|
+
_this.logger.warn('ReliableTopicListenerRunner', message);
|
|
58
|
+
_this.sequenceNumber = newSequence;
|
|
59
|
+
setImmediate(_this.next.bind(_this));
|
|
60
|
+
});
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
message = 'Listener of topic "' + _this.proxy.getName() + '" caught an exception, terminating listener. ' + e;
|
|
64
|
+
_this.logger.warn('ReliableTopicListenerRunner', message);
|
|
65
|
+
_this.proxy.removeMessageListener(_this.listenerId);
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
ReliableTopicListenerRunner.prototype.cancel = function () {
|
|
69
|
+
this.cancelled = true;
|
|
70
|
+
};
|
|
71
|
+
return ReliableTopicListenerRunner;
|
|
72
|
+
}());
|
|
73
|
+
exports.ReliableTopicListenerRunner = ReliableTopicListenerRunner;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import * as Long from 'long';
|
|
3
|
+
import { Data, DataInput, DataOutput } from '../../serialization/Data';
|
|
4
|
+
import { IdentifiedDataSerializable, IdentifiedDataSerializableFactory } from '../../serialization/Serializable';
|
|
5
|
+
import Address = require('../../Address');
|
|
6
|
+
export declare const RELIABLE_TOPIC_MESSAGE_FACTORY_ID = -18;
|
|
7
|
+
export declare const RELIABLE_TOPIC_CLASS_ID = 2;
|
|
8
|
+
export declare class ReliableTopicMessage implements IdentifiedDataSerializable {
|
|
9
|
+
publishTime: Long;
|
|
10
|
+
publisherAddress: Address;
|
|
11
|
+
payload: Data;
|
|
12
|
+
readData(input: DataInput): any;
|
|
13
|
+
writeData(output: DataOutput): void;
|
|
14
|
+
getFactoryId(): number;
|
|
15
|
+
getClassId(): number;
|
|
16
|
+
}
|
|
17
|
+
export declare class ReliableTopicMessageFactory implements IdentifiedDataSerializableFactory {
|
|
18
|
+
create(type: number): IdentifiedDataSerializable;
|
|
19
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.RELIABLE_TOPIC_MESSAGE_FACTORY_ID = -18;
|
|
19
|
+
exports.RELIABLE_TOPIC_CLASS_ID = 2;
|
|
20
|
+
var ReliableTopicMessage = /** @class */ (function () {
|
|
21
|
+
function ReliableTopicMessage() {
|
|
22
|
+
}
|
|
23
|
+
ReliableTopicMessage.prototype.readData = function (input) {
|
|
24
|
+
this.publishTime = input.readLong();
|
|
25
|
+
this.publisherAddress = input.readObject();
|
|
26
|
+
this.payload = input.readData();
|
|
27
|
+
};
|
|
28
|
+
ReliableTopicMessage.prototype.writeData = function (output) {
|
|
29
|
+
output.writeLong(this.publishTime);
|
|
30
|
+
output.writeObject(this.publisherAddress);
|
|
31
|
+
output.writeData(this.payload);
|
|
32
|
+
};
|
|
33
|
+
ReliableTopicMessage.prototype.getFactoryId = function () {
|
|
34
|
+
return exports.RELIABLE_TOPIC_MESSAGE_FACTORY_ID;
|
|
35
|
+
};
|
|
36
|
+
ReliableTopicMessage.prototype.getClassId = function () {
|
|
37
|
+
return exports.RELIABLE_TOPIC_CLASS_ID;
|
|
38
|
+
};
|
|
39
|
+
return ReliableTopicMessage;
|
|
40
|
+
}());
|
|
41
|
+
exports.ReliableTopicMessage = ReliableTopicMessage;
|
|
42
|
+
var ReliableTopicMessageFactory = /** @class */ (function () {
|
|
43
|
+
function ReliableTopicMessageFactory() {
|
|
44
|
+
}
|
|
45
|
+
ReliableTopicMessageFactory.prototype.create = function (type) {
|
|
46
|
+
if (type === exports.RELIABLE_TOPIC_CLASS_ID) {
|
|
47
|
+
return new ReliableTopicMessage();
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
};
|
|
51
|
+
return ReliableTopicMessageFactory;
|
|
52
|
+
}());
|
|
53
|
+
exports.ReliableTopicMessageFactory = ReliableTopicMessageFactory;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="bluebird" />
|
|
2
|
+
import * as Promise from 'bluebird';
|
|
3
|
+
import HazelcastClient from '../../HazelcastClient';
|
|
4
|
+
import { BaseProxy } from '../BaseProxy';
|
|
5
|
+
import { Ringbuffer } from '../Ringbuffer';
|
|
6
|
+
import { ITopic } from './ITopic';
|
|
7
|
+
import { ReliableTopicMessage } from './ReliableTopicMessage';
|
|
8
|
+
import { MessageListener } from './MessageListener';
|
|
9
|
+
export declare const RINGBUFFER_PREFIX = "_hz_rb_";
|
|
10
|
+
export declare const TOPIC_INITIAL_BACKOFF = 100;
|
|
11
|
+
export declare const TOPIC_MAX_BACKOFF = 2000;
|
|
12
|
+
export declare class ReliableTopicProxy<E> extends BaseProxy implements ITopic<E> {
|
|
13
|
+
private ringbuffer;
|
|
14
|
+
private readonly localAddress;
|
|
15
|
+
private readonly batchSize;
|
|
16
|
+
private readonly runners;
|
|
17
|
+
private readonly serializationService;
|
|
18
|
+
private readonly overloadPolicy;
|
|
19
|
+
constructor(client: HazelcastClient, serviceName: string, name: string);
|
|
20
|
+
setRingbuffer(): Promise<void>;
|
|
21
|
+
addMessageListener(listener: MessageListener<E>): string;
|
|
22
|
+
removeMessageListener(id: string): boolean;
|
|
23
|
+
publish(message: E): Promise<void>;
|
|
24
|
+
getRingbuffer(): Ringbuffer<ReliableTopicMessage>;
|
|
25
|
+
destroy(): Promise<void>;
|
|
26
|
+
private addOrDiscard(reliableTopicMessage);
|
|
27
|
+
private addWithError(reliableTopicMessage);
|
|
28
|
+
private addOrOverwrite(reliableTopicMessage);
|
|
29
|
+
private addWithBackoff(reliableTopicMessage);
|
|
30
|
+
private trySendMessage(message, delay, resolve);
|
|
31
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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 Promise = require("bluebird");
|
|
29
|
+
var OverflowPolicy_1 = require("../../core/OverflowPolicy");
|
|
30
|
+
var HazelcastError_1 = require("../../HazelcastError");
|
|
31
|
+
var UuidUtil_1 = require("../../util/UuidUtil");
|
|
32
|
+
var BaseProxy_1 = require("../BaseProxy");
|
|
33
|
+
var ReliableTopicMessage_1 = require("./ReliableTopicMessage");
|
|
34
|
+
var ReliableTopicListenerRunner_1 = require("./ReliableTopicListenerRunner");
|
|
35
|
+
var TopicOverloadPolicy_1 = require("./TopicOverloadPolicy");
|
|
36
|
+
var Long = require("long");
|
|
37
|
+
exports.RINGBUFFER_PREFIX = '_hz_rb_';
|
|
38
|
+
exports.TOPIC_INITIAL_BACKOFF = 100;
|
|
39
|
+
exports.TOPIC_MAX_BACKOFF = 2000;
|
|
40
|
+
var ReliableTopicProxy = /** @class */ (function (_super) {
|
|
41
|
+
__extends(ReliableTopicProxy, _super);
|
|
42
|
+
function ReliableTopicProxy(client, serviceName, name) {
|
|
43
|
+
var _this = _super.call(this, client, serviceName, name) || this;
|
|
44
|
+
_this.runners = {};
|
|
45
|
+
_this.localAddress = client.getClusterService().getClientInfo().localAddress;
|
|
46
|
+
var config = client.getConfig().getReliableTopicConfig(name);
|
|
47
|
+
_this.batchSize = config.readBatchSize;
|
|
48
|
+
_this.overloadPolicy = config.overloadPolicy;
|
|
49
|
+
_this.serializationService = client.getSerializationService();
|
|
50
|
+
_this.name = name;
|
|
51
|
+
return _this;
|
|
52
|
+
}
|
|
53
|
+
ReliableTopicProxy.prototype.setRingbuffer = function () {
|
|
54
|
+
var _this = this;
|
|
55
|
+
return this.client.getRingbuffer(exports.RINGBUFFER_PREFIX + this.name).then(function (buffer) {
|
|
56
|
+
_this.ringbuffer = buffer;
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
ReliableTopicProxy.prototype.addMessageListener = function (listener) {
|
|
60
|
+
var listenerId = UuidUtil_1.UuidUtil.generate().toString();
|
|
61
|
+
var runner = new ReliableTopicListenerRunner_1.ReliableTopicListenerRunner(listenerId, listener, this.ringbuffer, this.batchSize, this.serializationService, this.client.getLoggingService().getLogger(), this);
|
|
62
|
+
this.runners[listenerId] = runner;
|
|
63
|
+
this.ringbuffer.tailSequence().then(function (sequence) {
|
|
64
|
+
runner.sequenceNumber = sequence.toNumber() + 1;
|
|
65
|
+
runner.next();
|
|
66
|
+
});
|
|
67
|
+
return listenerId;
|
|
68
|
+
};
|
|
69
|
+
ReliableTopicProxy.prototype.removeMessageListener = function (id) {
|
|
70
|
+
var runner = this.runners[id];
|
|
71
|
+
if (!runner) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
runner.cancel();
|
|
75
|
+
delete this.runners[id];
|
|
76
|
+
return true;
|
|
77
|
+
};
|
|
78
|
+
ReliableTopicProxy.prototype.publish = function (message) {
|
|
79
|
+
var reliableTopicMessage = new ReliableTopicMessage_1.ReliableTopicMessage();
|
|
80
|
+
reliableTopicMessage.payload = this.serializationService.toData(message);
|
|
81
|
+
reliableTopicMessage.publishTime = Long.fromNumber(Date.now());
|
|
82
|
+
reliableTopicMessage.publisherAddress = this.localAddress;
|
|
83
|
+
switch (this.overloadPolicy) {
|
|
84
|
+
case TopicOverloadPolicy_1.TopicOverloadPolicy.ERROR:
|
|
85
|
+
return this.addWithError(reliableTopicMessage);
|
|
86
|
+
case TopicOverloadPolicy_1.TopicOverloadPolicy.DISCARD_NEWEST:
|
|
87
|
+
return this.addOrDiscard(reliableTopicMessage);
|
|
88
|
+
case TopicOverloadPolicy_1.TopicOverloadPolicy.DISCARD_OLDEST:
|
|
89
|
+
return this.addOrOverwrite(reliableTopicMessage);
|
|
90
|
+
case TopicOverloadPolicy_1.TopicOverloadPolicy.BLOCK:
|
|
91
|
+
return this.addWithBackoff(reliableTopicMessage);
|
|
92
|
+
default:
|
|
93
|
+
throw new RangeError('Unknown overload policy');
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
ReliableTopicProxy.prototype.getRingbuffer = function () {
|
|
97
|
+
return this.ringbuffer;
|
|
98
|
+
};
|
|
99
|
+
ReliableTopicProxy.prototype.destroy = function () {
|
|
100
|
+
for (var k in this.runners) {
|
|
101
|
+
var runner = this.runners[k];
|
|
102
|
+
runner.cancel();
|
|
103
|
+
}
|
|
104
|
+
return this.ringbuffer.destroy();
|
|
105
|
+
};
|
|
106
|
+
ReliableTopicProxy.prototype.addOrDiscard = function (reliableTopicMessage) {
|
|
107
|
+
return this.ringbuffer.add(reliableTopicMessage, OverflowPolicy_1.OverflowPolicy.FAIL).then(function () {
|
|
108
|
+
return null;
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
ReliableTopicProxy.prototype.addWithError = function (reliableTopicMessage) {
|
|
112
|
+
var _this = this;
|
|
113
|
+
return this.ringbuffer.add(reliableTopicMessage, OverflowPolicy_1.OverflowPolicy.FAIL).then(function (seq) {
|
|
114
|
+
if (seq.toNumber() === -1) {
|
|
115
|
+
throw new HazelcastError_1.TopicOverloadError('Failed to publish message: ' + reliableTopicMessage +
|
|
116
|
+
' on topic: ' + _this.getName());
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
ReliableTopicProxy.prototype.addOrOverwrite = function (reliableTopicMessage) {
|
|
122
|
+
return this.ringbuffer.add(reliableTopicMessage, OverflowPolicy_1.OverflowPolicy.OVERWRITE).then(function () {
|
|
123
|
+
return null;
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
ReliableTopicProxy.prototype.addWithBackoff = function (reliableTopicMessage) {
|
|
127
|
+
var resolve;
|
|
128
|
+
var promise = new Promise(function () {
|
|
129
|
+
resolve = arguments[0];
|
|
130
|
+
});
|
|
131
|
+
this.trySendMessage(reliableTopicMessage, exports.TOPIC_INITIAL_BACKOFF, resolve);
|
|
132
|
+
return promise;
|
|
133
|
+
};
|
|
134
|
+
ReliableTopicProxy.prototype.trySendMessage = function (message, delay, resolve) {
|
|
135
|
+
var _this = this;
|
|
136
|
+
this.ringbuffer.add(message, OverflowPolicy_1.OverflowPolicy.FAIL).then(function (seq) {
|
|
137
|
+
if (seq.toNumber() === -1) {
|
|
138
|
+
var newDelay = delay *= 2;
|
|
139
|
+
if (newDelay > exports.TOPIC_MAX_BACKOFF) {
|
|
140
|
+
newDelay = exports.TOPIC_MAX_BACKOFF;
|
|
141
|
+
}
|
|
142
|
+
_this.trySendMessage(message, newDelay, resolve);
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
resolve();
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
return ReliableTopicProxy;
|
|
150
|
+
}(BaseProxy_1.BaseProxy));
|
|
151
|
+
exports.ReliableTopicProxy = ReliableTopicProxy;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum TopicOverloadPolicy {
|
|
2
|
+
/**
|
|
3
|
+
* Using this policy, a message that has not expired can be overwritten.
|
|
4
|
+
* No matter the retention period set, the overwrite will just overwrite the item.
|
|
5
|
+
*
|
|
6
|
+
* This can be a problem for slow consumers because they were promised a certain time window to process messages.
|
|
7
|
+
* But it will benefit producers and fast consumers since they are able to continue.
|
|
8
|
+
* This policy sacrifices the slow producer in favor of fast producers/consumers.
|
|
9
|
+
*/
|
|
10
|
+
DISCARD_OLDEST = 0,
|
|
11
|
+
/**
|
|
12
|
+
* The message that was to be published, is discarded.
|
|
13
|
+
*/
|
|
14
|
+
DISCARD_NEWEST = 1,
|
|
15
|
+
/**
|
|
16
|
+
* The caller will wait till there space in the ringbuffer.
|
|
17
|
+
*/
|
|
18
|
+
BLOCK = 2,
|
|
19
|
+
/**
|
|
20
|
+
* The publish call immediately fails.
|
|
21
|
+
*/
|
|
22
|
+
ERROR = 3,
|
|
23
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var TopicOverloadPolicy;
|
|
19
|
+
(function (TopicOverloadPolicy) {
|
|
20
|
+
/**
|
|
21
|
+
* Using this policy, a message that has not expired can be overwritten.
|
|
22
|
+
* No matter the retention period set, the overwrite will just overwrite the item.
|
|
23
|
+
*
|
|
24
|
+
* This can be a problem for slow consumers because they were promised a certain time window to process messages.
|
|
25
|
+
* But it will benefit producers and fast consumers since they are able to continue.
|
|
26
|
+
* This policy sacrifices the slow producer in favor of fast producers/consumers.
|
|
27
|
+
*/
|
|
28
|
+
TopicOverloadPolicy[TopicOverloadPolicy["DISCARD_OLDEST"] = 0] = "DISCARD_OLDEST";
|
|
29
|
+
/**
|
|
30
|
+
* The message that was to be published, is discarded.
|
|
31
|
+
*/
|
|
32
|
+
TopicOverloadPolicy[TopicOverloadPolicy["DISCARD_NEWEST"] = 1] = "DISCARD_NEWEST";
|
|
33
|
+
/**
|
|
34
|
+
* The caller will wait till there space in the ringbuffer.
|
|
35
|
+
*/
|
|
36
|
+
TopicOverloadPolicy[TopicOverloadPolicy["BLOCK"] = 2] = "BLOCK";
|
|
37
|
+
/**
|
|
38
|
+
* The publish call immediately fails.
|
|
39
|
+
*/
|
|
40
|
+
TopicOverloadPolicy[TopicOverloadPolicy["ERROR"] = 3] = "ERROR";
|
|
41
|
+
})(TopicOverloadPolicy = exports.TopicOverloadPolicy || (exports.TopicOverloadPolicy = {}));
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
2
|
+
import { Buffer } from 'safe-buffer';
|
|
3
|
+
import * as Long from 'long';
|
|
4
|
+
export interface Data {
|
|
5
|
+
/**
|
|
6
|
+
* Returns serialized representation in a buffer
|
|
7
|
+
*/
|
|
8
|
+
toBuffer(): Buffer;
|
|
9
|
+
/**
|
|
10
|
+
* Returns serialization type
|
|
11
|
+
*/
|
|
12
|
+
getType(): number;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the total size of data in bytes
|
|
15
|
+
*/
|
|
16
|
+
totalSize(): number;
|
|
17
|
+
/**
|
|
18
|
+
* Returns size of internal binary data in bytes
|
|
19
|
+
*/
|
|
20
|
+
dataSize(): number;
|
|
21
|
+
/**
|
|
22
|
+
* Returns approximate heap cost of this Data object in bytes
|
|
23
|
+
*/
|
|
24
|
+
getHeapCost(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Returns partition hash of serialized object
|
|
27
|
+
*/
|
|
28
|
+
getPartitionHash(): number;
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if data has partition hash
|
|
31
|
+
*/
|
|
32
|
+
hasPartitionHash(): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Returns hashcode for this data
|
|
35
|
+
*/
|
|
36
|
+
hashCode(): number;
|
|
37
|
+
equals(other: Data): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Returns true if the object is a portable object
|
|
40
|
+
*/
|
|
41
|
+
isPortable(): boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface DataOutput {
|
|
44
|
+
clear(): void;
|
|
45
|
+
isBigEndian(): boolean;
|
|
46
|
+
position(newPosition?: number): number;
|
|
47
|
+
toBuffer(): Buffer;
|
|
48
|
+
write(byte: number | Buffer): void;
|
|
49
|
+
writeBoolean(val: boolean): void;
|
|
50
|
+
writeBooleanArray(val: boolean[]): void;
|
|
51
|
+
writeByte(byte: number): void;
|
|
52
|
+
writeByteArray(bytes: number[]): void;
|
|
53
|
+
writeBytes(bytes: string): void;
|
|
54
|
+
writeChar(char: string): void;
|
|
55
|
+
writeCharArray(chars: string[]): void;
|
|
56
|
+
writeChars(chars: string): void;
|
|
57
|
+
writeData(data: Data): void;
|
|
58
|
+
writeDouble(double: number): void;
|
|
59
|
+
writeDoubleArray(doubles: number[]): void;
|
|
60
|
+
writeFloat(float: number): void;
|
|
61
|
+
writeFloatArray(floats: number[]): void;
|
|
62
|
+
writeInt(int: number): void;
|
|
63
|
+
writeIntBE(int: number): void;
|
|
64
|
+
writeIntArray(ints: number[]): void;
|
|
65
|
+
writeLong(long: Long): void;
|
|
66
|
+
writeLongArray(longs: Long[]): void;
|
|
67
|
+
writeObject(object: any): void;
|
|
68
|
+
writeShort(short: number): void;
|
|
69
|
+
writeShortArray(shorts: number[]): void;
|
|
70
|
+
writeUTF(val: string): void;
|
|
71
|
+
writeUTFArray(val: string[]): void;
|
|
72
|
+
writeZeroBytes(count: number): void;
|
|
73
|
+
}
|
|
74
|
+
export interface PositionalDataOutput extends DataOutput {
|
|
75
|
+
pwrite(position: number, byte: number | Buffer): void;
|
|
76
|
+
pwriteBoolean(position: number, val: boolean): void;
|
|
77
|
+
pwriteByte(position: number, byte: number): void;
|
|
78
|
+
pwriteChar(position: number, char: string): void;
|
|
79
|
+
pwriteDouble(position: number, double: number): void;
|
|
80
|
+
pwriteFloat(position: number, float: number): void;
|
|
81
|
+
pwriteInt(position: number, int: number): void;
|
|
82
|
+
pwriteIntBE(position: number, int: number): void;
|
|
83
|
+
pwriteLong(position: number, long: Long): void;
|
|
84
|
+
pwriteShort(position: number, short: number): void;
|
|
85
|
+
}
|
|
86
|
+
export interface DataInput {
|
|
87
|
+
isBigEndian(): boolean;
|
|
88
|
+
position(newPosition?: number): number;
|
|
89
|
+
read(pos?: number): number;
|
|
90
|
+
readBoolean(pos?: number): boolean;
|
|
91
|
+
readBooleanArray(pos?: number): boolean[];
|
|
92
|
+
readByte(pos?: number): number;
|
|
93
|
+
readByteArray(pos?: number): number[];
|
|
94
|
+
readChar(pos?: number): string;
|
|
95
|
+
readCharArray(pos?: number): string[];
|
|
96
|
+
readData(pos?: number): Data;
|
|
97
|
+
readDouble(pos?: number): number;
|
|
98
|
+
readDoubleArray(pos?: number): number[];
|
|
99
|
+
readFloat(pos?: number): number;
|
|
100
|
+
readFloatArray(pos?: number): number[];
|
|
101
|
+
readInt(pos?: number): number;
|
|
102
|
+
readIntArray(pos?: number): number[];
|
|
103
|
+
readLong(pos?: number): Long;
|
|
104
|
+
readLongArray(pos?: number): Long[];
|
|
105
|
+
readObject(): any;
|
|
106
|
+
readShort(pos?: number): number;
|
|
107
|
+
readShortArray(pos?: number): number[];
|
|
108
|
+
readUnsignedByte(pos?: number): number;
|
|
109
|
+
readUnsignedShort(pos?: number): number;
|
|
110
|
+
readUTF(pos?: number): string;
|
|
111
|
+
readUTFArray(pos?: number): string[];
|
|
112
|
+
reset(): void;
|
|
113
|
+
skipBytes(count: number): void;
|
|
114
|
+
}
|
|
@@ -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 });
|