Java Code Examples for io.netty.channel.ChannelHandlerContext#bind()

The following examples show how to use io.netty.channel.ChannelHandlerContext#bind() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LoggingHandler.java    From netty.book.kor with MIT License 5 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    if (logger.isEnabled(internalLevel)) {
        logger.log(internalLevel, format(ctx, "BIND", localAddress));
    }
    ctx.bind(localAddress, promise);
}
 
Example 2
Source File: ConnectInterceptingHandler.java    From java-dcp-client with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
  ctx.bind(localAddress, promise);
}
 
Example 3
Source File: NettyChannelHandlerAdapter.java    From Ak47 with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext nettyctx, SocketAddress localAddress,
        ChannelPromise promise) throws Exception {
    nettyctx.bind(localAddress, promise);
}
 
Example 4
Source File: Netty4ChannelHandlerAdapter.java    From Ak47 with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext nettyctx, SocketAddress localAddress,
        ChannelPromise promise) throws Exception {
    nettyctx.bind(localAddress, promise);
}
 
Example 5
Source File: KeyValueFeatureHandler.java    From couchbase-jvm-core with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 6
Source File: KeyValueSelectBucketHandler.java    From couchbase-jvm-core with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 7
Source File: EndpointedChannelHandler.java    From riiablo with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
  if (DEBUG_CALLS) Gdx.app.debug(TAG, "bind");
  ctx.bind(localAddress, promise);
}
 
Example 8
Source File: KeyValueAuthHandler.java    From couchbase-jvm-core with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 9
Source File: SslHandler.java    From netty4.0.27Learn with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 10
Source File: SpdyFrameCodec.java    From netty4.0.27Learn with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 11
Source File: TsiFrameHandler.java    From grpc-nebula-java with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) {
  ctx.bind(localAddress, promise);
}
 
Example 12
Source File: AbstractHttpHandler.java    From bazel-buildfarm with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("FutureReturnValueIgnored")
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) {
  ctx.bind(localAddress, promise);
}
 
Example 13
Source File: TsiFrameHandler.java    From grpc-java with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) {
  ctx.bind(localAddress, promise);
}
 
Example 14
Source File: SslHandler.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 15
Source File: AbstractHttpHandler.java    From bazel with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("FutureReturnValueIgnored")
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) {
  ctx.bind(localAddress, promise);
}
 
Example 16
Source File: KeyValueErrorMapHandler.java    From couchbase-jvm-core with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 17
Source File: Http2ConnectionHandler.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 18
Source File: SpdyFrameCodec.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 19
Source File: HttpClientUpgradeHandler.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
    ctx.bind(localAddress, promise);
}
 
Example 20
Source File: RntbdRequestManager.java    From azure-cosmosdb-java with MIT License 2 votes vote down vote up
/**
 * Called once a bind operation is made.
 *
 * @param context      the {@link ChannelHandlerContext} for which the bind operation is made
 * @param localAddress the {@link SocketAddress} to which it should bound
 * @param promise      the {@link ChannelPromise} to notify once the operation completes
 */
@Override
public void bind(final ChannelHandlerContext context, final SocketAddress localAddress, final ChannelPromise promise) {
    this.traceOperation(context, "bind", localAddress);
    context.bind(localAddress, promise);
}