@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,566 @@
|
|
|
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
|
+
/* tslint:disable:no-bitwise */
|
|
29
|
+
var safe_buffer_1 = require("safe-buffer");
|
|
30
|
+
var assert = require("assert");
|
|
31
|
+
var Long = require("long");
|
|
32
|
+
var BitsUtil_1 = require("../BitsUtil");
|
|
33
|
+
var HeapData_1 = require("./HeapData");
|
|
34
|
+
var OUTPUT_BUFFER_INITIAL_SIZE = HeapData_1.HEAP_DATA_OVERHEAD + BitsUtil_1.BitsUtil.LONG_SIZE_IN_BYTES;
|
|
35
|
+
var MASK_1BYTE = (1 << 8) - 1;
|
|
36
|
+
var MASK_2BYTE = (1 << 16) - 1;
|
|
37
|
+
var MASK_4BYTE = (1 << 32) - 1;
|
|
38
|
+
var ObjectDataOutput = /** @class */ (function () {
|
|
39
|
+
function ObjectDataOutput(service, isBigEndian, isStandardUTF) {
|
|
40
|
+
this.buffer = safe_buffer_1.Buffer.allocUnsafe(OUTPUT_BUFFER_INITIAL_SIZE);
|
|
41
|
+
this.service = service;
|
|
42
|
+
this.bigEndian = isBigEndian;
|
|
43
|
+
this.standardUTF = isStandardUTF;
|
|
44
|
+
this.pos = 0;
|
|
45
|
+
}
|
|
46
|
+
ObjectDataOutput.prototype.clear = function () {
|
|
47
|
+
this.buffer = safe_buffer_1.Buffer.allocUnsafe(this.buffer.length);
|
|
48
|
+
this.pos = 0;
|
|
49
|
+
};
|
|
50
|
+
ObjectDataOutput.prototype.isBigEndian = function () {
|
|
51
|
+
return this.bigEndian;
|
|
52
|
+
};
|
|
53
|
+
ObjectDataOutput.prototype.position = function (newPosition) {
|
|
54
|
+
var oldPos = this.pos;
|
|
55
|
+
if (Number.isInteger(newPosition)) {
|
|
56
|
+
this.pos = newPosition;
|
|
57
|
+
}
|
|
58
|
+
return oldPos;
|
|
59
|
+
};
|
|
60
|
+
ObjectDataOutput.prototype.toBuffer = function () {
|
|
61
|
+
return this.buffer.slice(0, this.pos);
|
|
62
|
+
};
|
|
63
|
+
ObjectDataOutput.prototype.write = function (byte) {
|
|
64
|
+
if (safe_buffer_1.Buffer.isBuffer(byte)) {
|
|
65
|
+
this.ensureAvailable(byte.length);
|
|
66
|
+
byte.copy(this.buffer, this.pos);
|
|
67
|
+
this.pos += byte.length;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
this.ensureAvailable(BitsUtil_1.BitsUtil.BYTE_SIZE_IN_BYTES);
|
|
71
|
+
BitsUtil_1.BitsUtil.writeUInt8(this.buffer, this.pos, byte & MASK_1BYTE);
|
|
72
|
+
this.pos += BitsUtil_1.BitsUtil.BYTE_SIZE_IN_BYTES;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
ObjectDataOutput.prototype.writeBoolean = function (val) {
|
|
76
|
+
this.write(val ? 1 : 0);
|
|
77
|
+
};
|
|
78
|
+
ObjectDataOutput.prototype.writeBooleanArray = function (val) {
|
|
79
|
+
this.writeArray(this.writeBoolean, val);
|
|
80
|
+
};
|
|
81
|
+
ObjectDataOutput.prototype.writeByte = function (byte) {
|
|
82
|
+
this.write(byte);
|
|
83
|
+
};
|
|
84
|
+
ObjectDataOutput.prototype.writeByteArray = function (bytes) {
|
|
85
|
+
this.writeArray(this.writeByte, bytes);
|
|
86
|
+
};
|
|
87
|
+
ObjectDataOutput.prototype.writeBytes = function (bytes) {
|
|
88
|
+
var len = (bytes != null) ? bytes.length : 0;
|
|
89
|
+
for (var i = 0; i < len; i++) {
|
|
90
|
+
this.write(bytes.charCodeAt(i));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
ObjectDataOutput.prototype.writeChar = function (char) {
|
|
94
|
+
this.ensureAvailable(BitsUtil_1.BitsUtil.CHAR_SIZE_IN_BYTES);
|
|
95
|
+
BitsUtil_1.BitsUtil.writeUInt16(this.buffer, this.pos, char.charCodeAt(0), this.isBigEndian());
|
|
96
|
+
this.pos += BitsUtil_1.BitsUtil.CHAR_SIZE_IN_BYTES;
|
|
97
|
+
};
|
|
98
|
+
ObjectDataOutput.prototype.writeCharArray = function (chars) {
|
|
99
|
+
this.writeArray(this.writeChar, chars);
|
|
100
|
+
};
|
|
101
|
+
ObjectDataOutput.prototype.writeChars = function (chars) {
|
|
102
|
+
var len = (chars != null) ? chars.length : BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH;
|
|
103
|
+
this.writeInt(len);
|
|
104
|
+
for (var i = 0; i < len; i++) {
|
|
105
|
+
this.writeChar(chars.charAt(i));
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
ObjectDataOutput.prototype.writeData = function (data) {
|
|
109
|
+
var buf = (data != null) ? data.toBuffer() : null;
|
|
110
|
+
var len = (buf != null) ? buf.length : BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH;
|
|
111
|
+
this.writeInt(len);
|
|
112
|
+
for (var i = 0; i < len; i++) {
|
|
113
|
+
this.write(buf[i]);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
ObjectDataOutput.prototype.writeDouble = function (double) {
|
|
117
|
+
this.ensureAvailable(BitsUtil_1.BitsUtil.DOUBLE_SIZE_IN_BYTES);
|
|
118
|
+
BitsUtil_1.BitsUtil.writeDouble(this.buffer, this.pos, double, this.isBigEndian());
|
|
119
|
+
this.pos += BitsUtil_1.BitsUtil.DOUBLE_SIZE_IN_BYTES;
|
|
120
|
+
};
|
|
121
|
+
ObjectDataOutput.prototype.writeDoubleArray = function (doubles) {
|
|
122
|
+
this.writeArray(this.writeDouble, doubles);
|
|
123
|
+
};
|
|
124
|
+
ObjectDataOutput.prototype.writeFloat = function (float) {
|
|
125
|
+
this.ensureAvailable(BitsUtil_1.BitsUtil.FLOAT_SIZE_IN_BYTES);
|
|
126
|
+
BitsUtil_1.BitsUtil.writeFloat(this.buffer, this.pos, float, this.isBigEndian());
|
|
127
|
+
this.pos += BitsUtil_1.BitsUtil.FLOAT_SIZE_IN_BYTES;
|
|
128
|
+
};
|
|
129
|
+
ObjectDataOutput.prototype.writeFloatArray = function (floats) {
|
|
130
|
+
this.writeArray(this.writeFloat, floats);
|
|
131
|
+
};
|
|
132
|
+
ObjectDataOutput.prototype.writeInt = function (int) {
|
|
133
|
+
this.ensureAvailable(BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES);
|
|
134
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, this.pos, int, this.isBigEndian());
|
|
135
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
136
|
+
};
|
|
137
|
+
ObjectDataOutput.prototype.writeIntBE = function (int) {
|
|
138
|
+
this.ensureAvailable(BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES);
|
|
139
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, this.pos, int, true);
|
|
140
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
141
|
+
};
|
|
142
|
+
ObjectDataOutput.prototype.writeIntArray = function (ints) {
|
|
143
|
+
this.writeArray(this.writeInt, ints);
|
|
144
|
+
};
|
|
145
|
+
ObjectDataOutput.prototype.writeLong = function (long) {
|
|
146
|
+
this.ensureAvailable(BitsUtil_1.BitsUtil.LONG_SIZE_IN_BYTES);
|
|
147
|
+
if (this.isBigEndian()) {
|
|
148
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, this.pos, long.high, true);
|
|
149
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
150
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, this.pos, long.low, true);
|
|
151
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, this.pos, long.low, false);
|
|
155
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
156
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, this.pos, long.high, false);
|
|
157
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
ObjectDataOutput.prototype.writeLongArray = function (longs) {
|
|
161
|
+
this.writeArray(this.writeLong, longs);
|
|
162
|
+
};
|
|
163
|
+
ObjectDataOutput.prototype.writeObject = function (object) {
|
|
164
|
+
this.service.writeObject(this, object);
|
|
165
|
+
};
|
|
166
|
+
ObjectDataOutput.prototype.writeShort = function (short) {
|
|
167
|
+
this.ensureAvailable(BitsUtil_1.BitsUtil.SHORT_SIZE_IN_BYTES);
|
|
168
|
+
BitsUtil_1.BitsUtil.writeInt16(this.buffer, this.pos, short, this.isBigEndian());
|
|
169
|
+
this.pos += BitsUtil_1.BitsUtil.SHORT_SIZE_IN_BYTES;
|
|
170
|
+
};
|
|
171
|
+
ObjectDataOutput.prototype.writeShortArray = function (shorts) {
|
|
172
|
+
this.writeArray(this.writeShort, shorts);
|
|
173
|
+
};
|
|
174
|
+
ObjectDataOutput.prototype.writeUTF = function (val) {
|
|
175
|
+
if (this.standardUTF) {
|
|
176
|
+
this.writeUTFStandard(val);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
this.writeUTFLegacy(val);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
ObjectDataOutput.prototype.writeUTFArray = function (val) {
|
|
183
|
+
this.writeArray(this.writeUTF, val);
|
|
184
|
+
};
|
|
185
|
+
ObjectDataOutput.prototype.writeZeroBytes = function (count) {
|
|
186
|
+
for (var i = 0; i < count; i++) {
|
|
187
|
+
this.write(0);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
ObjectDataOutput.prototype.available = function () {
|
|
191
|
+
return this.buffer == null ? 0 : this.buffer.length - this.pos;
|
|
192
|
+
};
|
|
193
|
+
ObjectDataOutput.prototype.ensureAvailable = function (size) {
|
|
194
|
+
if (this.available() < size) {
|
|
195
|
+
var newBuffer = safe_buffer_1.Buffer.allocUnsafe(this.pos + size);
|
|
196
|
+
this.buffer.copy(newBuffer, 0, 0, this.pos);
|
|
197
|
+
this.buffer = newBuffer;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
ObjectDataOutput.prototype.writeArray = function (func, arr) {
|
|
201
|
+
var len = (arr != null) ? arr.length : BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH;
|
|
202
|
+
this.writeInt(len);
|
|
203
|
+
if (len > 0) {
|
|
204
|
+
var boundFunc = func.bind(this);
|
|
205
|
+
arr.forEach(boundFunc);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
ObjectDataOutput.prototype.writeUTFStandard = function (val) {
|
|
209
|
+
var len = (val != null) ? val.length : BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH;
|
|
210
|
+
this.writeInt(len);
|
|
211
|
+
if (len === BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
var byteLen = safe_buffer_1.Buffer.byteLength(val, 'utf8');
|
|
215
|
+
this.ensureAvailable(byteLen);
|
|
216
|
+
this.buffer.write(val, this.pos, this.pos + byteLen, 'utf8');
|
|
217
|
+
this.pos += byteLen;
|
|
218
|
+
};
|
|
219
|
+
ObjectDataOutput.prototype.writeUTFLegacy = function (val) {
|
|
220
|
+
var len = (val != null) ? val.length : BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH;
|
|
221
|
+
this.writeInt(len);
|
|
222
|
+
this.ensureAvailable(len * 3);
|
|
223
|
+
for (var i = 0; i < len; i++) {
|
|
224
|
+
var ch = val.charCodeAt(i);
|
|
225
|
+
if (ch <= 0x007F) {
|
|
226
|
+
this.writeByte(ch);
|
|
227
|
+
}
|
|
228
|
+
else if (ch <= 0x07FF) {
|
|
229
|
+
this.write(0xC0 | ch >> 6 & 0x1F);
|
|
230
|
+
this.write(0x80 | ch & 0x3F);
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
this.write(0xE0 | ch >> 12 & 0x0F);
|
|
234
|
+
this.write(0x80 | ch >> 6 & 0x3F);
|
|
235
|
+
this.write(0x80 | ch & 0x3F);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
return ObjectDataOutput;
|
|
240
|
+
}());
|
|
241
|
+
exports.ObjectDataOutput = ObjectDataOutput;
|
|
242
|
+
var PositionalObjectDataOutput = /** @class */ (function (_super) {
|
|
243
|
+
__extends(PositionalObjectDataOutput, _super);
|
|
244
|
+
function PositionalObjectDataOutput() {
|
|
245
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
246
|
+
}
|
|
247
|
+
PositionalObjectDataOutput.prototype.pwrite = function (position, byte) {
|
|
248
|
+
if (safe_buffer_1.Buffer.isBuffer(byte)) {
|
|
249
|
+
byte.copy(this.buffer, position);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
this.buffer[position] = byte;
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
PositionalObjectDataOutput.prototype.pwriteBoolean = function (position, val) {
|
|
256
|
+
this.pwrite(position, val ? 1 : 0);
|
|
257
|
+
};
|
|
258
|
+
PositionalObjectDataOutput.prototype.pwriteByte = function (position, byte) {
|
|
259
|
+
this.pwrite(position, byte);
|
|
260
|
+
};
|
|
261
|
+
PositionalObjectDataOutput.prototype.pwriteChar = function (position, char) {
|
|
262
|
+
BitsUtil_1.BitsUtil.writeUInt16(this.buffer, position, char.charCodeAt(0), this.isBigEndian());
|
|
263
|
+
};
|
|
264
|
+
PositionalObjectDataOutput.prototype.pwriteDouble = function (position, double) {
|
|
265
|
+
BitsUtil_1.BitsUtil.writeDouble(this.buffer, position, double, this.isBigEndian());
|
|
266
|
+
};
|
|
267
|
+
PositionalObjectDataOutput.prototype.pwriteFloat = function (position, float) {
|
|
268
|
+
BitsUtil_1.BitsUtil.writeFloat(this.buffer, position, float, this.isBigEndian());
|
|
269
|
+
};
|
|
270
|
+
PositionalObjectDataOutput.prototype.pwriteInt = function (position, int) {
|
|
271
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, position, int, this.isBigEndian());
|
|
272
|
+
};
|
|
273
|
+
PositionalObjectDataOutput.prototype.pwriteIntBE = function (position, int) {
|
|
274
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, position, int, true);
|
|
275
|
+
};
|
|
276
|
+
PositionalObjectDataOutput.prototype.pwriteLong = function (position, long) {
|
|
277
|
+
if (this.isBigEndian()) {
|
|
278
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, position, long.high, true);
|
|
279
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, position + BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES, long.low, true);
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, position, long.low, false);
|
|
283
|
+
BitsUtil_1.BitsUtil.writeInt32(this.buffer, position + BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES, long.high, false);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
PositionalObjectDataOutput.prototype.pwriteShort = function (position, short) {
|
|
287
|
+
BitsUtil_1.BitsUtil.writeInt16(this.buffer, position, short, this.isBigEndian());
|
|
288
|
+
};
|
|
289
|
+
return PositionalObjectDataOutput;
|
|
290
|
+
}(ObjectDataOutput));
|
|
291
|
+
exports.PositionalObjectDataOutput = PositionalObjectDataOutput;
|
|
292
|
+
var ObjectDataInput = /** @class */ (function () {
|
|
293
|
+
function ObjectDataInput(buffer, offset, serializationService, isBigEndian, isStandardUTF) {
|
|
294
|
+
this.buffer = buffer;
|
|
295
|
+
this.offset = offset;
|
|
296
|
+
this.service = serializationService;
|
|
297
|
+
this.bigEndian = isBigEndian;
|
|
298
|
+
this.standardUTF = isStandardUTF;
|
|
299
|
+
this.pos = this.offset;
|
|
300
|
+
}
|
|
301
|
+
ObjectDataInput.prototype.isBigEndian = function () {
|
|
302
|
+
return this.bigEndian;
|
|
303
|
+
};
|
|
304
|
+
ObjectDataInput.prototype.position = function (newPosition) {
|
|
305
|
+
var oldPos = this.pos;
|
|
306
|
+
if (Number.isInteger(newPosition)) {
|
|
307
|
+
this.pos = newPosition;
|
|
308
|
+
}
|
|
309
|
+
return oldPos;
|
|
310
|
+
};
|
|
311
|
+
ObjectDataInput.prototype.read = function (pos) {
|
|
312
|
+
this.assertAvailable(BitsUtil_1.BitsUtil.BYTE_SIZE_IN_BYTES, pos);
|
|
313
|
+
if (pos === undefined) {
|
|
314
|
+
return BitsUtil_1.BitsUtil.readUInt8(this.buffer, this.pos++);
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
return BitsUtil_1.BitsUtil.readUInt8(this.buffer, pos);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
ObjectDataInput.prototype.readBoolean = function (pos) {
|
|
321
|
+
return this.read(pos) === 1;
|
|
322
|
+
};
|
|
323
|
+
ObjectDataInput.prototype.readBooleanArray = function (pos) {
|
|
324
|
+
return this.readArray(this.readBoolean, pos);
|
|
325
|
+
};
|
|
326
|
+
ObjectDataInput.prototype.readByte = function (pos) {
|
|
327
|
+
return this.read(pos);
|
|
328
|
+
};
|
|
329
|
+
ObjectDataInput.prototype.readByteArray = function (pos) {
|
|
330
|
+
return this.readArray(this.readByte, pos);
|
|
331
|
+
};
|
|
332
|
+
ObjectDataInput.prototype.readChar = function (pos) {
|
|
333
|
+
this.assertAvailable(BitsUtil_1.BitsUtil.CHAR_SIZE_IN_BYTES);
|
|
334
|
+
var readBytes;
|
|
335
|
+
if (pos === undefined) {
|
|
336
|
+
readBytes = BitsUtil_1.BitsUtil.readUInt16(this.buffer, this.pos, this.isBigEndian());
|
|
337
|
+
this.pos += BitsUtil_1.BitsUtil.CHAR_SIZE_IN_BYTES;
|
|
338
|
+
}
|
|
339
|
+
else {
|
|
340
|
+
readBytes = BitsUtil_1.BitsUtil.readUInt16(this.buffer, pos, this.isBigEndian());
|
|
341
|
+
}
|
|
342
|
+
return String.fromCharCode(readBytes);
|
|
343
|
+
};
|
|
344
|
+
ObjectDataInput.prototype.readCharArray = function (pos) {
|
|
345
|
+
return this.readArray(this.readChar, pos);
|
|
346
|
+
};
|
|
347
|
+
ObjectDataInput.prototype.readData = function () {
|
|
348
|
+
var bytes = this.readByteArray();
|
|
349
|
+
var data = bytes === null ? null : new HeapData_1.HeapData(safe_buffer_1.Buffer.from(bytes));
|
|
350
|
+
return data;
|
|
351
|
+
};
|
|
352
|
+
ObjectDataInput.prototype.readDouble = function (pos) {
|
|
353
|
+
this.assertAvailable(BitsUtil_1.BitsUtil.DOUBLE_SIZE_IN_BYTES, pos);
|
|
354
|
+
var ret;
|
|
355
|
+
if (pos === undefined) {
|
|
356
|
+
ret = BitsUtil_1.BitsUtil.readDouble(this.buffer, this.pos, this.isBigEndian());
|
|
357
|
+
this.pos += BitsUtil_1.BitsUtil.DOUBLE_SIZE_IN_BYTES;
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
ret = BitsUtil_1.BitsUtil.readDouble(this.buffer, pos, this.isBigEndian());
|
|
361
|
+
}
|
|
362
|
+
return ret;
|
|
363
|
+
};
|
|
364
|
+
ObjectDataInput.prototype.readDoubleArray = function (pos) {
|
|
365
|
+
return this.readArray(this.readDouble, pos);
|
|
366
|
+
};
|
|
367
|
+
ObjectDataInput.prototype.readFloat = function (pos) {
|
|
368
|
+
this.assertAvailable(BitsUtil_1.BitsUtil.FLOAT_SIZE_IN_BYTES, pos);
|
|
369
|
+
var ret;
|
|
370
|
+
if (pos === undefined) {
|
|
371
|
+
ret = BitsUtil_1.BitsUtil.readFloat(this.buffer, this.pos, this.isBigEndian());
|
|
372
|
+
this.pos += BitsUtil_1.BitsUtil.FLOAT_SIZE_IN_BYTES;
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
ret = BitsUtil_1.BitsUtil.readFloat(this.buffer, pos, this.isBigEndian());
|
|
376
|
+
}
|
|
377
|
+
return ret;
|
|
378
|
+
};
|
|
379
|
+
ObjectDataInput.prototype.readFloatArray = function (pos) {
|
|
380
|
+
return this.readArray(this.readFloat, pos);
|
|
381
|
+
};
|
|
382
|
+
ObjectDataInput.prototype.readInt = function (pos) {
|
|
383
|
+
this.assertAvailable(BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES, pos);
|
|
384
|
+
var ret;
|
|
385
|
+
if (pos === undefined) {
|
|
386
|
+
ret = BitsUtil_1.BitsUtil.readInt32(this.buffer, this.pos, this.isBigEndian());
|
|
387
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
ret = BitsUtil_1.BitsUtil.readInt32(this.buffer, pos, this.isBigEndian());
|
|
391
|
+
}
|
|
392
|
+
return ret;
|
|
393
|
+
};
|
|
394
|
+
ObjectDataInput.prototype.readIntArray = function (pos) {
|
|
395
|
+
return this.readArray(this.readInt, pos);
|
|
396
|
+
};
|
|
397
|
+
ObjectDataInput.prototype.readLong = function (pos) {
|
|
398
|
+
this.assertAvailable(BitsUtil_1.BitsUtil.LONG_SIZE_IN_BYTES, pos);
|
|
399
|
+
var first;
|
|
400
|
+
var second;
|
|
401
|
+
if (pos === undefined) {
|
|
402
|
+
first = BitsUtil_1.BitsUtil.readInt32(this.buffer, this.pos, this.isBigEndian());
|
|
403
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
404
|
+
second = BitsUtil_1.BitsUtil.readInt32(this.buffer, this.pos, this.isBigEndian());
|
|
405
|
+
this.pos += BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES;
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
first = BitsUtil_1.BitsUtil.readInt32(this.buffer, pos, this.isBigEndian());
|
|
409
|
+
second = BitsUtil_1.BitsUtil.readInt32(this.buffer, pos + BitsUtil_1.BitsUtil.INT_SIZE_IN_BYTES, this.isBigEndian());
|
|
410
|
+
}
|
|
411
|
+
if (this.isBigEndian()) {
|
|
412
|
+
return new Long(second, first);
|
|
413
|
+
}
|
|
414
|
+
else {
|
|
415
|
+
return new Long(first, second);
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
ObjectDataInput.prototype.readLongArray = function (pos) {
|
|
419
|
+
return this.readArray(this.readLong, pos);
|
|
420
|
+
};
|
|
421
|
+
ObjectDataInput.prototype.readObject = function () {
|
|
422
|
+
return this.service.readObject(this);
|
|
423
|
+
};
|
|
424
|
+
ObjectDataInput.prototype.readShort = function (pos) {
|
|
425
|
+
this.assertAvailable(BitsUtil_1.BitsUtil.SHORT_SIZE_IN_BYTES, pos);
|
|
426
|
+
var ret;
|
|
427
|
+
if (pos === undefined) {
|
|
428
|
+
ret = BitsUtil_1.BitsUtil.readInt16(this.buffer, this.pos, this.isBigEndian());
|
|
429
|
+
this.pos += BitsUtil_1.BitsUtil.SHORT_SIZE_IN_BYTES;
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
ret = BitsUtil_1.BitsUtil.readInt16(this.buffer, pos, this.isBigEndian());
|
|
433
|
+
}
|
|
434
|
+
return ret;
|
|
435
|
+
};
|
|
436
|
+
ObjectDataInput.prototype.readShortArray = function (pos) {
|
|
437
|
+
return this.readArray(this.readShort, pos);
|
|
438
|
+
};
|
|
439
|
+
ObjectDataInput.prototype.readUnsignedByte = function (pos) {
|
|
440
|
+
return this.read(pos);
|
|
441
|
+
};
|
|
442
|
+
ObjectDataInput.prototype.readUnsignedShort = function (pos) {
|
|
443
|
+
return this.readChar(pos).charCodeAt(0);
|
|
444
|
+
};
|
|
445
|
+
ObjectDataInput.prototype.readUTF = function (pos) {
|
|
446
|
+
if (this.standardUTF) {
|
|
447
|
+
return this.readUTFStandard(pos);
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
return this.readUTFLegacy(pos);
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
ObjectDataInput.prototype.readUTFArray = function (pos) {
|
|
454
|
+
return this.readArray(this.readUTF, pos);
|
|
455
|
+
};
|
|
456
|
+
ObjectDataInput.prototype.reset = function () {
|
|
457
|
+
this.pos = 0;
|
|
458
|
+
};
|
|
459
|
+
ObjectDataInput.prototype.skipBytes = function (count) {
|
|
460
|
+
this.pos += count;
|
|
461
|
+
};
|
|
462
|
+
ObjectDataInput.prototype.readCopy = function (other, numBytes) {
|
|
463
|
+
this.assertAvailable(numBytes, this.pos);
|
|
464
|
+
this.buffer.copy(other, 0, this.pos, this.pos + numBytes);
|
|
465
|
+
this.pos += numBytes;
|
|
466
|
+
};
|
|
467
|
+
ObjectDataInput.prototype.available = function () {
|
|
468
|
+
return this.buffer.length - this.pos;
|
|
469
|
+
};
|
|
470
|
+
ObjectDataInput.prototype.readArray = function (func, pos) {
|
|
471
|
+
var backupPos = this.pos;
|
|
472
|
+
if (pos !== undefined) {
|
|
473
|
+
this.pos = pos;
|
|
474
|
+
}
|
|
475
|
+
var len = this.readInt();
|
|
476
|
+
var arr = [];
|
|
477
|
+
for (var i = 0; i < len; i++) {
|
|
478
|
+
arr.push(func.call(this));
|
|
479
|
+
}
|
|
480
|
+
if (pos !== undefined) {
|
|
481
|
+
this.pos = backupPos;
|
|
482
|
+
}
|
|
483
|
+
return arr;
|
|
484
|
+
};
|
|
485
|
+
ObjectDataInput.prototype.assertAvailable = function (numOfBytes, pos) {
|
|
486
|
+
if (pos === void 0) { pos = this.pos; }
|
|
487
|
+
assert(pos >= 0);
|
|
488
|
+
assert(pos + numOfBytes <= this.buffer.length);
|
|
489
|
+
};
|
|
490
|
+
ObjectDataInput.prototype.readUTFLegacy = function (pos) {
|
|
491
|
+
var len = this.readInt(pos);
|
|
492
|
+
var readingIndex = this.addOrUndefined(pos, 4);
|
|
493
|
+
if (len === BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH) {
|
|
494
|
+
return null;
|
|
495
|
+
}
|
|
496
|
+
var result = '';
|
|
497
|
+
var leadingByte;
|
|
498
|
+
for (var i = 0; i < len; i++) {
|
|
499
|
+
var charCode = void 0;
|
|
500
|
+
leadingByte = this.readByte(readingIndex) & MASK_1BYTE;
|
|
501
|
+
readingIndex = this.addOrUndefined(readingIndex, 1);
|
|
502
|
+
var b = leadingByte & 0xFF;
|
|
503
|
+
switch (b >> 4) {
|
|
504
|
+
/* tslint:disable:no-switch-case-fall-through */
|
|
505
|
+
case 0:
|
|
506
|
+
case 1:
|
|
507
|
+
case 2:
|
|
508
|
+
case 3:
|
|
509
|
+
case 4:
|
|
510
|
+
case 5:
|
|
511
|
+
case 6:
|
|
512
|
+
case 7:
|
|
513
|
+
charCode = leadingByte;
|
|
514
|
+
break;
|
|
515
|
+
case 12:
|
|
516
|
+
case 13:
|
|
517
|
+
var first = (b & 0x1F) << 6;
|
|
518
|
+
var second = this.readByte(readingIndex) & 0x3F;
|
|
519
|
+
readingIndex = this.addOrUndefined(readingIndex, 1);
|
|
520
|
+
charCode = first | second;
|
|
521
|
+
break;
|
|
522
|
+
case 14:
|
|
523
|
+
var first2 = (b & 0x0F) << 12;
|
|
524
|
+
var second2 = (this.readByte(readingIndex) & 0x3F) << 6;
|
|
525
|
+
readingIndex = this.addOrUndefined(readingIndex, 1);
|
|
526
|
+
var third2 = this.readByte(readingIndex) & 0x3F;
|
|
527
|
+
readingIndex = this.addOrUndefined(readingIndex, 1);
|
|
528
|
+
charCode = (first2 | second2 | third2);
|
|
529
|
+
break;
|
|
530
|
+
default:
|
|
531
|
+
throw new RangeError('Malformed UTF8 string');
|
|
532
|
+
}
|
|
533
|
+
result += String.fromCharCode(charCode);
|
|
534
|
+
}
|
|
535
|
+
return result;
|
|
536
|
+
};
|
|
537
|
+
ObjectDataInput.prototype.readUTFStandard = function (pos) {
|
|
538
|
+
var len = this.readInt(pos);
|
|
539
|
+
var readPos = this.addOrUndefined(pos, 4) || this.pos;
|
|
540
|
+
if (len === BitsUtil_1.BitsUtil.NULL_ARRAY_LENGTH) {
|
|
541
|
+
return null;
|
|
542
|
+
}
|
|
543
|
+
// max char size in UTF-8 is 4 bytes, see RFC3629
|
|
544
|
+
// TODO: change to `maxByteLen = len;` in future when string serialization in client protocol changes
|
|
545
|
+
var maxByteLen = len * 4;
|
|
546
|
+
var available = this.available();
|
|
547
|
+
var readByteLen = maxByteLen > available ? available : maxByteLen;
|
|
548
|
+
var readStr = this.buffer.toString('utf8', readPos, readPos + readByteLen);
|
|
549
|
+
var result = readStr.substring(0, len);
|
|
550
|
+
if (pos === undefined) {
|
|
551
|
+
var realByteLen = safe_buffer_1.Buffer.byteLength(result, 'utf8');
|
|
552
|
+
this.pos += realByteLen;
|
|
553
|
+
}
|
|
554
|
+
return result;
|
|
555
|
+
};
|
|
556
|
+
ObjectDataInput.prototype.addOrUndefined = function (base, adder) {
|
|
557
|
+
if (base === undefined) {
|
|
558
|
+
return undefined;
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
return base + adder;
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
return ObjectDataInput;
|
|
565
|
+
}());
|
|
566
|
+
exports.ObjectDataInput = ObjectDataInput;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Predicate } from '../core/Predicate';
|
|
2
|
+
import { DataInput, DataOutput } from './Data';
|
|
3
|
+
import { IdentifiedDataSerializable, IdentifiedDataSerializableFactory } from './Serializable';
|
|
4
|
+
export declare const PREDICATE_FACTORY_ID = -32;
|
|
5
|
+
export declare abstract class AbstractPredicate implements Predicate {
|
|
6
|
+
abstract readData(input: DataInput): any;
|
|
7
|
+
abstract writeData(output: DataOutput): void;
|
|
8
|
+
getFactoryId(): number;
|
|
9
|
+
abstract getClassId(): number;
|
|
10
|
+
}
|
|
11
|
+
export declare class PredicateFactory implements IdentifiedDataSerializableFactory {
|
|
12
|
+
private idToConstructorMap;
|
|
13
|
+
constructor(allPredicates: any);
|
|
14
|
+
create(type: number): IdentifiedDataSerializable;
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.PREDICATE_FACTORY_ID = -32;
|
|
19
|
+
var AbstractPredicate = /** @class */ (function () {
|
|
20
|
+
function AbstractPredicate() {
|
|
21
|
+
}
|
|
22
|
+
AbstractPredicate.prototype.getFactoryId = function () {
|
|
23
|
+
return exports.PREDICATE_FACTORY_ID;
|
|
24
|
+
};
|
|
25
|
+
return AbstractPredicate;
|
|
26
|
+
}());
|
|
27
|
+
exports.AbstractPredicate = AbstractPredicate;
|
|
28
|
+
var PredicateFactory = /** @class */ (function () {
|
|
29
|
+
function PredicateFactory(allPredicates) {
|
|
30
|
+
this.idToConstructorMap = {};
|
|
31
|
+
for (var pred in allPredicates) {
|
|
32
|
+
// TODO accessing getClassId from prototype of uninitialized member function is not elegant.
|
|
33
|
+
this.idToConstructorMap[allPredicates[pred].prototype.getClassId()] = allPredicates[pred];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
PredicateFactory.prototype.create = function (type) {
|
|
37
|
+
if (this.idToConstructorMap[type]) {
|
|
38
|
+
return (new this.idToConstructorMap[type]());
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
throw new RangeError("There is no default predicate with id " + type + ".");
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return PredicateFactory;
|
|
45
|
+
}());
|
|
46
|
+
exports.PredicateFactory = PredicateFactory;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DataInput, DataOutput } from './Data';
|
|
2
|
+
import { PortableReader, PortableWriter } from './portable/PortableSerializer';
|
|
3
|
+
export interface IdentifiedDataSerializable {
|
|
4
|
+
readData(input: DataInput): any;
|
|
5
|
+
writeData(output: DataOutput): void;
|
|
6
|
+
getFactoryId(): number;
|
|
7
|
+
getClassId(): number;
|
|
8
|
+
}
|
|
9
|
+
export interface IdentifiedDataSerializableFactory {
|
|
10
|
+
create(type: number): IdentifiedDataSerializable;
|
|
11
|
+
}
|
|
12
|
+
export interface Portable {
|
|
13
|
+
getFactoryId(): number;
|
|
14
|
+
getClassId(): number;
|
|
15
|
+
writePortable(writer: PortableWriter): void;
|
|
16
|
+
readPortable(reader: PortableReader): void;
|
|
17
|
+
}
|
|
18
|
+
export interface VersionedPortable extends Portable {
|
|
19
|
+
getVersion(): number;
|
|
20
|
+
}
|
|
21
|
+
export interface PortableFactory {
|
|
22
|
+
create(classId: number): Portable;
|
|
23
|
+
}
|
|
@@ -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 });
|