def CreateRPC(self): """Creates RPC object instance. Returns: a instance of RPC. """ return apiproxy_rpc.RealRPC(stub=self)
def CreateRPC(self): """Creates RPC object instance. Returns: a instance of RPC. """ # AppScale: Use custom thread-based RPC. return apiproxy_rpc.RealRPC(stub=self)
def CreateRPC(self): """ Create an RPC that can be used asynchronously. """ # If the runtime is importing a module, fall back to the non-threaded RPC. # This prevents a deadlock in cases when the RealRPC thread tries to # acquire the import lock. if imp.lock_held(): return apiproxy_rpc.RPC(stub=self) else: return apiproxy_rpc.RealRPC(stub=self)
def CreateRPC(self): """ Create an RPC that can be used asynchronously. """ if imp.lock_held(): return apiproxy_rpc.RPC(stub=self) else: return apiproxy_rpc.RealRPC(stub=self)
def CreateRPC(self): """ Create an RPC that can be used asynchronously. """ return apiproxy_rpc.RealRPC(stub=self)
def CreateRPC(self): return apiproxy_rpc.RealRPC(stub=self)