Tabnine Logo
DefaultChannelPool$IdleChannel
Code IndexAdd Tabnine to your IDE (free)

How to use
DefaultChannelPool$IdleChannel
in
org.asynchttpclient.netty.channel.pool

Best Java code snippets using org.asynchttpclient.netty.channel.pool.DefaultChannelPool$IdleChannel (Showing top 4 results out of 315)

origin: org.asynchttpclient/async-http-client-netty4-provider

/**
 * {@inheritDoc}
 */
public boolean offer(Channel channel, Object partitionKey) {
  if (isClosed.get() || (!sslConnectionPoolEnabled && channel.pipeline().get(SslHandler.class) != null))
    return false;
  long now = millisTime();
  if (isTTLExpired(channel, now))
    return false;
  boolean added = partitions.computeIfAbsent(partitionKey, PARTITION_COMPUTER).add(new IdleChannel(channel, now));
  if (added)
    channelId2Creation.putIfAbsent(channelId(channel), new ChannelCreation(now, partitionKey));
  return added;
}
origin: org.asynchttpclient/async-http-client-netty4

/**
 * {@inheritDoc}
 */
public boolean offer(Channel channel, Object partitionKey) {
  if (isClosed.get() || (!sslConnectionPoolEnabled && channel.pipeline().get(SslHandler.class) != null))
    return false;
  long now = millisTime();
  if (isTTLExpired(channel, now))
    return false;
  boolean added = partitions.computeIfAbsent(partitionKey, PARTITION_COMPUTER).add(new IdleChannel(channel, now));
  if (added)
    channelId2Creation.putIfAbsent(channelId(channel), new ChannelCreation(now, partitionKey));
  return added;
}
origin: org.asynchttpclient/async-http-client-netty3-provider

public boolean offer(Channel channel, Object partitionKey) {
  if (isClosed.get() || (!sslConnectionPoolEnabled && channel.getPipeline().get(SslHandler.class) != null))
    return false;
  long now = millisTime();
  if (isTTLExpired(channel, now))
    return false;
  boolean added = partitions.computeIfAbsent(partitionKey, PARTITION_COMPUTER).add(new IdleChannel(channel, now));
  if (added)
    channelId2Creation.putIfAbsent(channel.getId(), new ChannelCreation(now, partitionKey));
  return added;
}
origin: org.asynchttpclient/async-http-client-netty3

public boolean offer(Channel channel, Object partitionKey) {
  if (isClosed.get() || (!sslConnectionPoolEnabled && channel.getPipeline().get(SslHandler.class) != null))
    return false;
  long now = millisTime();
  if (isTTLExpired(channel, now))
    return false;
  boolean added = partitions.computeIfAbsent(partitionKey, PARTITION_COMPUTER).add(new IdleChannel(channel, now));
  if (added)
    channelId2Creation.putIfAbsent(channel.getId(), new ChannelCreation(now, partitionKey));
  return added;
}
org.asynchttpclient.netty.channel.poolDefaultChannelPool$IdleChannel

Most used methods

  • <init>

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top Vim 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