Search in sources :

Example 6 with OutboundHandler

use of com.hazelcast.internal.networking.OutboundHandler in project hazelcast by hazelcast.

the class UnifiedProtocolEncoder method initChannelForCluster.

private void initChannelForCluster() {
    channel.options().setOption(SO_SNDBUF, props.getInteger(SOCKET_SEND_BUFFER_SIZE) * KILO_BYTE);
    ServerConnection connection = (TcpServerConnection) channel.attributeMap().get(ServerConnection.class);
    OutboundHandler[] handlers = serverContext.createOutboundHandlers(EndpointQualifier.MEMBER, connection);
    channel.outboundPipeline().replace(this, handlers);
}
Also used : OutboundHandler(com.hazelcast.internal.networking.OutboundHandler) ServerConnection(com.hazelcast.internal.server.ServerConnection)

Aggregations

OutboundHandler (com.hazelcast.internal.networking.OutboundHandler)6 ServerConnection (com.hazelcast.internal.server.ServerConnection)2 HandlerStatus (com.hazelcast.internal.networking.HandlerStatus)1 InboundHandler (com.hazelcast.internal.networking.InboundHandler)1 ByteBuffer (java.nio.ByteBuffer)1