@Tags(value={"dbcp","jdbc","database","connection","pooling","store"}) @CapabilityDescription(value="Provides Database Connection Pooling Service. Connections can be asked from pool and returned after usage.") public interface DBCPService extends ControllerService
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
default Connection |
getConnection(Map<String,String> attributes)
Allows a Map of attributes to be passed to the DBCPService for use in configuration, etc.
|
default FlowFileFilter |
getFlowFileFilter()
Implementation classes should override this method to provide DBCPService specific FlowFile filtering rule.
|
default FlowFileFilter |
getFlowFileFilter(int batchSize)
An utility default method to composite DBCPService specific filtering provided by
getFlowFileFilter() and batch size limitation. |
initialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateConnection getConnection() throws ProcessException
ProcessExceptiondefault Connection getConnection(Map<String,String> attributes) throws ProcessException
attributes - a Map of attributes to be passed to the DBCPService. The use of these
attributes is implementation-specific, and the source of the attributes
is processor-specificProcessException - if an error occurs while getting a connectiondefault FlowFileFilter getFlowFileFilter()
default FlowFileFilter getFlowFileFilter(int batchSize)
getFlowFileFilter() and batch size limitation.
Implementation classes do not have to override this method. Instead, override getFlowFileFilter() to provide service specific filtering.
Components using this service and also accepting multiple incoming FlowFiles should use
the FlowFileFilter returned by this method to get target FlowFiles from a process session.batchSize - the maximum number of FlowFiles to acceptCopyright © 2023 Apache NiFi Project. All rights reserved.