public class DefaultTransportMetadata extends java.lang.Object implements TransportMetadata
TransportMetadata.| Constructor and Description |
|---|
DefaultTransportMetadata(java.lang.String providerName,
java.lang.String name,
boolean connectionless,
boolean fragmentation,
java.lang.Class<? extends java.net.SocketAddress> addressType,
java.lang.Class<? extends IoSessionConfig> sessionConfigType,
java.lang.Class<?>... envelopeTypes) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends java.net.SocketAddress> |
getAddressType()
Returns the address type of the service.
|
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. |
java.lang.String |
getName()
Returns the name of the service.
|
java.lang.String |
getProviderName()
Returns the name of the service provider (e.g.
|
java.lang.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. |
java.lang.String |
toString() |
public DefaultTransportMetadata(java.lang.String providerName,
java.lang.String name,
boolean connectionless,
boolean fragmentation,
java.lang.Class<? extends java.net.SocketAddress> addressType,
java.lang.Class<? extends IoSessionConfig> sessionConfigType,
java.lang.Class<?>... envelopeTypes)
public java.lang.Class<? extends java.net.SocketAddress> getAddressType()
TransportMetadatagetAddressType in interface TransportMetadatapublic java.util.Set<java.lang.Class<? extends java.lang.Object>> getEnvelopeTypes()
TransportMetadataIoSession that is managed by the service.getEnvelopeTypes in interface TransportMetadatapublic java.lang.Class<? extends IoSessionConfig> getSessionConfigType()
TransportMetadataIoSessionConfig of the servicegetSessionConfigType in interface TransportMetadatapublic java.lang.String getProviderName()
TransportMetadatagetProviderName in interface TransportMetadatapublic java.lang.String getName()
TransportMetadatagetName in interface TransportMetadatapublic boolean isConnectionless()
TransportMetadatatrue if the session of this transport type is
connectionless.isConnectionless in interface TransportMetadatapublic boolean hasFragmentation()
TransportMetadatatrue if the messages exchanged by the service can be
fragmented
or reassembled by its underlying transport.hasFragmentation in interface TransportMetadatapublic java.lang.String toString()
toString in class java.lang.Object