public class APIConfigurationImpl extends Object implements APIConfiguration
Constructor and Description |
---|
APIConfigurationImpl() |
APIConfigurationImpl(APIConfigurationImpl other) |
Modifier and Type | Method and Description |
---|---|
ConfigurationPropertiesImpl |
getConfigurationProperties()
Gets instance of the configuration properties.
|
AbstractConnectorInfo |
getConnectorInfo() |
ObjectPoolConfiguration |
getConnectorPoolConfiguration()
Gets the connector pooling configuration.
|
String |
getInstanceName() |
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.
|
Map<Class<? extends APIOperation>,Integer> |
getTimeoutMap() |
boolean |
isConnectorPoolingSupported()
Determines if this
Connector uses the framework's connector
pooling. |
boolean |
isSupportedOperation(Class<? extends APIOperation> api) |
void |
setConfigurationProperties(ConfigurationPropertiesImpl properties) |
void |
setConnectorInfo(AbstractConnectorInfo connectorInfo) |
void |
setConnectorPoolConfiguration(ObjectPoolConfiguration config) |
void |
setConnectorPoolingSupported(boolean supported) |
void |
setInstanceName(String instanceName)
Set name of the instance that this facade represents.
|
void |
setProducerBufferSize(int size)
|
void |
setResultsHandlerConfiguration(ResultsHandlerConfiguration config) |
void |
setSupportedOperations(Set<Class<? extends APIOperation>> op) |
void |
setTimeout(Class<? extends APIOperation> operation,
int timeout)
Sets the timeout value for the operation provided.
|
void |
setTimeoutMap(Map<Class<? extends APIOperation>,Integer> map) |
public APIConfigurationImpl()
public APIConfigurationImpl(APIConfigurationImpl other)
public AbstractConnectorInfo getConnectorInfo()
public void setConnectorInfo(AbstractConnectorInfo connectorInfo)
public void setConnectorPoolingSupported(boolean supported)
public void setConnectorPoolConfiguration(ObjectPoolConfiguration config)
public void setConfigurationProperties(ConfigurationPropertiesImpl properties)
public Map<Class<? extends APIOperation>,Integer> getTimeoutMap()
public void setTimeoutMap(Map<Class<? extends APIOperation>,Integer> map)
public void setSupportedOperations(Set<Class<? extends APIOperation>> op)
public boolean isSupportedOperation(Class<? extends APIOperation> api)
public boolean isConnectorPoolingSupported()
Connector
uses the framework's connector
pooling.isConnectorPoolingSupported
in interface APIConfiguration
Connector
uses the framework's connector pooling feature.public ObjectPoolConfiguration getConnectorPoolConfiguration()
getConnectorPoolConfiguration
in interface APIConfiguration
public ConfigurationPropertiesImpl getConfigurationProperties()
getConfigurationProperties
in interface APIConfiguration
public int getTimeout(Class<? extends APIOperation> operation)
getTimeout
in interface APIConfiguration
operation
- particular operation to get a timeout for.public Set<Class<? extends APIOperation>> getSupportedOperations()
ConnectorFacade
will support.getSupportedOperations
in interface APIConfiguration
public void setTimeout(Class<? extends APIOperation> operation, int timeout)
setTimeout
in interface APIConfiguration
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.public void setProducerBufferSize(int size)
Connector
the support
SearchOp
and what the results of the producer buffered.setProducerBufferSize
in interface APIConfiguration
size
- default is 100, if size is set to zero or less will disable buffering.public int getProducerBufferSize()
getProducerBufferSize
in interface APIConfiguration
public ResultsHandlerConfiguration getResultsHandlerConfiguration()
getResultsHandlerConfiguration
in interface APIConfiguration
public void setResultsHandlerConfiguration(ResultsHandlerConfiguration config)
public void setInstanceName(String instanceName)
setInstanceName
in interface APIConfiguration
instanceName
- Name of the instance that this facade represents.public String getInstanceName()
Copyright © 2022. All rights reserved.