MCPcopy Create free account
hub / github.com/apache/thrift / registerDefault

Method registerDefault

lib/py/src/TMultiplexedProcessor.py:30–37  ·  view source on GitHub ↗

If a non-multiplexed processor connects to the server and wants to communicate, use the given processor to handle it. This mechanism allows servers to upgrade from non-multiplexed to multiplexed in a backwards-compatible way and still handle old clients.

(self, processor)

Source from the content-addressed store, hash-verified

28 self.services = {}
29
30 def registerDefault(self, processor):
31 """
32 If a non-multiplexed processor connects to the server and wants to
33 communicate, use the given processor to handle it. This mechanism
34 allows servers to upgrade from non-multiplexed to multiplexed in a
35 backwards-compatible way and still handle old clients.
36 """
37 self.defaultProcessor = processor
38
39 def registerProcessor(self, serviceName, processor):
40 self.services[serviceName] = processor

Callers 3

mainFunction · 0.95
getServerEngineFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 3

mainFunction · 0.76
getServerEngineFunction · 0.36
mainFunction · 0.36