SwiftclassSiriRequestDispatcher
CandidateRequestAwareBridgeBase
class SiriRequestDispatcher.CandidateRequestAwareBridgeBase
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 16
- deinit
deinit - field
var activeRequestProcessor: SiriRequestDispatcher.RequestProcessorBase? - field
var previousProcessorTimeout: Dispatch.DispatchTimeInterval - field
var requestIdToCandidateRequestProcessor: [String : SiriRequestDispatcher.RequestProcessorBase] - field
let waitBeforeReplacingActiveRequest: Bool - func
createRequestProcessor(withRequestId: String, assistantId: String, sessionId: Foundation.UUID, isCandidateRequest: Bool) throws -> SiriRequestDispatcher.RequestProcessorBase - func
createRequestProcessor(withRequestId: String, assistantId: String, sessionId: Foundation.UUID, isCandidateRequest: Bool, rootRequestId: String) throws -> SiriRequestDispatcher.RequestProcessorBase - func
dispatchAsync<A, B where A1: SiriRequestDispatcher.RequestProcessorBase, B1: SiriMessageTypes.MessageBase>(message: B1, toRequestProcessor: A1, usingHandler: (B1) throws -> ()) -> () - func
dispatchAsync<A, B where A1: SiriRequestDispatcher.RequestProcessorBase, B1: SABaseClientBoundCommand>(command: B1, toRequestProcessor: A1, executionContextInfo: AFCommandExecutionInfo, reply: ((SAAceCommand?, Error?) -> ())?, usingHandler: (A1) -> (B1, AFCommandExecutionInfo, ((SAAceCommand?, Error?) -> ())?) -> ()) -> () - func
dispatchCommandToRequestProcessor<A, B where A1: SABaseClientBoundCommand, B1: SiriRequestDispatcher.RequestProcessorBase>(_: A1, executionContextInfo: AFCommandExecutionInfo, reply: ((SAAceCommand?, Error?) -> ())?, handler: (B1) -> (A1, AFCommandExecutionInfo, ((SAAceCommand?, Error?) -> ())?) -> ()) -> () - func
registerMessageHandler<A, B where A1: SiriMessageTypes.RequestMessageBase, B1: SiriRequestDispatcher.RequestProcessorBase>(_: (B1) -> (A1) -> (), messageHandlerType: SiriRequestDispatcher.MessageHandlerType) -> () - func
registerMessageHandler<A, B where A1: SiriMessageTypes.RequestMessageBase, B1: SiriRequestDispatcher.RequestProcessorBase>(_: (B1) -> (A1) throws -> (), messageHandlerType: SiriRequestDispatcher.MessageHandlerType) -> () - func
tryToDispatchCommandToRequestProcessor<A, B where A1: SABaseClientBoundCommand, B1: SiriRequestDispatcher.RequestProcessorBase>(_: A1, executionContextInfo: AFCommandExecutionInfo, reply: ((SAAceCommand?, Error?) -> ())?, handler: (B1) -> (A1, AFCommandExecutionInfo, ((SAAceCommand?, Error?) -> ())?) -> ()) -> Bool - init
SiriRequestDispatcher.CandidateRequestAwareBridgeBase.__allocating_init(name: String, messagePublisher: SiriMessageTypes.MessagePublishing, serviceHelper: AFRequestDispatcherServiceHelper, queue: OS_dispatch_queue, conversationSessionsManager: SiriMessageTypes.ConversationSessionsManaging, logger: os.Logger, waitBeforeReplacingActiveRequest: Bool) -> SiriRequestDispatcher.CandidateRequestAwareBridgeBase<A> - init
SiriRequestDispatcher.CandidateRequestAwareBridgeBase.__allocating_init(String, SiriMessageTypes.MessagePublishing, AFRequestDispatcherServiceHelper, OS_dispatch_queue, SiriMessageTypes.ConversationSessionsManaging, os.Logger) -> SiriRequestDispatcher.CandidateRequestAwareBridgeBase<A> - init
SiriRequestDispatcher.CandidateRequestAwareBridgeBase.__allocating_init(String, SiriMessageTypes.MessagePublishing, AFRequestDispatcherServiceHelper, OS_dispatch_queue, SiriMessageTypes.ConversationSessionsManaging) -> SiriRequestDispatcher.CandidateRequestAwareBridgeBase<A>
Header
class CandidateRequestAwareBridgeBase<A>: SiriRequestDispatcher.MessageDispatchingBridgeBase<A> where A: AnyObject { let waitBeforeReplacingActiveRequest: Swift.Bool var previousProcessorTimeout: Dispatch.DispatchTimeInterval var activeRequestProcessor: SiriRequestDispatcher.RequestProcessorBase? var requestIdToCandidateRequestProcessor: [Swift.String : SiriRequestDispatcher.RequestProcessorBase] override init(_: Swift.String, _: any SiriMessageTypes.MessagePublishing, _: any __C.AFRequestDispatcherServiceHelper, _: __C.OS_dispatch_queue, _: any SiriMessageTypes.ConversationSessionsManaging) override init(_: Swift.String, _: any SiriMessageTypes.MessagePublishing, _: any __C.AFRequestDispatcherServiceHelper, _: __C.OS_dispatch_queue, _: any SiriMessageTypes.ConversationSessionsManaging, _: os.Logger) init(name: Swift.String, messagePublisher: any SiriMessageTypes.MessagePublishing, serviceHelper: any __C.AFRequestDispatcherServiceHelper, queue: __C.OS_dispatch_queue, conversationSessionsManager: any SiriMessageTypes.ConversationSessionsManaging, logger: os.Logger, waitBeforeReplacingActiveRequest: Swift.Bool) func registerMessageHandler<A1, B1>(_: @escaping (_: B1) -> (_: A1) -> (), messageHandlerType: SiriRequestDispatcher.MessageHandlerType) where A1: SiriMessageTypes.RequestMessageBase, B1: SiriRequestDispatcher.RequestProcessorBase func registerMessageHandler<A1, B1>(_: @escaping (_: B1) -> (_: A1) throws -> (), messageHandlerType: SiriRequestDispatcher.MessageHandlerType) where A1: SiriMessageTypes.RequestMessageBase, B1: SiriRequestDispatcher.RequestProcessorBase func createRequestProcessor(withRequestId: Swift.String, assistantId: Swift.String, sessionId: Foundation.UUID, isCandidateRequest: Swift.Bool) throws -> SiriRequestDispatcher.RequestProcessorBase func createRequestProcessor(withRequestId: Swift.String, assistantId: Swift.String, sessionId: Foundation.UUID, isCandidateRequest: Swift.Bool, rootRequestId: Swift.String) throws -> SiriRequestDispatcher.RequestProcessorBase func tryToDispatchCommandToRequestProcessor<A1, B1>(_: A1, executionContextInfo: __C.AFCommandExecutionInfo, reply: (((any __C.SAAceCommand)?, (any Swift.Error)?) -> ())?, handler: @escaping (_: B1) -> (A1, __C.AFCommandExecutionInfo, (((any __C.SAAceCommand)?, (any Swift.Error)?) -> ())?) -> ()) -> Swift.Bool where A1: __C.SABaseClientBoundCommand, B1: SiriRequestDispatcher.RequestProcessorBase func dispatchCommandToRequestProcessor<A1, B1>(_: A1, executionContextInfo: __C.AFCommandExecutionInfo, reply: (((any __C.SAAceCommand)?, (any Swift.Error)?) -> ())?, handler: @escaping (_: B1) -> (A1, __C.AFCommandExecutionInfo, (((any __C.SAAceCommand)?, (any Swift.Error)?) -> ())?) -> ()) where A1: __C.SABaseClientBoundCommand, B1: SiriRequestDispatcher.RequestProcessorBase func dispatchAsync<A1, B1>(message: B1, toRequestProcessor: A1, usingHandler: @escaping (_: B1) throws -> ()) where A1: SiriRequestDispatcher.RequestProcessorBase, B1: SiriMessageTypes.MessageBase func dispatchAsync<A1, B1>(command: B1, toRequestProcessor: A1, executionContextInfo: __C.AFCommandExecutionInfo, reply: (((any __C.SAAceCommand)?, (any Swift.Error)?) -> ())?, usingHandler: @escaping (_: A1) -> (B1, __C.AFCommandExecutionInfo, (((any __C.SAAceCommand)?, (any Swift.Error)?) -> ())?) -> ()) where A1: SiriRequestDispatcher.RequestProcessorBase, B1: __C.SABaseClientBoundCommand deinit }