com.sap.core.connectivity.api.sappassport

## Interface ConnectionInfo

-     public interface ConnectionInfo

  `ConnectionInfo` contains the connection id and connection counter related to the established connection.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCounter()` Returns the connection counter that counts how many times this connection (with the specified connection id ) has been used.
    `byte[]` | `getId()` Returns the connection id as byte array.

- - ### Method Detail

    - #### getId

          byte[] getId()

      Returns the connection id as byte array. Each connection to a specific destination has an unique id.
      Returns:
        connection id as byte array.

    - #### getCounter

          int getCounter()

      Returns the connection counter that counts how many times this connection (with the specified connection id ) has been used. For example: component A has been sent 4 requests to component B using the same connection. Then the counter would be 4.
      Returns:
        the connection counter.

Copyright © 2020 SAP. All Rights Reserved.