src/java/org/apache/cassandra/locator/TokenMetadata.java
/**
     * Add a new moving endpoint
     * @param token token which is node moving to
     * @param endpoint address of the moving node
     */
Add a new moving endpoint
@param token token which is node moving to
@param endpoint address of the moving node
Add a new moving endpoint @param token token which is node moving to @param endpoint address of the moving node
public void addMovingEndpoint(Token token, InetAddress endpoint)
    {
        assert endpoint != null;
        lock.writeLock().lock();
        try
        {
            movingEndpoints.add(new Pair<Token, InetAddress>(token, endpoint));
        }
        finally
        {
            lock.writeLock().unlock();
        }
    }
public void addMovingEndpoint ( Token token , InetAddress endpoint ) { assert endpoint != null ; lock . writeLock ( ) . lock ( ) ; try { movingEndpoints . add ( new Pair < Token , InetAddress > ( token , endpoint ) ) ; } finally { lock . writeLock ( ) . unlock ( ) ; } }
Add a new moving endpoint
 @param token token which is node moving to
 @param endpoint address of the moving node
Add a new moving endpoint @param token token which is node moving to @param endpoint address of the moving node