@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,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"group": {
|
|
3
|
+
"name": "dev",
|
|
4
|
+
"password": "dev-pass"
|
|
5
|
+
},
|
|
6
|
+
"properties": {
|
|
7
|
+
"hazelcast.client.heartbeat.interval": 5000,
|
|
8
|
+
"hazelcast.client.heartbeat.timeout": 60000,
|
|
9
|
+
"hazelcast.client.invocation.retry.pause.millis": 1000,
|
|
10
|
+
"hazelcast.client.invocation.timeout.millis": 120000,
|
|
11
|
+
"hazelcast.client.cloud.url": "https://coordinator.hazelcast.cloud",
|
|
12
|
+
"hazelcast.client.statistics.enabled": false,
|
|
13
|
+
"hazelcast.client.statistics.period.seconds": 3,
|
|
14
|
+
"hazelcast.invalidation.reconciliation.interval.seconds": 60,
|
|
15
|
+
"hazelcast.invalidation.max.tolerated.miss.count": 10,
|
|
16
|
+
"hazelcast.invalidation.min.reconciliation.interval.seconds": 30,
|
|
17
|
+
"hazelcast.logging.level": 2,
|
|
18
|
+
"hazelcast.client.autopipelining.enabled": true,
|
|
19
|
+
"hazelcast.client.autopipelining.threshold.bytes": 8192,
|
|
20
|
+
"hazelcast.client.socket.no.delay": true
|
|
21
|
+
},
|
|
22
|
+
"network": {
|
|
23
|
+
"clusterMembers": [
|
|
24
|
+
"127.0.0.1:5701"
|
|
25
|
+
],
|
|
26
|
+
"smartRouting": true,
|
|
27
|
+
"redoOperation": false,
|
|
28
|
+
"connectionTimeout": 5000,
|
|
29
|
+
"connectionAttemptPeriod": 3000,
|
|
30
|
+
"connectionAttemptLimit": 2,
|
|
31
|
+
"ssl": {
|
|
32
|
+
"enabled": false,
|
|
33
|
+
"sslOptions": null,
|
|
34
|
+
"factory": null
|
|
35
|
+
},
|
|
36
|
+
"hazelcastCloud": {
|
|
37
|
+
"discoveryToken": null,
|
|
38
|
+
"enabled": false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"listeners": [],
|
|
42
|
+
"serialization": {
|
|
43
|
+
"defaultNumberType": "double",
|
|
44
|
+
"isBigEndian": true,
|
|
45
|
+
"jsonStringDeserializationPolicy": "eager",
|
|
46
|
+
"stringSerialization": "standard",
|
|
47
|
+
"dataSerializableFactories": [],
|
|
48
|
+
"portableFactories": [],
|
|
49
|
+
"portableVersion": 0,
|
|
50
|
+
"globalSerializer": {},
|
|
51
|
+
"serializers": []
|
|
52
|
+
},
|
|
53
|
+
"nearCaches": [],
|
|
54
|
+
"reliableTopics": [],
|
|
55
|
+
"flakeIdGeneratorConfigs": []
|
|
56
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"group": {
|
|
3
|
+
"name": "hazel",
|
|
4
|
+
"password": "cast"
|
|
5
|
+
},
|
|
6
|
+
"properties": {
|
|
7
|
+
"hazelcast.client.heartbeat.interval": 5000,
|
|
8
|
+
"hazelcast.client.heartbeat.timeout": 60000,
|
|
9
|
+
"hazelcast.client.invocation.retry.pause.millis": 1000,
|
|
10
|
+
"hazelcast.client.invocation.timeout.millis": 120000,
|
|
11
|
+
"hazelcast.client.cloud.url": "https://coordinator.hazelcast.cloud",
|
|
12
|
+
"hazelcast.client.statistics.enabled": false,
|
|
13
|
+
"hazelcast.client.statistics.period.seconds": 3,
|
|
14
|
+
"hazelcast.invalidation.reconciliation.interval.seconds": 60,
|
|
15
|
+
"hazelcast.invalidation.max.tolerated.miss.count": 10,
|
|
16
|
+
"hazelcast.invalidation.min.reconciliation.interval.seconds": 30,
|
|
17
|
+
"hazelcast.logging.level": 2,
|
|
18
|
+
"hazelcast.client.autopipelining.enabled": true,
|
|
19
|
+
"hazelcast.client.autopipelining.threshold.bytes": 8192,
|
|
20
|
+
"hazelcast.client.socket.no.delay": true
|
|
21
|
+
},
|
|
22
|
+
"network": {
|
|
23
|
+
"clusterMembers": [
|
|
24
|
+
"127.0.0.1",
|
|
25
|
+
"127.0.0.2:5702"
|
|
26
|
+
],
|
|
27
|
+
"smartRouting": true,
|
|
28
|
+
"redoOperation": false,
|
|
29
|
+
"connectionTimeout": 5000,
|
|
30
|
+
"connectionAttemptPeriod": 3000,
|
|
31
|
+
"connectionAttemptLimit": 2,
|
|
32
|
+
"ssl": {
|
|
33
|
+
"enabled": false,
|
|
34
|
+
"sslOptions": null,
|
|
35
|
+
"factory": {
|
|
36
|
+
"path": "path/to/file",
|
|
37
|
+
"exportedName": "exportedName",
|
|
38
|
+
"properties": {
|
|
39
|
+
"userDefinedProperty1": "userDefinedValue"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"hazelcastCloud": {
|
|
44
|
+
"discoveryToken": "EXAMPLE_TOKEN",
|
|
45
|
+
"enabled": false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"listeners": [
|
|
49
|
+
{
|
|
50
|
+
"type": "lifecycle",
|
|
51
|
+
"path": "path/to/file",
|
|
52
|
+
"exportedName": "listener"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "lifecycle",
|
|
56
|
+
"path": "path/to/file",
|
|
57
|
+
"exportedName": "listener2"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"serialization": {
|
|
61
|
+
"defaultNumberType": "double",
|
|
62
|
+
"isBigEndian": true,
|
|
63
|
+
"jsonStringDeserializationPolicy": "eager",
|
|
64
|
+
"stringSerialization": "standard",
|
|
65
|
+
"dataSerializableFactories": [
|
|
66
|
+
{
|
|
67
|
+
"path": "path/to/file",
|
|
68
|
+
"exportedName": "exportedName",
|
|
69
|
+
"factoryId": 0
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"portableFactories": [
|
|
73
|
+
{
|
|
74
|
+
"path": "path/to/file",
|
|
75
|
+
"exportedName": "exportedName",
|
|
76
|
+
"factoryId": 1
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"portableVersion": 0,
|
|
80
|
+
"globalSerializer": {
|
|
81
|
+
"path": "path/to/file",
|
|
82
|
+
"exportedName": "exportedName"
|
|
83
|
+
},
|
|
84
|
+
"serializers": [
|
|
85
|
+
{
|
|
86
|
+
"path": "path/to/custom",
|
|
87
|
+
"exportedName": "CustomSerializer1",
|
|
88
|
+
"typeId": 2
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "path/to/custom",
|
|
92
|
+
"exportedName": "CustomSerializer2",
|
|
93
|
+
"typeId": 3
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"nearCaches": [
|
|
98
|
+
{
|
|
99
|
+
"name": "nc-map",
|
|
100
|
+
"invalidateOnChange": false,
|
|
101
|
+
"maxIdleSeconds": 2,
|
|
102
|
+
"inMemoryFormat": "object",
|
|
103
|
+
"timeToLiveSeconds": 3,
|
|
104
|
+
"evictionPolicy": "lru",
|
|
105
|
+
"evictionMaxSize": 3000,
|
|
106
|
+
"evictionSamplingCount": 4,
|
|
107
|
+
"evictionSamplingPoolSize": 8
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"reliableTopics": [
|
|
111
|
+
{
|
|
112
|
+
"name": "rt1",
|
|
113
|
+
"readBatchSize": 35,
|
|
114
|
+
"overloadPolicy": "discard_newest"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "rt2",
|
|
118
|
+
"readBatchSize": 15,
|
|
119
|
+
"overloadPolicy": "discard_newest"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"flakeIdGeneratorConfigs": [
|
|
123
|
+
{
|
|
124
|
+
"name": "flakeid",
|
|
125
|
+
"prefetchCount": 1000,
|
|
126
|
+
"prefetchValidityMillis": 30000
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "flakeid2",
|
|
130
|
+
"prefetchCount": 5000,
|
|
131
|
+
"prefetchValidityMillis": 500000
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"import": [
|
|
135
|
+
"hazelcast-client-near-cache.json"
|
|
136
|
+
]
|
|
137
|
+
}
|
package/lib/Address.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataInput, DataOutput } from './serialization/Data';
|
|
2
|
+
import { IdentifiedDataSerializable } from './serialization/Serializable';
|
|
3
|
+
declare class Address implements IdentifiedDataSerializable {
|
|
4
|
+
host: string;
|
|
5
|
+
port: number;
|
|
6
|
+
type: number;
|
|
7
|
+
private addrStr;
|
|
8
|
+
constructor(host?: string, port?: number);
|
|
9
|
+
readData(input: DataInput): any;
|
|
10
|
+
writeData(output: DataOutput): void;
|
|
11
|
+
getFactoryId(): number;
|
|
12
|
+
getClassId(): number;
|
|
13
|
+
equals(other: Address): boolean;
|
|
14
|
+
toString(): string;
|
|
15
|
+
private toStringInternal();
|
|
16
|
+
}
|
|
17
|
+
export = Address;
|
package/lib/Address.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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 net = require("net");
|
|
18
|
+
var ClusterDataFactoryHelper_1 = require("./ClusterDataFactoryHelper");
|
|
19
|
+
var Address = /** @class */ (function () {
|
|
20
|
+
function Address(host, port) {
|
|
21
|
+
this.host = host;
|
|
22
|
+
this.port = port;
|
|
23
|
+
this.type = net.isIP(host);
|
|
24
|
+
this.addrStr = this.toStringInternal();
|
|
25
|
+
}
|
|
26
|
+
Address.prototype.readData = function (input) {
|
|
27
|
+
this.port = input.readInt();
|
|
28
|
+
this.type = input.readByte();
|
|
29
|
+
this.host = input.readUTF();
|
|
30
|
+
this.addrStr = this.toStringInternal();
|
|
31
|
+
};
|
|
32
|
+
Address.prototype.writeData = function (output) {
|
|
33
|
+
output.writeInt(this.port);
|
|
34
|
+
output.writeByte(this.type);
|
|
35
|
+
output.writeUTF(this.host);
|
|
36
|
+
};
|
|
37
|
+
Address.prototype.getFactoryId = function () {
|
|
38
|
+
return ClusterDataFactoryHelper_1.ClusterDataFactoryHelper.FACTORY_ID;
|
|
39
|
+
};
|
|
40
|
+
Address.prototype.getClassId = function () {
|
|
41
|
+
return ClusterDataFactoryHelper_1.ClusterDataFactoryHelper.ADDRESS_ID;
|
|
42
|
+
};
|
|
43
|
+
Address.prototype.equals = function (other) {
|
|
44
|
+
if (other === this) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
if (other == null) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
if (other.host === this.host &&
|
|
51
|
+
other.port === this.port &&
|
|
52
|
+
other.type === this.type) {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
};
|
|
57
|
+
Address.prototype.toString = function () {
|
|
58
|
+
return this.addrStr;
|
|
59
|
+
};
|
|
60
|
+
Address.prototype.toStringInternal = function () {
|
|
61
|
+
return this.host + ':' + this.port;
|
|
62
|
+
};
|
|
63
|
+
return Address;
|
|
64
|
+
}());
|
|
65
|
+
module.exports = Address;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Buffer } from 'safe-buffer';
|
|
2
|
+
import Address = require('./Address');
|
|
3
|
+
import { Data } from './serialization/Data';
|
|
4
|
+
export declare class BitsUtil {
|
|
5
|
+
static EVENT_MEMBER: number;
|
|
6
|
+
static EVENT_MEMBERLIST: number;
|
|
7
|
+
static EVENT_MEMBERATTRIBUTECHANGE: number;
|
|
8
|
+
static EVENT_ENTRY: number;
|
|
9
|
+
static EVENT_ITEM: number;
|
|
10
|
+
static EVENT_TOPIC: number;
|
|
11
|
+
static EVENT_PARTITIONLOST: number;
|
|
12
|
+
static EVENT_DISTRIBUTEDOBJECT: number;
|
|
13
|
+
static EVENT_CACHEINVALIDATION: number;
|
|
14
|
+
static EVENT_MAPPARTITIONLOST: number;
|
|
15
|
+
static EVENT_CACHE: number;
|
|
16
|
+
static EVENT_CACHEBATCHINVALIDATION: number;
|
|
17
|
+
static EVENT_QUERYCACHESINGLE: number;
|
|
18
|
+
static EVENT_QUERYCACHEBATCH: number;
|
|
19
|
+
static EVENT_CACHEPARTITIONLOST: number;
|
|
20
|
+
static EVENT_IMAPINVALIDATION: number;
|
|
21
|
+
static EVENT_IMAPBATCHINVALIDATION: number;
|
|
22
|
+
static EVENT_PARTITIONS: number;
|
|
23
|
+
static BYTE_SIZE_IN_BYTES: number;
|
|
24
|
+
static BOOLEAN_SIZE_IN_BYTES: number;
|
|
25
|
+
static SHORT_SIZE_IN_BYTES: number;
|
|
26
|
+
static CHAR_SIZE_IN_BYTES: number;
|
|
27
|
+
static INT_SIZE_IN_BYTES: number;
|
|
28
|
+
static FLOAT_SIZE_IN_BYTES: number;
|
|
29
|
+
static LONG_SIZE_IN_BYTES: number;
|
|
30
|
+
static DOUBLE_SIZE_IN_BYTES: number;
|
|
31
|
+
static BIG_ENDIAN: number;
|
|
32
|
+
static LITTLE_ENDIAN: number;
|
|
33
|
+
static VERSION: number;
|
|
34
|
+
static BEGIN_FLAG: number;
|
|
35
|
+
static END_FLAG: number;
|
|
36
|
+
static BEGIN_END_FLAG: number;
|
|
37
|
+
static LISTENER_FLAG: number;
|
|
38
|
+
static NULL_ARRAY_LENGTH: number;
|
|
39
|
+
static SIZE_OFFSET: number;
|
|
40
|
+
static FRAME_LENGTH_FIELD_OFFSET: number;
|
|
41
|
+
static VERSION_FIELD_OFFSET: number;
|
|
42
|
+
static FLAGS_FIELD_OFFSET: number;
|
|
43
|
+
static TYPE_FIELD_OFFSET: number;
|
|
44
|
+
static CORRELATION_ID_FIELD_OFFSET: number;
|
|
45
|
+
static PARTITION_ID_FIELD_OFFSET: number;
|
|
46
|
+
static DATA_OFFSET_FIELD_OFFSET: number;
|
|
47
|
+
static HEADER_SIZE: number;
|
|
48
|
+
static calculateSizeData(data: Data): number;
|
|
49
|
+
static getStringSize(value: string, nullable?: boolean): number;
|
|
50
|
+
static calculateSizeString(value: string): number;
|
|
51
|
+
static calculateSizeBuffer(value: Buffer): number;
|
|
52
|
+
static calculateSizeAddress(value: Address): number;
|
|
53
|
+
static writeUInt32(buffer: Buffer, pos: number, val: number, isBigEndian: boolean): void;
|
|
54
|
+
static writeUInt16(buffer: Buffer, pos: number, val: number, isBigEndian: boolean): void;
|
|
55
|
+
static writeUInt8(buffer: Buffer, pos: number, val: number): void;
|
|
56
|
+
static writeInt32(buffer: Buffer, pos: number, val: number, isBigEndian: boolean): void;
|
|
57
|
+
static writeInt16(buffer: Buffer, pos: number, val: number, isBigEndian: boolean): void;
|
|
58
|
+
static writeInt8(buffer: Buffer, pos: number, val: number): void;
|
|
59
|
+
static writeFloat(buffer: Buffer, pos: number, val: number, isBigEndian: boolean): void;
|
|
60
|
+
static writeDouble(buffer: Buffer, pos: number, val: number, isBigEndian: boolean): void;
|
|
61
|
+
static readDouble(buffer: Buffer, pos: number, isBigEndian: boolean): number;
|
|
62
|
+
static readFloat(buffer: Buffer, pos: number, isBigEndian: boolean): number;
|
|
63
|
+
static readInt8(buffer: Buffer, pos: number): number;
|
|
64
|
+
static readInt16(buffer: Buffer, pos: number, isBigEndian: boolean): number;
|
|
65
|
+
static readInt32(buffer: Buffer, pos: number, isBigEndian: boolean): number;
|
|
66
|
+
static readUInt8(buffer: Buffer, pos: number): number;
|
|
67
|
+
static readUInt16(buffer: Buffer, pos: number, isBigEndian: boolean): number;
|
|
68
|
+
static readUInt32(buffer: Buffer, pos: number, isBigEndian: boolean): number;
|
|
69
|
+
}
|
package/lib/BitsUtil.js
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
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
|
+
/* tslint:disable:no-bitwise */
|
|
19
|
+
var safe_buffer_1 = require("safe-buffer");
|
|
20
|
+
var BitsUtil = /** @class */ (function () {
|
|
21
|
+
function BitsUtil() {
|
|
22
|
+
}
|
|
23
|
+
BitsUtil.calculateSizeData = function (data) {
|
|
24
|
+
return BitsUtil.INT_SIZE_IN_BYTES + data.totalSize();
|
|
25
|
+
};
|
|
26
|
+
BitsUtil.getStringSize = function (value, nullable) {
|
|
27
|
+
if (nullable === void 0) { nullable = false; }
|
|
28
|
+
// int32 for string length
|
|
29
|
+
var size = 4;
|
|
30
|
+
if (nullable) {
|
|
31
|
+
size += 1;
|
|
32
|
+
}
|
|
33
|
+
size += value == null ? 0 : safe_buffer_1.Buffer.byteLength(value, 'utf8');
|
|
34
|
+
return size;
|
|
35
|
+
};
|
|
36
|
+
BitsUtil.calculateSizeString = function (value) {
|
|
37
|
+
return this.getStringSize(value);
|
|
38
|
+
};
|
|
39
|
+
BitsUtil.calculateSizeBuffer = function (value) {
|
|
40
|
+
var size = 4;
|
|
41
|
+
size += value.length;
|
|
42
|
+
return size;
|
|
43
|
+
};
|
|
44
|
+
BitsUtil.calculateSizeAddress = function (value) {
|
|
45
|
+
var size = 4;
|
|
46
|
+
size += this.calculateSizeString(value.host);
|
|
47
|
+
return size;
|
|
48
|
+
};
|
|
49
|
+
BitsUtil.writeUInt32 = function (buffer, pos, val, isBigEndian) {
|
|
50
|
+
if (isBigEndian) {
|
|
51
|
+
buffer.writeUInt32BE(val, pos);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
buffer.writeUInt32LE(val, pos);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
BitsUtil.writeUInt16 = function (buffer, pos, val, isBigEndian) {
|
|
58
|
+
if (isBigEndian) {
|
|
59
|
+
buffer.writeUInt16BE(val, pos);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
buffer.writeUInt16LE(val, pos);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
BitsUtil.writeUInt8 = function (buffer, pos, val) {
|
|
66
|
+
buffer.writeUInt8(val, pos);
|
|
67
|
+
};
|
|
68
|
+
BitsUtil.writeInt32 = function (buffer, pos, val, isBigEndian) {
|
|
69
|
+
if (isBigEndian) {
|
|
70
|
+
buffer.writeInt32BE(val, pos);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
buffer.writeInt32LE(val, pos);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
BitsUtil.writeInt16 = function (buffer, pos, val, isBigEndian) {
|
|
77
|
+
if (isBigEndian) {
|
|
78
|
+
buffer.writeInt16BE(val, pos);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
buffer.writeInt16LE(val, pos);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
BitsUtil.writeInt8 = function (buffer, pos, val) {
|
|
85
|
+
buffer.writeInt8(val, pos);
|
|
86
|
+
};
|
|
87
|
+
BitsUtil.writeFloat = function (buffer, pos, val, isBigEndian) {
|
|
88
|
+
if (isBigEndian) {
|
|
89
|
+
buffer.writeFloatBE(val, pos);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
buffer.writeFloatLE(val, pos);
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
BitsUtil.writeDouble = function (buffer, pos, val, isBigEndian) {
|
|
96
|
+
if (isBigEndian) {
|
|
97
|
+
buffer.writeDoubleBE(val, pos);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
buffer.writeDoubleLE(val, pos);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
BitsUtil.readDouble = function (buffer, pos, isBigEndian) {
|
|
104
|
+
if (isBigEndian) {
|
|
105
|
+
return buffer.readDoubleBE(pos);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
return buffer.readDoubleLE(pos);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
BitsUtil.readFloat = function (buffer, pos, isBigEndian) {
|
|
112
|
+
if (isBigEndian) {
|
|
113
|
+
return buffer.readFloatBE(pos);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return buffer.readFloatLE(pos);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
BitsUtil.readInt8 = function (buffer, pos) {
|
|
120
|
+
return buffer.readInt8(pos);
|
|
121
|
+
};
|
|
122
|
+
BitsUtil.readInt16 = function (buffer, pos, isBigEndian) {
|
|
123
|
+
if (isBigEndian) {
|
|
124
|
+
return buffer.readInt16BE(pos);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
return buffer.readInt16LE(pos);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
BitsUtil.readInt32 = function (buffer, pos, isBigEndian) {
|
|
131
|
+
if (isBigEndian) {
|
|
132
|
+
return buffer.readInt32BE(pos);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
return buffer.readInt32LE(pos);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
BitsUtil.readUInt8 = function (buffer, pos) {
|
|
139
|
+
return buffer.readUInt8(pos);
|
|
140
|
+
};
|
|
141
|
+
BitsUtil.readUInt16 = function (buffer, pos, isBigEndian) {
|
|
142
|
+
if (isBigEndian) {
|
|
143
|
+
return buffer.readUInt16BE(pos);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
return buffer.readUInt16LE(pos);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
BitsUtil.readUInt32 = function (buffer, pos, isBigEndian) {
|
|
150
|
+
if (isBigEndian) {
|
|
151
|
+
return buffer.readUInt32BE(pos);
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
return buffer.readUInt32LE(pos);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
BitsUtil.EVENT_MEMBER = 200;
|
|
158
|
+
BitsUtil.EVENT_MEMBERLIST = 201;
|
|
159
|
+
BitsUtil.EVENT_MEMBERATTRIBUTECHANGE = 202;
|
|
160
|
+
BitsUtil.EVENT_ENTRY = 203;
|
|
161
|
+
BitsUtil.EVENT_ITEM = 204;
|
|
162
|
+
BitsUtil.EVENT_TOPIC = 205;
|
|
163
|
+
BitsUtil.EVENT_PARTITIONLOST = 206;
|
|
164
|
+
BitsUtil.EVENT_DISTRIBUTEDOBJECT = 207;
|
|
165
|
+
BitsUtil.EVENT_CACHEINVALIDATION = 208;
|
|
166
|
+
BitsUtil.EVENT_MAPPARTITIONLOST = 209;
|
|
167
|
+
BitsUtil.EVENT_CACHE = 210;
|
|
168
|
+
BitsUtil.EVENT_CACHEBATCHINVALIDATION = 211;
|
|
169
|
+
BitsUtil.EVENT_QUERYCACHESINGLE = 212;
|
|
170
|
+
BitsUtil.EVENT_QUERYCACHEBATCH = 213;
|
|
171
|
+
BitsUtil.EVENT_CACHEPARTITIONLOST = 214;
|
|
172
|
+
BitsUtil.EVENT_IMAPINVALIDATION = 215;
|
|
173
|
+
BitsUtil.EVENT_IMAPBATCHINVALIDATION = 216;
|
|
174
|
+
BitsUtil.EVENT_PARTITIONS = 217;
|
|
175
|
+
BitsUtil.BYTE_SIZE_IN_BYTES = 1;
|
|
176
|
+
BitsUtil.BOOLEAN_SIZE_IN_BYTES = 1;
|
|
177
|
+
BitsUtil.SHORT_SIZE_IN_BYTES = 2;
|
|
178
|
+
BitsUtil.CHAR_SIZE_IN_BYTES = 2;
|
|
179
|
+
BitsUtil.INT_SIZE_IN_BYTES = 4;
|
|
180
|
+
BitsUtil.FLOAT_SIZE_IN_BYTES = 4;
|
|
181
|
+
BitsUtil.LONG_SIZE_IN_BYTES = 8;
|
|
182
|
+
BitsUtil.DOUBLE_SIZE_IN_BYTES = 8;
|
|
183
|
+
BitsUtil.BIG_ENDIAN = 2;
|
|
184
|
+
BitsUtil.LITTLE_ENDIAN = 1;
|
|
185
|
+
BitsUtil.VERSION = 1;
|
|
186
|
+
BitsUtil.BEGIN_FLAG = 0x80;
|
|
187
|
+
BitsUtil.END_FLAG = 0x40;
|
|
188
|
+
BitsUtil.BEGIN_END_FLAG = BitsUtil.BEGIN_FLAG | BitsUtil.END_FLAG;
|
|
189
|
+
BitsUtil.LISTENER_FLAG = 0x01;
|
|
190
|
+
BitsUtil.NULL_ARRAY_LENGTH = -1;
|
|
191
|
+
BitsUtil.SIZE_OFFSET = 0;
|
|
192
|
+
BitsUtil.FRAME_LENGTH_FIELD_OFFSET = 0;
|
|
193
|
+
BitsUtil.VERSION_FIELD_OFFSET = BitsUtil.FRAME_LENGTH_FIELD_OFFSET + BitsUtil.INT_SIZE_IN_BYTES;
|
|
194
|
+
BitsUtil.FLAGS_FIELD_OFFSET = BitsUtil.VERSION_FIELD_OFFSET + BitsUtil.BYTE_SIZE_IN_BYTES;
|
|
195
|
+
BitsUtil.TYPE_FIELD_OFFSET = BitsUtil.FLAGS_FIELD_OFFSET + BitsUtil.BYTE_SIZE_IN_BYTES;
|
|
196
|
+
BitsUtil.CORRELATION_ID_FIELD_OFFSET = BitsUtil.TYPE_FIELD_OFFSET + BitsUtil.SHORT_SIZE_IN_BYTES;
|
|
197
|
+
BitsUtil.PARTITION_ID_FIELD_OFFSET = BitsUtil.CORRELATION_ID_FIELD_OFFSET + BitsUtil.LONG_SIZE_IN_BYTES;
|
|
198
|
+
BitsUtil.DATA_OFFSET_FIELD_OFFSET = BitsUtil.PARTITION_ID_FIELD_OFFSET + BitsUtil.INT_SIZE_IN_BYTES;
|
|
199
|
+
BitsUtil.HEADER_SIZE = BitsUtil.DATA_OFFSET_FIELD_OFFSET + BitsUtil.SHORT_SIZE_IN_BYTES;
|
|
200
|
+
return BitsUtil;
|
|
201
|
+
}());
|
|
202
|
+
exports.BitsUtil = BitsUtil;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class BuildInfo {
|
|
2
|
+
static readonly UNKNOWN_VERSION_ID: number;
|
|
3
|
+
private static readonly MAJOR_VERSION_MULTIPLIER;
|
|
4
|
+
private static readonly MINOR_VERSION_MULTIPLIER;
|
|
5
|
+
private static readonly PATTERN;
|
|
6
|
+
static calculateServerVersionFromString(versionString: string): number;
|
|
7
|
+
static calculateServerVersion(major: number, minor: number, patch: number): number;
|
|
8
|
+
static getClientVersion(): string;
|
|
9
|
+
}
|
package/lib/BuildInfo.js
ADDED
|
@@ -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
|
+
var clientVersion = require('../package.json').version;
|
|
19
|
+
var BuildInfo = /** @class */ (function () {
|
|
20
|
+
function BuildInfo() {
|
|
21
|
+
}
|
|
22
|
+
BuildInfo.calculateServerVersionFromString = function (versionString) {
|
|
23
|
+
if (versionString == null) {
|
|
24
|
+
return BuildInfo.UNKNOWN_VERSION_ID;
|
|
25
|
+
}
|
|
26
|
+
var info = BuildInfo.PATTERN.exec(versionString);
|
|
27
|
+
if (info == null) {
|
|
28
|
+
return -1;
|
|
29
|
+
}
|
|
30
|
+
var major = Number.parseInt(info[1]);
|
|
31
|
+
var minor = Number.parseInt(info[2]);
|
|
32
|
+
var patch;
|
|
33
|
+
if (info[3] == null) {
|
|
34
|
+
patch = 0;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
patch = Number.parseInt(info[3]);
|
|
38
|
+
}
|
|
39
|
+
return this.calculateServerVersion(major, minor, patch);
|
|
40
|
+
};
|
|
41
|
+
BuildInfo.calculateServerVersion = function (major, minor, patch) {
|
|
42
|
+
return BuildInfo.MAJOR_VERSION_MULTIPLIER * major + BuildInfo.MINOR_VERSION_MULTIPLIER * minor + patch;
|
|
43
|
+
};
|
|
44
|
+
BuildInfo.getClientVersion = function () {
|
|
45
|
+
return clientVersion;
|
|
46
|
+
};
|
|
47
|
+
BuildInfo.UNKNOWN_VERSION_ID = -1;
|
|
48
|
+
BuildInfo.MAJOR_VERSION_MULTIPLIER = 10000;
|
|
49
|
+
BuildInfo.MINOR_VERSION_MULTIPLIER = 100;
|
|
50
|
+
BuildInfo.PATTERN = /^([\d]+)\.([\d]+)(?:\.([\d]+))?(-[\w]+)?(-SNAPSHOT)?(-BETA-.)?$/;
|
|
51
|
+
return BuildInfo;
|
|
52
|
+
}());
|
|
53
|
+
exports.BuildInfo = BuildInfo;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Address = require('./Address');
|
|
2
|
+
export declare class ClientInfo {
|
|
3
|
+
/**
|
|
4
|
+
* Unique id of this client instance. It is provided by owner server instance.
|
|
5
|
+
*/
|
|
6
|
+
uuid: string;
|
|
7
|
+
/**
|
|
8
|
+
* Local port address that is used to communicate with cluster.
|
|
9
|
+
*/
|
|
10
|
+
localAddress: Address;
|
|
11
|
+
/**
|
|
12
|
+
* Type of this client. It is always NodeJS.
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var ClientInfo = /** @class */ (function () {
|
|
19
|
+
function ClientInfo() {
|
|
20
|
+
/**
|
|
21
|
+
* Type of this client. It is always NodeJS.
|
|
22
|
+
*/
|
|
23
|
+
this.type = 'NodeJS';
|
|
24
|
+
}
|
|
25
|
+
return ClientInfo;
|
|
26
|
+
}());
|
|
27
|
+
exports.ClientInfo = ClientInfo;
|