public interface APIConfiguration
Connector
makeup.
Before this is passed into the ConnectorFacadeFactory
one must call
getConfigurationProperties()
and configure accordingly.Modifier and Type | Method and Description |
---|---|
ConfigurationProperties |
getConfigurationProperties()
Gets instance of the configuration properties.
|
ObjectPoolConfiguration |
getConnectorPoolConfiguration()
Gets the connector pooling configuration.
|
int |
getProducerBufferSize()
Get the size of the buffer.
|
ResultsHandlerConfiguration |
getResultsHandlerConfiguration()
Get the configuration of the ResultsHandler chain of the Search operation.
|
Set<Class<? extends APIOperation>> |
getSupportedOperations()
Get the set of operations that this
ConnectorFacade will support. |
int |
getTimeout(Class<? extends APIOperation> operation)
Gets the timeout in milliseconds based on the operation provided.
|
boolean |
isConnectorPoolingSupported()
Determines if this
Connector uses the framework's connector
pooling. |
void |
setInstanceName(String instanceName)
Set name of the instance that this facade represents.
|
void |
setProducerBufferSize(int size)
|
void |
setTimeout(Class<? extends APIOperation> operation,
int timeout)
Sets the timeout value for the operation provided.
|
ConfigurationProperties getConfigurationProperties()
boolean isConnectorPoolingSupported()
Connector
uses the framework's connector
pooling.Connector
uses the framework's connector pooling feature.ObjectPoolConfiguration getConnectorPoolConfiguration()
Set<Class<? extends APIOperation>> getSupportedOperations()
ConnectorFacade
will support.void setTimeout(Class<? extends APIOperation> operation, int timeout)
operation
- particular operation that requires a timeout.timeout
- milliseconds that the operation will wait in order to
complete. Values less than or equal to zero are considered to disable the timeout property.int getTimeout(Class<? extends APIOperation> operation)
operation
- particular operation to get a timeout for.void setProducerBufferSize(int size)
Connector
the support
SearchOp
and what the results of the producer buffered.size
- default is 100, if size is set to zero or less will disable buffering.int getProducerBufferSize()
ResultsHandlerConfiguration getResultsHandlerConfiguration()
void setInstanceName(String instanceName)
instanceName
- Name of the instance that this facade represents.Copyright © 2022. All rights reserved.