Record Class SolrProducer.ActionContext

java.lang.Object
java.lang.Record
org.apache.camel.component.solr.SolrProducer.ActionContext
Enclosing class:
SolrProducer

public static record SolrProducer.ActionContext(SolrConfiguration configuration, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, org.apache.solr.client.solrj.SolrClient solrClient, SolrOperation operation, String collection, String requestHandler, org.apache.solr.common.params.ModifiableSolrParams solrParams) extends Record
An inner class providing all the information that an asynchronous action could need.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActionContext(SolrConfiguration configuration, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, org.apache.solr.client.solrj.SolrClient solrClient, SolrOperation operation, String collection, String requestHandler, org.apache.solr.common.params.ModifiableSolrParams solrParams)
    Creates an instance of a ActionContext record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.camel.AsyncCallback
    Returns the value of the callback record component.
    Returns the value of the collection record component.
    Returns the value of the configuration record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    org.apache.camel.Exchange
    Returns the value of the exchange record component.
    org.apache.solr.client.solrj.impl.HttpSolrClientBase
     
    final int
    Returns a hash code value for this object.
    Returns the value of the operation record component.
    Returns the value of the requestHandler record component.
    org.apache.solr.client.solrj.SolrClient
    Returns the value of the solrClient record component.
    org.apache.solr.common.params.ModifiableSolrParams
    Returns the value of the solrParams record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ActionContext

      public ActionContext(SolrConfiguration configuration, org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback, org.apache.solr.client.solrj.SolrClient solrClient, SolrOperation operation, String collection, String requestHandler, org.apache.solr.common.params.ModifiableSolrParams solrParams)
      Creates an instance of a ActionContext record class.
      Parameters:
      configuration - the value for the configuration record component
      exchange - the value for the exchange record component
      callback - the value for the callback record component
      solrClient - the value for the solrClient record component
      operation - the value for the operation record component
      collection - the value for the collection record component
      requestHandler - the value for the requestHandler record component
      solrParams - the value for the solrParams record component
  • Method Details

    • getAsyncSolrClient

      public org.apache.solr.client.solrj.impl.HttpSolrClientBase getAsyncSolrClient()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • configuration

      public SolrConfiguration configuration()
      Returns the value of the configuration record component.
      Returns:
      the value of the configuration record component
    • exchange

      public org.apache.camel.Exchange exchange()
      Returns the value of the exchange record component.
      Returns:
      the value of the exchange record component
    • callback

      public org.apache.camel.AsyncCallback callback()
      Returns the value of the callback record component.
      Returns:
      the value of the callback record component
    • solrClient

      public org.apache.solr.client.solrj.SolrClient solrClient()
      Returns the value of the solrClient record component.
      Returns:
      the value of the solrClient record component
    • operation

      public SolrOperation operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component
    • collection

      public String collection()
      Returns the value of the collection record component.
      Returns:
      the value of the collection record component
    • requestHandler

      public String requestHandler()
      Returns the value of the requestHandler record component.
      Returns:
      the value of the requestHandler record component
    • solrParams

      public org.apache.solr.common.params.ModifiableSolrParams solrParams()
      Returns the value of the solrParams record component.
      Returns:
      the value of the solrParams record component