com.ibm.net.rdma.jverbs.endpoints

Interface RdmaEndpointFactory<C extends RdmaEndpoint>



  • public interface RdmaEndpointFactory<C extends RdmaEndpoint>
    Server and client RdmaEndpoints are created based on the factory pattern. Users can override the abstract RdmaEndpointFactory in order to create custom RdmaEndpoint implementations.
    • Method Detail

      • createEndpoint

        C createEndpoint(ConnectionId connectionId)
                  throws java.lang.IllegalArgumentException,
                         java.io.IOException
        User need to override this method to return a custom RdmaEndpoint implementation. This method is called by RdmaEndpointGroup while creating RdmaEndpoints.
        Parameters:
        connectionId - the Rdma connection id
        Returns:
        the custom client endpoint.
        Throws:
        java.io.IOException - If an I/O error occurs
        java.lang.IllegalArgumentException - If the value of any of the parameter is invalid