com.deltavsoft.rcfproto

## Class ServerTransport

- java.lang.Object
- - com.deltavsoft.rcfproto.ServerTransport

-     public class ServerTransport
      extends java.lang.Object

  Base class for all server transports.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete()`
    `protected void` | `finalize()`
    `long` | `getConnectionLimit()` Returns the maximum number of simultaneous connections to the server transport.
    `long` | `getInitialNumberOfConnections()` Returns the initial number of listening connections that are created when the server transport starts.
    `long` | `getMaxIncomingMessageLength()` Returns maximum incoming message length.
    `TransportProtocolList` | `getSupportedProtocols()`
    `TransportType` | `getTransportType()` Returns the transport type of this server transport.
    `ServerTransport` | `setConnectionLimit(long connectionLimit)` Sets the maximum number of simultaneous connections to the server transport.
    `ServerTransport` | `setInitialNumberOfConnections(long initialNumberOfConnections)` Sets the initial number of listening connections that are created when the server transport starts.
    `ServerTransport` | `setMaxIncomingMessageLength(long maxMessageLength)` Sets maximum incoming message length.
    `ServerTransport` | `setSupportedProtocols(TransportProtocolList protocols)` Sets the list of supported protocols the server transport supports.
    `ServerTransport` | `setThreadPool(ThreadPool threadPoolPtr)` Sets the thread pool that the server transport will use.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### finalize

          protected void finalize()

      Overrides:
        `finalize` in class `java.lang.Object`

    - #### delete

          public void delete()

    - #### getTransportType

          public TransportType getTransportType()

      Returns the transport type of this server transport.

    - #### setMaxIncomingMessageLength

          public ServerTransport setMaxIncomingMessageLength(long maxMessageLength)

      Sets maximum incoming message length. Incoming messages that are larger than this size will be dropped.

    - #### getMaxIncomingMessageLength

          public long getMaxIncomingMessageLength()

      Returns maximum incoming message length.

    - #### setConnectionLimit

          public ServerTransport setConnectionLimit(long connectionLimit)

      Sets the maximum number of simultaneous connections to the server transport.

    - #### getConnectionLimit

          public long getConnectionLimit()

      Returns the maximum number of simultaneous connections to the server transport.

    - #### setInitialNumberOfConnections

          public ServerTransport setInitialNumberOfConnections(long initialNumberOfConnections)

      Sets the initial number of listening connections that are created when the server transport starts.

    - #### getInitialNumberOfConnections

          public long getInitialNumberOfConnections()

      Returns the initial number of listening connections that are created when the server transport starts.

    - #### setThreadPool

          public ServerTransport setThreadPool(ThreadPool threadPoolPtr)

      Sets the thread pool that the server transport will use.

    - #### setSupportedProtocols

          public ServerTransport setSupportedProtocols(TransportProtocolList protocols)

      Sets the list of supported protocols the server transport supports. Clients that connect without using one of the supported protocols are dropped. If the list of supported protocols is empty, all protocols are allowed.

    - #### getSupportedProtocols

          public TransportProtocolList getSupportedProtocols()