Interface TransportConfig


public interface TransportConfig
Configuration for transport settings.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Maximum number of bytes per read operation.
    int
    Maximum number of times the transport will attempt to read data when the selector notifies that there is read data pending.
  • Method Details

    • maxReadAttemptsPerSelect

      int maxReadAttemptsPerSelect()
      Maximum number of times the transport will attempt to read data when the selector notifies that there is read data pending.

      The value must be positive. If this value is greater than 1, the transport might attempt to read multiple times to procure multiple messages.

      Returns:
      Maximum number of times the transport will attempt to read data when the selector notifies that there is read data pending
    • maxBytesPerRead

      int maxBytesPerRead()
      Maximum number of bytes per read operation.

      The transport may gradually increase the expected number of readable bytes up to this value if the previous read fully filled the allocated buffer. It may also gradually decrease the expected number of readable bytes if the read operation was not able to fill a predicted amount of the allocated bytes some number of times consecutively.

      The value must be positive.

      Returns:
      Maximum number of bytes per read operation