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)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
ConnectionEvent.EventType
Defines various communication event types constants.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ConnectionId
getConnectionId()
Gets the ConnectionId associated with event.ConnectionParameter
getConnectionParameter()
Gets the connection parameters associated with the event.ConnectionEvent.EventType
getEventType()
Gets the type of the event.ConnectionId
getListenId()
Gets the listen ConnectionId for this event.
-
-
-
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.
-
getEventType
public ConnectionEvent.EventType getEventType()
Gets the type of the event.- Returns:
- the type of the event.
-
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.
-
-