public class DefaultTransportMetadata extends Object implements TransportMetadata
TransportMetadata
.Constructor and Description |
---|
DefaultTransportMetadata(String providerName,
String name,
boolean connectionless,
boolean fragmentation,
Class<? extends SocketAddress> addressType,
Class<? extends IoSessionConfig> sessionConfigType,
Class<?>... envelopeTypes) |
Modifier and Type | Method and Description |
---|---|
Class<? extends SocketAddress> |
getAddressType()
Returns the address type of the service.
|
Set<Class<? extends Object>> |
getEnvelopeTypes()
Returns the set of the allowed message type when you write to an
IoSession that is managed by the service. |
String |
getName()
Returns the name of the service.
|
String |
getProviderName()
Returns the name of the service provider (e.g.
|
Class<? extends IoSessionConfig> |
getSessionConfigType()
Returns the type of the
IoSessionConfig of the service |
boolean |
hasFragmentation()
Returns
true if the messages exchanged by the service can be
fragmented
or reassembled by its underlying transport. |
boolean |
isConnectionless()
Returns
true if the session of this transport type is
connectionless. |
String |
toString() |
public DefaultTransportMetadata(String providerName, String name, boolean connectionless, boolean fragmentation, Class<? extends SocketAddress> addressType, Class<? extends IoSessionConfig> sessionConfigType, Class<?>... envelopeTypes)
public Class<? extends SocketAddress> getAddressType()
TransportMetadata
getAddressType
in interface TransportMetadata
public Set<Class<? extends Object>> getEnvelopeTypes()
TransportMetadata
IoSession
that is managed by the service.getEnvelopeTypes
in interface TransportMetadata
public Class<? extends IoSessionConfig> getSessionConfigType()
TransportMetadata
IoSessionConfig
of the servicegetSessionConfigType
in interface TransportMetadata
public String getProviderName()
TransportMetadata
getProviderName
in interface TransportMetadata
public String getName()
TransportMetadata
getName
in interface TransportMetadata
public boolean isConnectionless()
TransportMetadata
true
if the session of this transport type is
connectionless.isConnectionless
in interface TransportMetadata
public boolean hasFragmentation()
TransportMetadata
true
if the messages exchanged by the service can be
fragmented
or reassembled by its underlying transport.hasFragmentation
in interface TransportMetadata
Copyright © 2004–2014 Apache MINA Project. All rights reserved.