コード例 #1
0
 def size(self):
     """Returns number of items in the Ringbuffer.
     
     Returns:
         hazelcast.future.Future[int]: The size of Ringbuffer.
     """
     request = ringbuffer_size_codec.encode_request(self.name)
     return self._invoke(request, ringbuffer_size_codec.decode_response)
コード例 #2
0
    def size(self):
        """
        Returns number of items in the Ringbuffer.

        :return: (long), the size of Ringbuffer.
        """
        request = ringbuffer_size_codec.encode_request(self.name)
        return self._invoke(request, ringbuffer_size_codec.decode_response)