/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }
/** * Accept a {@link Connection}. Could be used only in standalone mode. * See {@link Connection#configureStandalone(boolean)}. * * @return {@link Future} * @throws java.io.IOException */ public GrizzlyFuture<Connection> accept() throws IOException { if (!isStandalone()) { throw new IllegalStateException("Accept could be used in standalone mode only"); } final GrizzlyFuture<Connection> future = acceptAsync(); if (isBlocking()) { try { future.get(); } catch (Exception ignored) { } } return future; }