org.apache.camel.component.cometd
Class CometdEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.cometd.CometdEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton
public class CometdEndpoint
- extends DefaultEndpoint
Endpoint for Camel Cometd.
- Version:
- $Revision:520964 $
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString |
CometdEndpoint
public CometdEndpoint(CometdComponent component,
String uri,
String remaining,
Map<String,Object> parameters)
createProducer
public Producer createProducer()
throws Exception
- Description copied from interface:
Endpoint
- Creates a new producer which is used send messages into the endpoint
- Returns:
- a newly created producer
- Throws:
Exception - can be thrown
createConsumer
public Consumer createConsumer(Processor processor)
throws Exception
- Description copied from interface:
Endpoint
- Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
- Parameters:
processor - the given processor
- Returns:
- a newly created consumer
- Throws:
Exception - can be thrown
connect
public void connect(CometdProducerConsumer prodcons)
throws Exception
- Throws:
Exception
disconnect
public void disconnect(CometdProducerConsumer prodcons)
throws Exception
- Throws:
Exception
getComponent
public CometdComponent getComponent()
- Overrides:
getComponent in class DefaultEndpoint
isSingleton
public boolean isSingleton()
- Description copied from interface:
IsSingleton
- Whether this class supports being singleton or not.
- Returns:
- true to be a single shared instance, false to create new instances.
getPath
public String getPath()
getPort
public int getPort()
getProtocol
public String getProtocol()
getUri
public URI getUri()
getBaseResource
public String getBaseResource()
setBaseResource
public void setBaseResource(String baseResource)
getTimeout
public int getTimeout()
setTimeout
public void setTimeout(int timeout)
getInterval
public int getInterval()
setInterval
public void setInterval(int interval)
getMaxInterval
public int getMaxInterval()
setMaxInterval
public void setMaxInterval(int maxInterval)
getMultiFrameInterval
public int getMultiFrameInterval()
setMultiFrameInterval
public void setMultiFrameInterval(int multiFrameInterval)
isJsonCommented
public boolean isJsonCommented()
setJsonCommented
public void setJsonCommented(boolean commented)
getLogLevel
public int getLogLevel()
setLogLevel
public void setLogLevel(int logLevel)
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.