Package org.apache.mina.core.service
Interface TransportMetadata
-
- All Known Implementing Classes:
DefaultTransportMetadata
public interface TransportMetadata
Provides meta-information that describes anIoService
.- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends java.net.SocketAddress>
getAddressType()
java.util.Set<java.lang.Class<? extends java.lang.Object>>
getEnvelopeTypes()
java.lang.String
getName()
java.lang.String
getProviderName()
java.lang.Class<? extends IoSessionConfig>
getSessionConfigType()
boolean
hasFragmentation()
boolean
isConnectionless()
-
-
-
Method Detail
-
getProviderName
java.lang.String getProviderName()
- Returns:
- the name of the service provider (e.g. "nio", "apr" and "rxtx").
-
getName
java.lang.String getName()
- Returns:
- the name of the service.
-
isConnectionless
boolean isConnectionless()
- Returns:
- true if the session of this transport type is connectionless.
-
hasFragmentation
boolean hasFragmentation()
- Returns:
true
if the messages exchanged by the service can be fragmented or reassembled by its underlying transport.
-
getAddressType
java.lang.Class<? extends java.net.SocketAddress> getAddressType()
- Returns:
- the address type of the service.
-
getEnvelopeTypes
java.util.Set<java.lang.Class<? extends java.lang.Object>> getEnvelopeTypes()
- Returns:
- the set of the allowed message type when you write to an
IoSession
that is managed by the service.
-
getSessionConfigType
java.lang.Class<? extends IoSessionConfig> getSessionConfigType()
- Returns:
- the type of the
IoSessionConfig
of the service
-
-