Exemple #1
0
 def discard(self, n=-1, qid=-1, **handlers):
     # Just ignore n and qid, it is not supported in the Bolt 3 Protocol.
     log.debug("[#%04X]  C: DISCARD_ALL", self.local_port)
     self._append(b"\x2F", (), Response(self, **handlers))
Exemple #2
0
 def discard(self, n=-1, qid=-1, **handlers):
     extra = {"n": n}
     if qid != -1:
         extra["qid"] = qid
     log.debug("[#%04X]  C: DISCARD %r", self.local_port, extra)
     self._append(b"\x2F", (extra, ), Response(self, **handlers))
Exemple #3
0
 def rollback(self, **handlers):
     log.debug("[#%04X]  C: ROLLBACK", self.local_port)
     self._append(b"\x13", (), Response(self, **handlers))
Exemple #4
0
 def pull(self, n=-1, qid=-1, **handlers):
     # Just ignore n and qid, it is not supported in the Bolt 3 Protocol.
     log.debug("[#%04X]  C: PULL_ALL", self.local_port)
     self._append(b"\x3F", (), Response(self, **handlers))
     self._is_reset = False