public class DefaultInboundEndpoint extends AbstractEndpoint implements InboundEndpoint
logger, PROPERTY_PROCESS_SYNCHRONOUSLY, retryPolicyTemplateINITIAL_STATE_STARTED, INITIAL_STATE_STOPPEDREQUEST_NO_WAIT, REQUEST_WAIT_INDEFINITELYPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_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, 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, toStringgetAnnotation, getAnnotations, setAnnotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAddress, getConnector, getEncoding, getEndpointBuilderName, getEndpointURI, getExchangePattern, getFilter, getInitialState, getMessageProcessors, getMessageProcessorsFactory, getMimeType, getMuleContext, getProperties, getProperty, getProtocol, getResponseMessageProcessors, getResponseTimeout, getResponseTransformers, getRetryPolicyTemplate, getSecurityFilter, getTransactionConfig, getTransformers, isDeleteUnacceptedMessages, isDisableTransportTransformer, isProtocolSupported, isReadOnlygetNamepublic 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
MessageRequestingrequest in interface MessageRequestingtimeout - 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)
MessageSourcesetListener in interface MessageSourcepublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic MessageProcessor createMessageProcessorChain(FlowConstruct flowContruct) throws MuleException
createMessageProcessorChain in class AbstractEndpointMuleExceptionprotected MessageProcessor getPolledMessageProcessor()
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic ExceptionListener getExceptionListener()
public void setExceptionListener(ExceptionListener exceptionListener)
public void dispose()
Disposabledispose in interface Disposabledispose in class AbstractEndpointpublic int hashCode()
hashCode in class AbstractEndpointpublic AbstractRedeliveryPolicy getRedeliveryPolicy()
ImmutableEndpointgetRedeliveryPolicy in interface ImmutableEndpointgetRedeliveryPolicy in class AbstractEndpointpublic AbstractRedeliveryPolicy createDefaultRedeliveryPolicy(int maxRedelivery)
createDefaultRedeliveryPolicy in interface InboundEndpointpublic FlowConstruct getFlowConstruct()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.