public class UdpConnector extends AbstractConnector
UdpConnector
can send and receive Mule events as Datagram packets.Modifier and Type | Field and Description |
---|---|
protected boolean |
broadcast |
static int |
DEFAULT_BUFFER_SIZE |
static int |
DEFAULT_SOCKET_TIMEOUT |
protected org.apache.commons.pool.impl.GenericKeyedObjectPool |
dispatcherSocketsPool |
static String |
KEEP_SEND_SOCKET_OPEN_PROPERTY |
protected boolean |
keepSendSocketOpen |
protected int |
receiveBufferSize |
protected int |
receiveTimeout |
protected int |
sendBufferSize |
protected int |
sendTimeout |
static String |
UDP |
connected, connectedSemaphore, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect
INT_VALUE_NOT_SET
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
UdpConnector() |
Modifier and Type | Method and Description |
---|---|
protected void |
doConnect()
Template method where any connections should be made for the connector
|
protected void |
doDisconnect()
Template method where any connected resources used by the connector should be
disconnected
|
protected void |
doDispose()
Template method to perform any work when destroying the connectoe
|
protected void |
doInitialise() |
protected void |
doStart()
Template method to perform any work when starting the connectoe
|
protected void |
doStop()
Template method to perform any work when stopping the connectoe
|
String |
getProtocol() |
int |
getReceiveBufferSize() |
protected Object |
getReceiverKey(Service service,
InboundEndpoint endpoint)
The method determines the key used to store the receiver against.
|
int |
getReceiveTimeout() |
int |
getSendBufferSize() |
int |
getSendTimeout() |
boolean |
isBroadcast() |
boolean |
isKeepSendSocketOpen() |
void |
setBroadcast(boolean broadcast) |
void |
setKeepSendSocketOpen(boolean keepSendSocketOpen) |
void |
setReceiveBufferSize(int receiveBufferSize) |
void |
setReceiveTimeout(int timeout) |
void |
setSendBufferSize(int sendBufferSize) |
void |
setSendTimeout(int timeout) |
checkDisposed, connect, createReceiver, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeRequesters, disposeWorkManagers, exceptionThrown, fireNotification, getConnectedSemaphore, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMaxRequestersActive, getMessageAdapter, getMuleContext, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isRemoteSyncEnabled, isStarted, isSyncEnabled, lookupReceiver, registerListener, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherThreadingProfile, setDynamicNotification, setExceptionListener, setMaxDispatchersActive, setMaxRequestersActive, setMuleContext, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, start, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, workAccepted, workCompleted, workRejected, workStarted
public static final String UDP
public static final int DEFAULT_SOCKET_TIMEOUT
public static final int DEFAULT_BUFFER_SIZE
public static final String KEEP_SEND_SOCKET_OPEN_PROPERTY
protected int sendTimeout
protected int receiveTimeout
protected int sendBufferSize
protected int receiveBufferSize
protected boolean keepSendSocketOpen
protected boolean broadcast
protected org.apache.commons.pool.impl.GenericKeyedObjectPool dispatcherSocketsPool
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractConnector
InitialisationException
protected void doDispose()
AbstractConnector
doDispose
in class AbstractConnector
protected void doConnect() throws Exception
AbstractConnector
doConnect
in class AbstractConnector
Exception
protected void doDisconnect() throws Exception
AbstractConnector
doDisconnect
in class AbstractConnector
Exception
protected void doStart() throws MuleException
AbstractConnector
doStart
in class AbstractConnector
MuleException
- if the method failsprotected void doStop() throws MuleException
AbstractConnector
doStop
in class AbstractConnector
MuleException
- if the method failspublic String getProtocol()
public int getSendTimeout()
public void setSendTimeout(int timeout)
public int getReceiveTimeout()
public void setReceiveTimeout(int timeout)
public int getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
public int getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
public boolean isBroadcast()
public void setBroadcast(boolean broadcast)
public boolean isKeepSendSocketOpen()
public void setKeepSendSocketOpen(boolean keepSendSocketOpen)
protected Object getReceiverKey(Service service, InboundEndpoint endpoint)
AbstractConnector
getReceiverKey
in class AbstractConnector
service
- the service for which the endpoint is being registeredendpoint
- the endpoint being registered for the serviceCopyright © 2003–2013 MuleSource, Inc.. All rights reserved.