MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / get_request_id

Method get_request_id

cassandra/connection.py:1050–1061  ·  view source on GitHub ↗

This must be called while self.lock is held.

(self)

Source from the content-addressed store, hash-verified

1048 t.start()
1049
1050 def get_request_id(self):
1051 """
1052 This must be called while self.lock is held.
1053 """
1054 try:
1055 return self.request_ids.popleft()
1056 except IndexError:
1057 new_request_id = self.highest_request_id + 1
1058 # in_flight checks should guarantee this
1059 assert new_request_id <= self.max_request_id
1060 self.highest_request_id = new_request_id
1061 return self.highest_request_id
1062
1063 def handle_pushed(self, response):
1064 log.debug("Message pushed from server: %r", response)

Callers 13

wait_for_responsesMethod · 0.95
_send_options_messageMethod · 0.95
_send_startup_messageMethod · 0.95
_handle_auth_responseMethod · 0.95
set_keyspace_asyncMethod · 0.95
send_msgsMethod · 0.80
update_next_pagesMethod · 0.80
cancelMethod · 0.80
__init__Method · 0.80
borrow_connectionMethod · 0.80
borrow_connectionMethod · 0.80

Calls

no outgoing calls

Tested by 1

send_msgsMethod · 0.64