static TransportType |
VM_PIPE
Transport type: in-VM pipe (Registry name: "VM_PIPE")
Please refer to
SOCKET
public static final TransportType SOCKET
- Transport type: TCP/IP (Registry name: "SOCKET" or "TCP")
DATAGRAM
public static final TransportType DATAGRAM
- Transport type: UDP/IP (Registry name: "DATAGRAM" or "UDP")
VM_PIPE
public static final TransportType VM_PIPE
- Transport type: in-VM pipe (Registry name: "VM_PIPE")
Please refer to
org.apache.mina.protocol.vmpipe
package.
TransportType
public TransportType(String[] names,
boolean stateless)
- Creates a new instance. New transport type is automatically registered
to internal registry so that you can look it up using
getInstance(String) .
- Parameters:
names - the name or aliases of this transport typestateless - true if and only if this transport type is stateless
- Throws:
IllegalArgumentException - if names are already registered or empty
getInstance
public static TransportType getInstance(String name)
- Returns the transport type of the specified name.
All names are case-insensitive.
- Parameters:
name - the name of the transport type
- Returns:
- the transport type
- Throws:
IllegalArgumentException - if the specified name is not available.
isStateless
public boolean isStateless()
- Returns
true if the session of this transport type is
stateless.
getNames
public Set getNames()
- Returns the known names of this transport type.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2004-2005 . All Rights Reserved.
|