com.ibm.net.rdma.jverbs.cm

Class ConnectionEvent

  • java.lang.Object
    • com.ibm.net.rdma.jverbs.cm.ConnectionEvent


  • public class ConnectionEvent
    extends java.lang.Object

    Represents a Connection event. Connection event can be any of ConnectionEvent.EventType

    Connection event can be retrieved through EventChannel.getConnectionEvent(timeout)
    • Method Detail

      • getConnectionId

        public ConnectionId getConnectionId()
        Gets the ConnectionId associated with event. This is used to retrieve the accepted client's ConnectionId from RDMA_CM_EVENT_CONNECT_REQUEST event.
        Returns:
        the ConnectionId of the connection.
      • getConnectionParameter

        public ConnectionParameter getConnectionParameter()
        Gets the connection parameters associated with the event. Valid only for RDMA_CM_EVENT_CONNECT_REQUEST and RDMA_CM_EVENT_ESTABLISHED.
        Returns:
        the connection parameters or null for other event types.
      • getListenId

        public ConnectionId getListenId()
        Gets the listen ConnectionId for this event. Valid only for RDMA_CM_EVENT_CONNECT_REQUEST event.
        Returns:
        the ConnectionId of the listening connection or null for other event types.