Beispiel #1
0
        public ISet <TKey> KeySet()
        {
            var request = ReplicatedMapKeySetCodec.EncodeRequest(GetName());
            var result  = InvokeOnPartition(request, _targetPartitionId, m => ReplicatedMapKeySetCodec.DecodeResponse(m).response);

            return(new ReadOnlyLazySet <TKey>(result, GetContext().GetSerializationService()));
        }
Beispiel #2
0
        public async Task <IReadOnlyCollection <TValue> > GetValuesAsync()
        {
            var requestMessage  = ReplicatedMapValuesCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, _partitionId).CfAwait();

            var response = ReplicatedMapKeySetCodec.DecodeResponse(responseMessage).Response;

            return(new ReadOnlyLazyList <TValue>(response, SerializationService));
        }