Package org.apache.mina.transport.socket
Interface DatagramConnector
- All Superinterfaces:
IoConnector,IoService
- All Known Implementing Classes:
NioDatagramConnector
IoConnector for datagram transport (UDP/IP).-
Method Summary
Modifier and TypeMethodDescriptionvoidsetDefaultRemoteAddress(InetSocketAddress remoteAddress) Sets the default remote InetSocketAddress to connect to when no argument is specified inIoConnector.connect()method.Methods inherited from interface org.apache.mina.core.service.IoConnector
connect, connect, connect, connect, connect, connect, getConnectTimeout, getConnectTimeoutMillis, getDefaultLocalAddress, setConnectTimeout, setConnectTimeoutMillis, setDefaultLocalAddress, setDefaultRemoteAddressMethods inherited from interface org.apache.mina.core.service.IoService
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, getTransportMetadata, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory
-
Method Details
-
getDefaultRemoteAddress
InetSocketAddress getDefaultRemoteAddress()- Specified by:
getDefaultRemoteAddressin interfaceIoConnector- Returns:
- the default remote InetSocketAddress to connect to when no argument
is specified in
IoConnector.connect()method. This method overrides theIoConnector.getDefaultRemoteAddress()method.
-
getSessionConfig
DatagramSessionConfig getSessionConfig()- Specified by:
getSessionConfigin interfaceIoService- Returns:
- the default configuration of the new FatagramSessions created by this connect service.
-
setDefaultRemoteAddress
Sets the default remote InetSocketAddress to connect to when no argument is specified inIoConnector.connect()method. This method overrides theIoConnector.setDefaultRemoteAddress(java.net.SocketAddress)method.- Parameters:
remoteAddress- The remote address to set
-