Package | Description |
---|---|
org.apache.mina.common |
Common types required for users to use MINA.
|
org.apache.mina.protocol.io |
A wrapper for
org.apache.mina.io package to support low-level I/O. |
org.apache.mina.registry |
A frontend package that makes setting up MINA easier.
|
Modifier and Type | Field and Description |
---|---|
static TransportType |
TransportType.DATAGRAM
Transport type: UDP/IP (Registry name: "DATAGRAM" or "UDP")
|
static TransportType |
TransportType.SOCKET
Transport type: TCP/IP (Registry name: "SOCKET" or "TCP")
|
static TransportType |
TransportType.VM_PIPE
Transport type: in-VM pipe (Registry name: "VM_PIPE")
Please refer to
org.apache.mina.protocol.vmpipe
package.
|
Modifier and Type | Method and Description |
---|---|
static TransportType |
TransportType.getInstance(java.lang.String name)
Returns the transport type of the specified name.
|
TransportType |
Session.getTransportType()
Returns transport type of this session.
|
Modifier and Type | Method and Description |
---|---|
TransportType |
IoProtocolSession.getTransportType() |
Modifier and Type | Method and Description |
---|---|
TransportType |
Service.getTransportType()
Returns the transport type this service uses.
|
Modifier and Type | Method and Description |
---|---|
protected IoAcceptor |
SimpleServiceRegistry.findIoAcceptor(TransportType transportType) |
protected ProtocolAcceptor |
SimpleServiceRegistry.findProtocolAcceptor(TransportType transportType) |
IoAcceptor |
ServiceRegistry.getIoAcceptor(TransportType transportType) |
IoAcceptor |
SimpleServiceRegistry.getIoAcceptor(TransportType transportType) |
ProtocolAcceptor |
ServiceRegistry.getProtocolAcceptor(TransportType transportType) |
ProtocolAcceptor |
SimpleServiceRegistry.getProtocolAcceptor(TransportType transportType) |
java.util.Set |
ServiceRegistry.getServices(TransportType transportType)
Returns
Set of services bound in this registry with the
specified transport type. |
java.util.Set |
SimpleServiceRegistry.getServices(TransportType transportType) |
Constructor and Description |
---|
Service(java.lang.String name,
TransportType transportType,
int port)
Creates a new instance with the specified protocol name, transport type,
and port number to be bound.
|
Service(java.lang.String name,
TransportType transportType,
java.net.SocketAddress address)
Creates a new instance with the specified protocol name, transport type,
and socket address to be bound.
|