src/main/java/org/hyperledger/fabric/sdk/Channel.java
/**
     * Removes the peer connection from the channel.
     * This does NOT unjoin the peer from from the channel.
     * Fabric does not support that at this time -- maybe some day, but not today
     *
     * @param peer
     */
Removes the peer connection from the channel.
This does NOT unjoin the peer from from the channel.
Fabric does not support that at this time -- maybe some day, but not today

@param peer
Removes the peer connection from the channel . This does NOT unjoin the peer from from the channel . Fabric does not support that at this time -- maybe some day but not today @param peer
public void removePeer(Peer peer) throws InvalidArgumentException {
        if (initialized) {
            throw new InvalidArgumentException(format("Can not remove peer from channel %s already initialized.", name));
        }
        if (shutdown) {
            throw new InvalidArgumentException(format("Can not remove peer from channel %s already shutdown.", name));
        }
        checkPeer(peer);
        removePeerInternal(peer);
    }
public void removePeer ( Peer peer ) throws InvalidArgumentException { if ( initialized ) { throw new InvalidArgumentException ( format ( "Can not remove peer from channel %s already initialized." , name ) ) ; } if ( shutdown ) { throw new InvalidArgumentException ( format ( "Can not remove peer from channel %s already shutdown." , name ) ) ; } checkPeer ( peer ) ; removePeerInternal ( peer ) ; }
Removes the peer connection from the channel.
Removes the peer connection from the channel .