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

Update Bindings to include CSOT

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Unknown Unknown
    • None
    • None
    • 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?

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: