Package org.apache.camel.component.solr
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
ConstructorsConstructorDescriptionActionContext(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 aActionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.AsyncCallbackcallback()Returns the value of thecallbackrecord component.Returns the value of thecollectionrecord component.Returns the value of theconfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.org.apache.camel.Exchangeexchange()Returns the value of theexchangerecord component.org.apache.solr.client.solrj.impl.HttpSolrClientBasefinal inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.Returns the value of therequestHandlerrecord component.org.apache.solr.client.solrj.SolrClientReturns the value of thesolrClientrecord component.org.apache.solr.common.params.ModifiableSolrParamsReturns the value of thesolrParamsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aActionContextrecord class.- Parameters:
configuration- the value for theconfigurationrecord componentexchange- the value for theexchangerecord componentcallback- the value for thecallbackrecord componentsolrClient- the value for thesolrClientrecord componentoperation- the value for theoperationrecord componentcollection- the value for thecollectionrecord componentrequestHandler- the value for therequestHandlerrecord componentsolrParams- the value for thesolrParamsrecord component
-
-
Method Details
-
getAsyncSolrClient
public org.apache.solr.client.solrj.impl.HttpSolrClientBase getAsyncSolrClient() -
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
exchange
public org.apache.camel.Exchange exchange()Returns the value of theexchangerecord component.- Returns:
- the value of the
exchangerecord component
-
callback
public org.apache.camel.AsyncCallback callback()Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-
solrClient
public org.apache.solr.client.solrj.SolrClient solrClient()Returns the value of thesolrClientrecord component.- Returns:
- the value of the
solrClientrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
requestHandler
Returns the value of therequestHandlerrecord component.- Returns:
- the value of the
requestHandlerrecord component
-
solrParams
public org.apache.solr.common.params.ModifiableSolrParams solrParams()Returns the value of thesolrParamsrecord component.- Returns:
- the value of the
solrParamsrecord component
-