|
7 | 7 | from hazelcast.internal.asyncio_compact import CompactSchemaService |
8 | 8 | from hazelcast.config import Config, IndexConfig |
9 | 9 | from hazelcast.internal.asyncio_connection import ConnectionManager, DefaultAsyncioAddressProvider |
10 | | -from hazelcast.core import DistributedObjectEvent, DistributedObjectInfo |
| 10 | +from hazelcast.core import DistributedObjectEvent |
11 | 11 | from hazelcast.discovery import HazelcastCloudAddressProvider |
12 | 12 | from hazelcast.errors import IllegalStateError, InvalidConfigurationError |
13 | 13 | from hazelcast.internal.asyncio_invocation import InvocationService, Invocation |
|
18 | 18 | from hazelcast.internal.asyncio_partition import PartitionService, InternalPartitionService |
19 | 19 | from hazelcast.protocol.codec import ( |
20 | 20 | client_add_distributed_object_listener_codec, |
21 | | - client_get_distributed_objects_codec, |
22 | 21 | client_remove_distributed_object_listener_codec, |
23 | 22 | dynamic_config_add_vector_collection_config_codec, |
24 | 23 | ) |
25 | 24 | from hazelcast.internal.asyncio_proxy.manager import ( |
26 | 25 | LIST_SERVICE, |
27 | 26 | MAP_SERVICE, |
| 27 | + MULTI_MAP_SERVICE, |
28 | 28 | ProxyManager, |
29 | 29 | REPLICATED_MAP_SERVICE, |
30 | 30 | VECTOR_SERVICE, |
31 | 31 | ) |
32 | | -from hazelcast.internal.asyncio_proxy.base import Proxy |
33 | 32 | from hazelcast.internal.asyncio_proxy.list import List |
34 | 33 | from hazelcast.internal.asyncio_proxy.map import Map |
| 34 | +from hazelcast.internal.asyncio_proxy.multi_map import MultiMap |
35 | 35 | from hazelcast.internal.asyncio_proxy.replicated_map import ReplicatedMap |
36 | 36 | from hazelcast.internal.asyncio_reactor import AsyncioReactor |
37 | 37 | from hazelcast.serialization import SerializationServiceV1 |
@@ -274,6 +274,17 @@ async def get_map(self, name: str) -> Map[KeyType, ValueType]: |
274 | 274 | """ |
275 | 275 | return await self._proxy_manager.get_or_create(MAP_SERVICE, name) |
276 | 276 |
|
| 277 | + async def get_multi_map(self, name: str) -> MultiMap[KeyType, ValueType]: |
| 278 | + """Returns the distributed MultiMap instance with the specified name. |
| 279 | +
|
| 280 | + Args: |
| 281 | + name: Name of the distributed MultiMap. |
| 282 | +
|
| 283 | + Returns: |
| 284 | + Distributed MultiMap instance with the specified name. |
| 285 | + """ |
| 286 | + return await self._proxy_manager.get_or_create(MULTI_MAP_SERVICE, name) |
| 287 | + |
277 | 288 | async def get_replicated_map(self, name: str) -> ReplicatedMap[KeyType, ValueType]: |
278 | 289 | """Returns the distributed ReplicatedMap instance with the specified |
279 | 290 | name. |
|
0 commit comments