Tabnine Logo
CompletionHandlerAdapter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.glassfish.grizzly.utils.CompletionHandlerAdapter
constructor

Best Java code snippets using org.glassfish.grizzly.utils.CompletionHandlerAdapter.<init> (Showing top 20 results out of 315)

origin: javaee/grizzly

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: javaee/grizzly

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: javaee/grizzly

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: javaee/grizzly

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: javaee/grizzly

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: javaee/grizzly

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: javaee/grizzly

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: javaee/grizzly

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * Creates {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 *
 * @return {@link CompletionHandler}, which may serve as a bridge for passed
 * {@link FutureImpl} and {@link CompletionHandler} objects.
 * All the notifications coming to the returned {@link CompletionHandler}
 * will be passed to the {@link FutureImpl} and {@link CompletionHandler}
 * passed as parameters.
 */
public static <R> CompletionHandler<R> toCompletionHandler(
    final FutureImpl<R> future,
    final CompletionHandler<R> completionHandler) {
  return new CompletionHandlerAdapter<R, R>(future, completionHandler);
}
origin: javaee/grizzly

public void listen() throws IOException {
  final CompletionHandler<RegisterChannelResult> registerCompletionHandler =
      ((TCPNIOTransport) transport).selectorRegistrationHandler;
  final FutureImpl<RegisterChannelResult> future =
      SafeFutureImpl.create();
  
  transport.getNIOChannelDistributor().registerServiceChannelAsync(
      channel, SelectionKey.OP_ACCEPT, this,
      new CompletionHandlerAdapter<RegisterChannelResult, RegisterChannelResult>(
      future, registerCompletionHandler));
  try {
    future.get(10, TimeUnit.SECONDS);
  } catch (ExecutionException e) {
    throw Exceptions.makeIOException(e.getCause());
  } catch (Exception e) {
    throw Exceptions.makeIOException(e);
  }
  notifyReady();
  notifyProbesBind(this);
}
origin: javaee/grizzly

public void listen() throws IOException {
  final CompletionHandler<RegisterChannelResult> registerCompletionHandler =
      ((TCPNIOTransport) transport).selectorRegistrationHandler;
  final FutureImpl<RegisterChannelResult> future =
      SafeFutureImpl.create();
  
  transport.getNIOChannelDistributor().registerServiceChannelAsync(
      channel, SelectionKey.OP_ACCEPT, this,
      new CompletionHandlerAdapter<RegisterChannelResult, RegisterChannelResult>(
      future, registerCompletionHandler));
  try {
    future.get(10, TimeUnit.SECONDS);
  } catch (ExecutionException e) {
    throw Exceptions.makeIOException(e.getCause());
  } catch (Exception e) {
    throw Exceptions.makeIOException(e);
  }
  notifyReady();
  notifyProbesBind(this);
}
origin: javaee/grizzly

public void listen() throws IOException {
  final CompletionHandler<RegisterChannelResult> registerCompletionHandler =
      ((TCPNIOTransport) transport).selectorRegistrationHandler;
  final FutureImpl<RegisterChannelResult> future =
      SafeFutureImpl.create();
  
  transport.getNIOChannelDistributor().registerServiceChannelAsync(
      channel, SelectionKey.OP_ACCEPT, this,
      new CompletionHandlerAdapter<RegisterChannelResult, RegisterChannelResult>(
      future, registerCompletionHandler));
  try {
    future.get(10, TimeUnit.SECONDS);
  } catch (ExecutionException e) {
    throw Exceptions.makeIOException(e.getCause());
  } catch (Exception e) {
    throw Exceptions.makeIOException(e);
  }
  notifyReady();
  notifyProbesBind(this);
}
origin: org.glassfish.grizzly/grizzly-http-server-core

public void listen() throws IOException {
  final CompletionHandler<RegisterChannelResult> registerCompletionHandler =
      ((TCPNIOTransport) transport).selectorRegistrationHandler;
  final FutureImpl<RegisterChannelResult> future =
      SafeFutureImpl.create();
  
  transport.getNIOChannelDistributor().registerServiceChannelAsync(
      channel, SelectionKey.OP_ACCEPT, this,
      new CompletionHandlerAdapter<RegisterChannelResult, RegisterChannelResult>(
      future, registerCompletionHandler));
  try {
    future.get(10, TimeUnit.SECONDS);
  } catch (ExecutionException e) {
    throw Exceptions.makeIOException(e.getCause());
  } catch (Exception e) {
    throw Exceptions.makeIOException(e);
  }
  notifyReady();
  notifyProbesBind(this);
}
origin: javaee/grizzly

public void listen() throws IOException {
  final CompletionHandler<RegisterChannelResult> registerCompletionHandler =
      ((TCPNIOTransport) transport).selectorRegistrationHandler;
  final FutureImpl<RegisterChannelResult> future =
      SafeFutureImpl.create();
  
  transport.getNIOChannelDistributor().registerServiceChannelAsync(
      channel, SelectionKey.OP_ACCEPT, this,
      new CompletionHandlerAdapter<RegisterChannelResult, RegisterChannelResult>(
      future, registerCompletionHandler));
  try {
    future.get(10, TimeUnit.SECONDS);
  } catch (ExecutionException e) {
    throw Exceptions.makeIOException(e.getCause());
  } catch (Exception e) {
    throw Exceptions.makeIOException(e);
  }
  notifyReady();
  notifyProbesBind(this);
}
origin: javaee/grizzly

public void listen() throws IOException {
  final CompletionHandler<RegisterChannelResult> registerCompletionHandler =
      ((TCPNIOTransport) transport).selectorRegistrationHandler;
  final FutureImpl<RegisterChannelResult> future =
      SafeFutureImpl.create();
  
  transport.getNIOChannelDistributor().registerServiceChannelAsync(
      channel, SelectionKey.OP_ACCEPT, this,
      new CompletionHandlerAdapter<RegisterChannelResult, RegisterChannelResult>(
      future, registerCompletionHandler));
  try {
    future.get(10, TimeUnit.SECONDS);
  } catch (ExecutionException e) {
    throw Exceptions.makeIOException(e.getCause());
  } catch (Exception e) {
    throw Exceptions.makeIOException(e);
  }
  notifyReady();
  notifyProbesBind(this);
}
origin: javaee/grizzly

public void listen() throws IOException {
  final CompletionHandler<RegisterChannelResult> registerCompletionHandler =
      ((TCPNIOTransport) transport).selectorRegistrationHandler;
  final FutureImpl<RegisterChannelResult> future =
      SafeFutureImpl.create();
  
  transport.getNIOChannelDistributor().registerServiceChannelAsync(
      channel, SelectionKey.OP_ACCEPT, this,
      new CompletionHandlerAdapter<RegisterChannelResult, RegisterChannelResult>(
      future, registerCompletionHandler));
  try {
    future.get(10, TimeUnit.SECONDS);
  } catch (ExecutionException e) {
    throw Exceptions.makeIOException(e.getCause());
  } catch (Exception e) {
    throw Exceptions.makeIOException(e);
  }
  notifyReady();
  notifyProbesBind(this);
}
origin: org.glassfish.grizzly/grizzly-websockets-server

public void listen() throws IOException {
  final CompletionHandler<RegisterChannelResult> registerCompletionHandler =
      ((TCPNIOTransport) transport).selectorRegistrationHandler;
  final FutureImpl<RegisterChannelResult> future =
      SafeFutureImpl.create();
  
  transport.getNIOChannelDistributor().registerServiceChannelAsync(
      channel, SelectionKey.OP_ACCEPT, this,
      new CompletionHandlerAdapter<RegisterChannelResult, RegisterChannelResult>(
      future, registerCompletionHandler));
  try {
    future.get(10, TimeUnit.SECONDS);
  } catch (ExecutionException e) {
    throw Exceptions.makeIOException(e.getCause());
  } catch (Exception e) {
    throw Exceptions.makeIOException(e);
  }
  notifyReady();
  notifyProbesBind(this);
}
org.glassfish.grizzly.utilsCompletionHandlerAdapter<init>

Popular methods of CompletionHandlerAdapter

  • adapt
  • getDirectAdapter

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now