@@ -484,7 +484,7 @@ protected void configureSocket(Socket socket) throws IOException{
484484 * @return an interface to the connection
485485 * @throws IOException if it encounters a problem
486486 */
487- public Connection newConnection (Address [] addrs ) throws IOException , AuthenticationFailureException {
487+ public Connection newConnection (Address [] addrs ) throws IOException {
488488 return newConnection (null , addrs );
489489 }
490490
@@ -494,10 +494,10 @@ public Connection newConnection(Address[] addrs) throws IOException, Authenticat
494494 * @param addrs an array of known broker addresses (hostname/port pairs) to try in order
495495 * @return an interface to the connection
496496 * @throws IOException if it encounters a problem
497- * @throws AuthenticationFailureException if the login fails
498497 */
499498 public Connection newConnection (ExecutorService executor , Address [] addrs )
500- throws IOException , AuthenticationFailureException {
499+ throws IOException
500+ {
501501 IOException lastException = null ;
502502 for (Address addr : addrs ) {
503503 try {
@@ -528,9 +528,8 @@ public Connection newConnection(ExecutorService executor, Address[] addrs)
528528 * Create a new broker connection
529529 * @return an interface to the connection
530530 * @throws IOException if it encounters a problem
531- * @throws AuthenticationFailureException if the login fails
532531 */
533- public Connection newConnection () throws IOException , AuthenticationFailureException {
532+ public Connection newConnection () throws IOException {
534533 return newConnection (null ,
535534 new Address [] {new Address (getHost (), getPort ())}
536535 );
@@ -541,9 +540,8 @@ public Connection newConnection() throws IOException, AuthenticationFailureExcep
541540 * @param executor thread execution service for consumers on the connection
542541 * @return an interface to the connection
543542 * @throws IOException if it encounters a problem
544- * @throws AuthenticationFailureException if the login fails
545543 */
546- public Connection newConnection (ExecutorService executor ) throws IOException , AuthenticationFailureException {
544+ public Connection newConnection (ExecutorService executor ) throws IOException {
547545 return newConnection (executor ,
548546 new Address [] {new Address (getHost (), getPort ())}
549547 );
0 commit comments