public class DefaultInboundEndpoint extends AbstractEndpoint implements InboundEndpoint
logger, PROPERTY_PROCESS_SYNCHRONOUSLY, retryPolicyTemplate
INITIAL_STATE_STARTED, INITIAL_STATE_STOPPED
REQUEST_NO_WAIT, REQUEST_WAIT_INDEFINITELY
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
DefaultInboundEndpoint(Connector connector,
EndpointURI endpointUri,
String name,
Map properties,
TransactionConfig transactionConfig,
boolean deleteUnacceptedMessage,
MessageExchangePattern messageExchangePattern,
int responseTimeout,
String initialState,
String endpointEncoding,
String endpointBuilderName,
MuleContext muleContext,
RetryPolicyTemplate retryPolicyTemplate,
AbstractRedeliveryPolicy redeliveryPolicy,
EndpointMessageProcessorChainFactory messageProcessorsFactory,
List<MessageProcessor> messageProcessors,
List<MessageProcessor> responseMessageProcessors,
boolean disableTransportTransformer,
String mimeType) |
Modifier and Type | Method and Description |
---|---|
AbstractRedeliveryPolicy |
createDefaultRedeliveryPolicy(int maxRedelivery) |
MessageProcessor |
createMessageProcessorChain(FlowConstruct flowContruct) |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
ExceptionListener |
getExceptionListener() |
FlowConstruct |
getFlowConstruct() |
protected MessageProcessor |
getPolledMessageProcessor() |
AbstractRedeliveryPolicy |
getRedeliveryPolicy()
Return the endpoint's redelivery policy, if any
|
int |
hashCode() |
MuleMessage |
request(long timeout)
Make a specific request to the underlying transport
|
void |
setExceptionListener(ExceptionListener exceptionListener) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setListener(MessageProcessor listener)
Set the MessageProcessor listener on a message source which will be invoked
when a message is received or generated.
|
void |
start() |
void |
stop() |
equal, equals, getAddress, getAnnotation, getAnnotations, getConnector, getEncoding, getEndpointBuilderName, getEndpointURI, getExchangePattern, getFilter, getInitialState, getMessageProcessorChain, getMessageProcessors, getMessageProcessorsFactory, getMimeType, getMuleContext, getName, getProperties, getProperty, getProtocol, getResponseMessageProcessors, getResponseTimeout, getResponseTransformers, getRetryPolicyTemplate, getSecurityFilter, getTransactionConfig, getTransformers, isDeleteUnacceptedMessages, isDisableTransportTransformer, isProtocolSupported, isReadOnly, setAnnotations, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAddress, getConnector, getEncoding, getEndpointBuilderName, getEndpointURI, getExchangePattern, getFilter, getInitialState, getMessageProcessors, getMessageProcessorsFactory, getMimeType, getMuleContext, getProperties, getProperty, getProtocol, getResponseMessageProcessors, getResponseTimeout, getResponseTransformers, getRetryPolicyTemplate, getSecurityFilter, getTransactionConfig, getTransformers, isDeleteUnacceptedMessages, isDisableTransportTransformer, isProtocolSupported, isReadOnly
getName
public DefaultInboundEndpoint(Connector connector, EndpointURI endpointUri, String name, Map properties, TransactionConfig transactionConfig, boolean deleteUnacceptedMessage, MessageExchangePattern messageExchangePattern, int responseTimeout, String initialState, String endpointEncoding, String endpointBuilderName, MuleContext muleContext, RetryPolicyTemplate retryPolicyTemplate, AbstractRedeliveryPolicy redeliveryPolicy, EndpointMessageProcessorChainFactory messageProcessorsFactory, List<MessageProcessor> messageProcessors, List<MessageProcessor> responseMessageProcessors, boolean disableTransportTransformer, String mimeType)
public MuleMessage request(long timeout) throws Exception
MessageRequesting
request
in interface MessageRequesting
timeout
- the maximum time the operation should block before returning.
The call should return immediately if there is data available. If
no data becomes available before the timeout elapses, null will be
returnedException
- if the call to the underlying protocal causes an exceptionpublic void setListener(MessageProcessor listener)
MessageSource
setListener
in interface MessageSource
public void start() throws MuleException
start
in interface Startable
MuleException
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public MessageProcessor createMessageProcessorChain(FlowConstruct flowContruct) throws MuleException
createMessageProcessorChain
in class AbstractEndpoint
MuleException
protected MessageProcessor getPolledMessageProcessor()
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct
in interface FlowConstructAware
public ExceptionListener getExceptionListener()
public void setExceptionListener(ExceptionListener exceptionListener)
public void dispose()
Disposable
dispose
in interface Disposable
dispose
in class AbstractEndpoint
public int hashCode()
hashCode
in class AbstractEndpoint
public AbstractRedeliveryPolicy getRedeliveryPolicy()
ImmutableEndpoint
getRedeliveryPolicy
in interface ImmutableEndpoint
getRedeliveryPolicy
in class AbstractEndpoint
public AbstractRedeliveryPolicy createDefaultRedeliveryPolicy(int maxRedelivery)
createDefaultRedeliveryPolicy
in interface InboundEndpoint
public FlowConstruct getFlowConstruct()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.