Class Client

java.lang.Object
org.apache.storm.messaging.ConnectionWithStatus
org.apache.storm.messaging.netty.Client
All Implemented Interfaces:
AutoCloseable, IConnection, ISaslClient

public class Client extends ConnectionWithStatus implements ISaslClient
A Netty client for sending task messages to a remote destination (Netty server).

Implementation details:

Sending messages, i.e. writing to the channel, is performed asynchronously. Messages are sent in batches to optimize for network throughput at the expense of network latency. The message batch size is configurable. Connecting and reconnecting are performed asynchronously. Note: The current implementation drops any messages that are being enqueued for sending if the connection to the remote destination is currently unavailable.

  • Field Details

    • dstAddressPrefixedName

      protected final String dstAddressPrefixedName
  • Method Details