Tabnine Logo
CompletionHandlerAdapter
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.glassfish.grizzly.utils.CompletionHandlerAdapter (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

public CompletionHandlerAdapter(FutureImpl<A> future,
    CompletionHandler<A> completionHandler,
    GenericAdapter<B, A> adapter) {
  this.future = future;
  this.completionHandler = completionHandler;
  if (adapter != null) {
    this.adapter = adapter;
  } else {
    this.adapter = getDirectAdapter();
  }
}
origin: javaee/grizzly

@Override
public void updated(B result) {
  final A adaptedResult = adapt(result);
  if (completionHandler != null) {
    completionHandler.updated(adaptedResult);
  }
}
origin: javaee/grizzly

@Override
public void updated(B result) {
  final A adaptedResult = adapt(result);
  if (completionHandler != null) {
    completionHandler.updated(adaptedResult);
  }
}
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

@Override
public void updated(B result) {
  final A adaptedResult = adapt(result);
  if (completionHandler != null) {
    completionHandler.updated(adaptedResult);
  }
}
origin: javaee/grizzly

public CompletionHandlerAdapter(FutureImpl<A> future,
    CompletionHandler<A> completionHandler,
    GenericAdapter<B, A> adapter) {
  this.future = future;
  this.completionHandler = completionHandler;
  if (adapter != null) {
    this.adapter = adapter;
  } else {
    this.adapter = getDirectAdapter();
  }
}
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

@Override
public void updated(B result) {
  final A adaptedResult = adapt(result);
  if (completionHandler != null) {
    completionHandler.updated(adaptedResult);
  }
}
origin: org.glassfish.grizzly/grizzly-websockets-server

public CompletionHandlerAdapter(FutureImpl<A> future,
    CompletionHandler<A> completionHandler,
    GenericAdapter<B, A> adapter) {
  this.future = future;
  this.completionHandler = completionHandler;
  if (adapter != null) {
    this.adapter = adapter;
  } else {
    this.adapter = getDirectAdapter();
  }
}
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

@Override
public void updated(B result) {
  final A adaptedResult = adapt(result);
  if (completionHandler != null) {
    completionHandler.updated(adaptedResult);
  }
}
origin: javaee/grizzly

public CompletionHandlerAdapter(FutureImpl<A> future,
    CompletionHandler<A> completionHandler,
    GenericAdapter<B, A> adapter) {
  this.future = future;
  this.completionHandler = completionHandler;
  if (adapter != null) {
    this.adapter = adapter;
  } else {
    this.adapter = getDirectAdapter();
  }
}
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

@Override
public void updated(B result) {
  final A adaptedResult = adapt(result);
  if (completionHandler != null) {
    completionHandler.updated(adaptedResult);
  }
}
origin: javaee/grizzly

public CompletionHandlerAdapter(FutureImpl<A> future,
    CompletionHandler<A> completionHandler,
    GenericAdapter<B, A> adapter) {
  this.future = future;
  this.completionHandler = completionHandler;
  if (adapter != null) {
    this.adapter = adapter;
  } else {
    this.adapter = getDirectAdapter();
  }
}
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-websockets-server

@Override
public void updated(B result) {
  final A adaptedResult = adapt(result);
  if (completionHandler != null) {
    completionHandler.updated(adaptedResult);
  }
}
origin: javaee/grizzly

public CompletionHandlerAdapter(FutureImpl<A> future,
    CompletionHandler<A> completionHandler,
    GenericAdapter<B, A> adapter) {
  this.future = future;
  this.completionHandler = completionHandler;
  if (adapter != null) {
    this.adapter = adapter;
  } else {
    this.adapter = getDirectAdapter();
  }
}
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);
}
org.glassfish.grizzly.utilsCompletionHandlerAdapter

Most used methods

  • <init>
  • adapt
  • getDirectAdapter

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 12 Jupyter Notebook extensions
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