/** * {@inheritDoc} */ @Override public ExtendedFuture extendedAsync( ExtendedRequest extendedRequest ) throws LdapException { if ( extendedRequest == null ) { String msg = I18n.err( I18n.ERR_04154_CANNOT_PROCESS_NULL_EXT_REQ ); if ( LOG.isDebugEnabled() ) { LOG.debug( msg ); } throw new IllegalArgumentException( msg ); } // try to connect, if we aren't already connected. connect(); checkSession(); int newId = messageId.incrementAndGet(); extendedRequest.setMessageId( newId ); ExtendedFuture extendedFuture = new ExtendedFuture( this, newId ); addToFutureMap( newId, extendedFuture ); // Send the request to the server writeRequest( extendedRequest ); // Ok, done return the future return extendedFuture; }
/** * {@inheritDoc} */ @Override public ExtendedFuture extendedAsync( ExtendedRequest extendedRequest ) throws LdapException { if ( extendedRequest == null ) { String msg = I18n.err( I18n.ERR_04154_CANNOT_PROCESS_NULL_EXT_REQ ); if ( LOG.isDebugEnabled() ) { LOG.debug( msg ); } throw new IllegalArgumentException( msg ); } // try to connect, if we aren't already connected. connect(); checkSession(); int newId = messageId.incrementAndGet(); extendedRequest.setMessageId( newId ); ExtendedFuture extendedFuture = new ExtendedFuture( this, newId ); addToFutureMap( newId, extendedFuture ); // Send the request to the server writeRequest( extendedRequest ); // Ok, done return the future return extendedFuture; }
/** * {@inheritDoc} */ @Override public ExtendedFuture extendedAsync( ExtendedRequest extendedRequest ) throws LdapException { if ( extendedRequest == null ) { String msg = I18n.err( I18n.ERR_04154_CANNOT_PROCESS_NULL_EXT_REQ ); if ( LOG.isDebugEnabled() ) { LOG.debug( msg ); } throw new IllegalArgumentException( msg ); } // try to connect, if we aren't already connected. connect(); checkSession(); int newId = messageId.incrementAndGet(); extendedRequest.setMessageId( newId ); ExtendedFuture extendedFuture = new ExtendedFuture( this, newId ); addToFutureMap( newId, extendedFuture ); // Send the request to the server writeRequest( extendedRequest ); // Ok, done return the future return extendedFuture; }