Interface YammerComponentBuilderFactory.YammerComponentBuilder
-
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.yammer.YammerComponent>
- All Known Implementing Classes:
YammerComponentBuilderFactory.YammerComponentBuilderImpl
- Enclosing interface:
- YammerComponentBuilderFactory
public static interface YammerComponentBuilderFactory.YammerComponentBuilder extends ComponentBuilder<org.apache.camel.component.yammer.YammerComponent>
Builder for the Yammer component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default YammerComponentBuilderFactory.YammerComponentBuilder
accessToken(String accessToken)
The access token.default YammerComponentBuilderFactory.YammerComponentBuilder
autowiredEnabled(boolean autowiredEnabled)
Whether autowiring is enabled.default YammerComponentBuilderFactory.YammerComponentBuilder
bridgeErrorHandler(boolean bridgeErrorHandler)
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.default YammerComponentBuilderFactory.YammerComponentBuilder
configuration(org.apache.camel.component.yammer.YammerConfiguration configuration)
Component configuration.default YammerComponentBuilderFactory.YammerComponentBuilder
consumerKey(String consumerKey)
The consumer key.default YammerComponentBuilderFactory.YammerComponentBuilder
consumerSecret(String consumerSecret)
The consumer secret.default YammerComponentBuilderFactory.YammerComponentBuilder
delay(long delay)
Delay between polling in millis.default YammerComponentBuilderFactory.YammerComponentBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default YammerComponentBuilderFactory.YammerComponentBuilder
limit(int limit)
Return only the specified number of messages.default YammerComponentBuilderFactory.YammerComponentBuilder
newerThan(long newerThan)
Returns messages newer than the message ID specified as a numeric string.default YammerComponentBuilderFactory.YammerComponentBuilder
olderThan(long olderThan)
Returns messages older than the message ID specified as a numeric string.default YammerComponentBuilderFactory.YammerComponentBuilder
requestor(org.apache.camel.component.yammer.ApiRequestor requestor)
To use a specific requester to communicate with Yammer.default YammerComponentBuilderFactory.YammerComponentBuilder
threaded(String threaded)
threaded equals to true will only return the first message in each thread.default YammerComponentBuilderFactory.YammerComponentBuilder
useJson(boolean useJson)
Set to true if you want to use raw JSON rather than converting to POJOs.default YammerComponentBuilderFactory.YammerComponentBuilder
userId(String userId)
The user id.-
Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
-
-
-
Method Detail
-
useJson
default YammerComponentBuilderFactory.YammerComponentBuilder useJson(boolean useJson)
Set to true if you want to use raw JSON rather than converting to POJOs. The option is a: <code>boolean</code> type. Default: false Group: common- Parameters:
useJson
- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default YammerComponentBuilderFactory.YammerComponentBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
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 or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler
- the value to set- Returns:
- the dsl builder
-
delay
default YammerComponentBuilderFactory.YammerComponentBuilder delay(long delay)
Delay between polling in millis. The option is a: <code>long</code> type. Default: 5000 Group: consumer- Parameters:
delay
- the value to set- Returns:
- the dsl builder
-
limit
default YammerComponentBuilderFactory.YammerComponentBuilder limit(int limit)
Return only the specified number of messages. Works for threaded set to true and threaded set to extended. The option is a: <code>int</code> type. Default: -1 Group: consumer- Parameters:
limit
- the value to set- Returns:
- the dsl builder
-
newerThan
default YammerComponentBuilderFactory.YammerComponentBuilder newerThan(long newerThan)
Returns messages newer than the message ID specified as a numeric string. This should be used when polling for new messages. If you're looking at messages, and the most recent message returned is 3516, you can make a request with the parameter newerThan equals to 3516 to ensure that you do not get duplicate copies of messages already on your page. The option is a: <code>long</code> type. Default: -1 Group: consumer- Parameters:
newerThan
- the value to set- Returns:
- the dsl builder
-
olderThan
default YammerComponentBuilderFactory.YammerComponentBuilder olderThan(long olderThan)
Returns messages older than the message ID specified as a numeric string. This is useful for paginating messages. For example, if you're currently viewing 20 messages and the oldest is number 2912, you could append olderThan equals to 2912 to your request to get the 20 messages prior to those you're seeing. The option is a: <code>long</code> type. Default: -1 Group: consumer- Parameters:
olderThan
- the value to set- Returns:
- the dsl builder
-
threaded
default YammerComponentBuilderFactory.YammerComponentBuilder threaded(String threaded)
threaded equals to true will only return the first message in each thread. This parameter is intended for apps which display message threads collapsed. threaded equals to extended will return the thread starter messages in order of most recently active as well as the two most recent messages, as they are viewed in the default view on the Yammer web interface. The option is a: <code>java.lang.String</code> type. Group: consumer- Parameters:
threaded
- the value to set- Returns:
- the dsl builder
-
userId
default YammerComponentBuilderFactory.YammerComponentBuilder userId(String userId)
The user id. The option is a: <code>java.lang.String</code> type. Group: consumer- Parameters:
userId
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default YammerComponentBuilderFactory.YammerComponentBuilder lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default YammerComponentBuilderFactory.YammerComponentBuilder autowiredEnabled(boolean autowiredEnabled)
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
autowiredEnabled
- the value to set- Returns:
- the dsl builder
-
configuration
default YammerComponentBuilderFactory.YammerComponentBuilder configuration(org.apache.camel.component.yammer.YammerConfiguration configuration)
Component configuration. The option is a: <code>org.apache.camel.component.yammer.YammerConfiguration</code> type. Group: advanced- Parameters:
configuration
- the value to set- Returns:
- the dsl builder
-
requestor
default YammerComponentBuilderFactory.YammerComponentBuilder requestor(org.apache.camel.component.yammer.ApiRequestor requestor)
To use a specific requester to communicate with Yammer. The option is a: <code>org.apache.camel.component.yammer.ApiRequestor</code> type. Group: advanced- Parameters:
requestor
- the value to set- Returns:
- the dsl builder
-
accessToken
default YammerComponentBuilderFactory.YammerComponentBuilder accessToken(String accessToken)
The access token. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
accessToken
- the value to set- Returns:
- the dsl builder
-
consumerKey
default YammerComponentBuilderFactory.YammerComponentBuilder consumerKey(String consumerKey)
The consumer key. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
consumerKey
- the value to set- Returns:
- the dsl builder
-
consumerSecret
default YammerComponentBuilderFactory.YammerComponentBuilder consumerSecret(String consumerSecret)
The consumer secret. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
consumerSecret
- the value to set- Returns:
- the dsl builder
-
-