addRequest.setMessageId( newId );
AddFuture addFuture = new AddFuture( this, newId );
addToFutureMap( newId, addFuture );
// Send the request to the server
WriteFuture writeFuture = ldapSession.write( addRequest );
// Wait for the message to be sent to the server
if ( !writeFuture.awaitUninterruptibly( timeout ) )
{
// We didn't received anything : this is an error
LOG.error( "Add failed : timeout occured" );
throw new LdapException( TIME_OUT_ERROR );