Interface APIConfiguration
- 
public interface APIConfigurationInterface to show the configuration properties from both the SPI/API based on theConnectormakeup. Before this is passed into theConnectorFacadeFactoryone must callgetConfigurationProperties()and configure accordingly. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationPropertiesgetConfigurationProperties()Gets instance of the configuration properties.ObjectPoolConfigurationgetConnectorPoolConfiguration()Gets the connector pooling configuration.intgetProducerBufferSize()Get the size of the buffer.ResultsHandlerConfigurationgetResultsHandlerConfiguration()Get the configuration of the ResultsHandler chain of the Search operation.java.util.Set<java.lang.Class<? extends APIOperation>>getSupportedOperations()Get the set of operations that thisConnectorFacadewill support.intgetTimeout(java.lang.Class<? extends APIOperation> operation)Gets the timeout in milliseconds based on the operation provided.booleanisConnectorPoolingSupported()Determines if thisConnectoruses the framework's connector pooling.voidsetChangeListener(ConfigurationPropertyChangeListener changeListener)Add a configuration change listener callback handler.voidsetProducerBufferSize(int size)voidsetTimeout(java.lang.Class<? extends APIOperation> operation, int timeout)Sets the timeout value for the operation provided. 
 - 
 
- 
- 
Method Detail
- 
getConfigurationProperties
ConfigurationProperties getConfigurationProperties()
Gets instance of the configuration properties. These are initialized to their default values based on meta information. Caller can then modify the properties as needed. 
- 
setChangeListener
void setChangeListener(ConfigurationPropertyChangeListener changeListener)
Add a configuration change listener callback handler. This callback handler will be notified when connector push an event back to application to notify the initial configuration has to be changed before next time creating a new Connectorfacade in order to continue operate properly.- Parameters:
 changeListener- the callback handler to receive the change event.
 
- 
isConnectorPoolingSupported
boolean isConnectorPoolingSupported()
Determines if thisConnectoruses the framework's connector pooling.- Returns:
 - true if the 
Connectoruses the framework's connector pooling feature. 
 
- 
getConnectorPoolConfiguration
ObjectPoolConfiguration getConnectorPoolConfiguration()
Gets the connector pooling configuration. This is initialized to the default values. Caller can then modify the properties as needed. 
- 
getSupportedOperations
java.util.Set<java.lang.Class<? extends APIOperation>> getSupportedOperations()
Get the set of operations that thisConnectorFacadewill support. 
- 
setTimeout
void setTimeout(java.lang.Class<? extends APIOperation> operation, int timeout)
Sets the timeout value for the operation provided.- Parameters:
 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.
 
- 
getTimeout
int getTimeout(java.lang.Class<? extends APIOperation> operation)
Gets the timeout in milliseconds based on the operation provided.- Parameters:
 operation- particular operation to get a timeout for.- Returns:
 - milliseconds to wait for an operation to complete before throwing an error.
 
 
- 
setProducerBufferSize
void setProducerBufferSize(int size)
Sets the size of the buffer forConnectorthe supportSearchOpand what the results of the producer buffered.- Parameters:
 size- default is 100, if size is set to zero or less will disable buffering.
 
- 
getProducerBufferSize
int getProducerBufferSize()
Get the size of the buffer. 
- 
getResultsHandlerConfiguration
ResultsHandlerConfiguration getResultsHandlerConfiguration()
Get the configuration of the ResultsHandler chain of the Search operation. 
 - 
 
 -