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