Interface ConnectionNameGenerator

All Known Implementing Classes:
DefaultConnectionNameGenerator

public interface ConnectionNameGenerator
A generic interface which determines the name for a DCP connection.

Adhering to the semantics of DCP, it is very important that the names of the connection, if independent also need to be different. Otherwise the server will inevitably close the old connection, leading to weird edge cases. Keep this in mind when implementing the interface or just stick with the default DefaultConnectionNameGenerator.

Since:
1.0.0
Author:
Michael Nitschinger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Generates the name for a DCP Connection.
  • Field Details

    • CONNECTION_NAME_MAX_UTF8_BYTES

      static final int CONNECTION_NAME_MAX_UTF8_BYTES
      See Also:
  • Method Details

    • name

      String name()
      Generates the name for a DCP Connection.

      The UTF-8 encoding of the name must be no longer than 200 bytes.