public FileStreamTask(StreamHeader header, InetAddress to, EncryptionOptions encryptionOptions)
{
this.header = header;
this.to = to;
this.encryptionOptions = encryptionOptions;
this.throttle = new Throttle(toString(), new Throttle.ThroughputFunction()
{
/** @return Instantaneous throughput target in bytes per millisecond. */
public int targetThroughput()
{
if (DatabaseDescriptor.getStreamThroughputOutboundMegabitsPerSec() < 1)