public class APIConfigurationImpl extends Object implements APIConfiguration
| Constructor and Description |
|---|
APIConfigurationImpl() |
APIConfigurationImpl(APIConfigurationImpl other) |
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 APIConfigurationConnector uses the framework's connector
pooling feature.public ObjectPoolConfiguration getConnectorPoolConfiguration()
getConnectorPoolConfiguration in interface APIConfigurationpublic ConfigurationPropertiesImpl getConfigurationProperties()
getConfigurationProperties in interface APIConfigurationpublic int getTimeout(Class<? extends APIOperation> operation)
getTimeout in interface APIConfigurationoperation - particular operation to get a timeout for.public Set<Class<? extends APIOperation>> getSupportedOperations()
ConnectorFacade will support.getSupportedOperations in interface APIConfigurationpublic void setTimeout(Class<? extends APIOperation> operation, int timeout)
setTimeout in interface APIConfigurationoperation - 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 APIConfigurationsize - default is 100, if size is set to zero or less will disable
buffering.public int getProducerBufferSize()
getProducerBufferSize in interface APIConfigurationpublic ResultsHandlerConfiguration getResultsHandlerConfiguration()
getResultsHandlerConfiguration in interface APIConfigurationpublic void setResultsHandlerConfiguration(ResultsHandlerConfiguration config)
public void setChangeListener(ConfigurationPropertyChangeListener changeListener)
APIConfigurationsetChangeListener in interface APIConfigurationchangeListener - the callback handler to receive the change event.public ConfigurationPropertyChangeListener getChangeListener()
Copyright © 2018–2025. All rights reserved.