Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5170

Update Bindings to include CSOT

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: CSOT
    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Currently bindings have two jobs - a) create connection sources b) BindingContext implementation - provide operation based contexts.

      After discussion, the binding should contain a CSOT class - so it can be passed to server selection and connection.read.

      Approach chosen was to refactor BindingContext to be a supplier of all the contexts. Lift OperationContext so its available via the bindingContext and use that object to include Request/Session/Timeout contexts. This new version of OperationContext can be passed down to Cluster.selectServer and Connection.command.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: