The pgevent component allows for producing/consuming PostgreSQL events related to the LISTEN/NOTIFY commands. This requires using PostgreSQL 8.3 or newer.
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
host | path | common | localhost | java.lang.String | To connect using hostname and port to the database. | ||
port | path | common | 5432 | java.lang.Integer | To connect using hostname and port to the database. | ||
database | path | common | true | java.lang.String | The database name | ||
channel | path | common | true | java.lang.String | The channel name | ||
datasource | parameter | common | javax.sql.DataSource | To connect using the given {@link javax.sql.DataSource} instead of using hostname and port. | |||
pass | parameter | common | java.lang.String | Password for login | |||
user | parameter | common | postgres | java.lang.String | Username for login | ||
bridgeErrorHandler | parameter | consumer | boolean | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |
The PgEvent consumer.