org.apache.camel.component.jgroups
Class JGroupsEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.jgroups.JGroupsEndpoint
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class JGroupsEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
| Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString |
| Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
| Methods inherited from interface org.apache.camel.Service |
start, stop |
HEADER_JGROUPS_ORIGINAL_MESSAGE
public static final String HEADER_JGROUPS_ORIGINAL_MESSAGE
- See Also:
- Constant Field Values
HEADER_JGROUPS_SRC
public static final String HEADER_JGROUPS_SRC
- See Also:
- Constant Field Values
HEADER_JGROUPS_DEST
public static final String HEADER_JGROUPS_DEST
- See Also:
- Constant Field Values
HEADER_JGROUPS_CHANNEL_ADDRESS
public static final String HEADER_JGROUPS_CHANNEL_ADDRESS
- See Also:
- Constant Field Values
JGroupsEndpoint
public JGroupsEndpoint(String endpointUri,
org.apache.camel.Component component,
org.jgroups.Channel channel,
String clusterName,
String channelProperties,
Boolean enableViewMessages)
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Throws:
Exception
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
- Throws:
Exception
isSingleton
public boolean isSingleton()
createExchange
public org.apache.camel.Exchange createExchange(org.jgroups.Message message)
createExchange
public org.apache.camel.Exchange createExchange(org.jgroups.View view)
createExchange
public org.apache.camel.Exchange createExchange()
- Specified by:
createExchange in interface org.apache.camel.Endpoint- Overrides:
createExchange in class org.apache.camel.impl.DefaultEndpoint
doStart
protected void doStart()
throws Exception
- Overrides:
doStart in class org.apache.camel.impl.DefaultEndpoint
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop in class org.apache.camel.impl.DefaultEndpoint
- Throws:
Exception
connect
public void connect()
throws Exception
- Connect shared channel, called by producer and consumer.
- Throws:
Exception
disconnect
public void disconnect()
- Disconnect shared channel, called by producer and consumer.
getChannel
public org.jgroups.Channel getChannel()
setChannel
public void setChannel(org.jgroups.Channel channel)
getClusterName
public String getClusterName()
setClusterName
public void setClusterName(String clusterName)
getChannelProperties
public String getChannelProperties()
setChannelProperties
public void setChannelProperties(String channelProperties)
getResolvedChannel
public org.jgroups.Channel getResolvedChannel()
setResolvedChannel
public void setResolvedChannel(org.jgroups.Channel resolvedChannel)
getEnableViewMessages
public Boolean getEnableViewMessages()
setEnableViewMessages
public void setEnableViewMessages(Boolean enableViewMessages)
isResolvedEnableViewMessages
public boolean isResolvedEnableViewMessages()
setResolvedEnableViewMessages
public void setResolvedEnableViewMessages(boolean resolvedEnableViewMessages)
Apache Camel