コード例 #1
0
    def size(self) -> Future[int]:
        """Returns the number of items in this set.

        Returns:
            Number of items in this set.
        """
        request = set_size_codec.encode_request(self.name)
        return self._invoke(request, set_size_codec.decode_response)
コード例 #2
0
    def size(self):
        """
        Returns the number of items in this set.

        :return: (int), number of items in this set.
        """
        request = set_size_codec.encode_request(self.name)
        return self._invoke(request, set_size_codec.decode_response)
コード例 #3
0
    def size(self):
        # type: () -> Future[int]
        """Returns the number of items in this set.

        Returns:
            hazelcast.future.Future[int]: Number of items in this set.
        """
        request = set_size_codec.encode_request(self.name)
        return self._invoke(request, set_size_codec.decode_response)