Package reactor.netty

Interface ChannelOperationsId

All Known Implementing Classes:
ChannelOperations, HttpOperations

public interface ChannelOperationsId
Provides short/long string representation of the channel.
Since:
1.0.5
Author:
Violeta Georgieva
  • Method Summary

    Modifier and Type
    Method
    Description
    The long string is a combination of the id of the underlying connection, local and remote addresses, and in case of HTTP, the serial number of the request received on that connection.
    The short string is a combination of the id of the underlying connection and in case of HTTP, the serial number of the request received on that connection.
  • Method Details

    • asShortText

      String asShortText()
      The short string is a combination of the id of the underlying connection and in case of HTTP, the serial number of the request received on that connection.

      Format of the short string:

       <CONNECTION_ID>-<REQUEST_NUMBER>
       

      Example:

       
           <CONNECTION_ID>: 329c6ffd
           <REQUEST_NUMBER>: 5
      
           Result: 329c6ffd-5
       
       

    • asLongText

      String asLongText()
      The long string is a combination of the id of the underlying connection, local and remote addresses, and in case of HTTP, the serial number of the request received on that connection.

      Format of the long string:

       <CONNECTION_ID>-<REQUEST_NUMBER>, L:<LOCAL_ADDRESS> <CONNECTION_OPENED_CLOSED> R:<REMOTE_ADDRESS>
       

      Example:

       
       Opened connection
           <CONNECTION_ID>: 329c6ffd
           <REQUEST_NUMBER>: 5
           <LOCAL_ADDRESS>: /0:0:0:0:0:0:0:1:64286
           <CONNECTION_OPENED_CLOSED>: - (opened)
           <REMOTE_ADDRESS>: /0:0:0:0:0:0:0:1:64284
      
           Result: 329c6ffd-5, L:/0:0:0:0:0:0:0:1:64286 - R:/0:0:0:0:0:0:0:1:64284
      
       Closed connection
           <CONNECTION_ID>: 329c6ffd
           <REQUEST_NUMBER>: 5
           <LOCAL_ADDRESS>: /0:0:0:0:0:0:0:1:64286
           <CONNECTION_OPENED_CLOSED>: ! (closed)
           <REMOTE_ADDRESS>: /0:0:0:0:0:0:0:1:64284
      
           Result: 329c6ffd-5, L:/0:0:0:0:0:0:0:1:64286 ! R:/0:0:0:0:0:0:0:1:64284