Class DefaultTransportMetadata

    • Constructor Detail

      • DefaultTransportMetadata

        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)
        Creates a new DefaultTransportMetadata instance
        Parameters:
        providerName - The provider name
        name - The name
        connectionless - If the transport is UDP
        fragmentation - If fragmentation is supported
        addressType - The address type (IP V4 or IPV6)
        sessionConfigType - The session configuration type
        envelopeTypes - The types of supported messages
    • Method Detail

      • getAddressType

        public java.lang.Class<? extends java.net.SocketAddress> getAddressType()
        Specified by:
        getAddressType in interface TransportMetadata
        Returns:
        the address type of the service.
      • getEnvelopeTypes

        public java.util.Set<java.lang.Class<? extends java.lang.Object>> getEnvelopeTypes()
        Specified by:
        getEnvelopeTypes in interface TransportMetadata
        Returns:
        the set of the allowed message type when you write to an IoSession that is managed by the service.
      • getProviderName

        public java.lang.String getProviderName()
        Specified by:
        getProviderName in interface TransportMetadata
        Returns:
        the name of the service provider (e.g. "nio", "apr" and "rxtx").
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface TransportMetadata
        Returns:
        the name of the service.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object