Class Throttler.SetTarget

  extended by akka.contrib.throttle.Throttler.SetTarget
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product
Enclosing class:

public static class Throttler.SetTarget
extends java.lang.Object
implements scala.Product, scala.Serializable

Set the target of a throttler.

You may change a throttler's target at any time.

Notice that the messages sent by the throttler to the target will have the original sender (and not the throttler) as the sender. (In Akka terms, the throttler forwards the message.)

See Also:
Serialized Form

Constructor Summary
Throttler.SetTarget(ActorRef target)
          Java API:
Throttler.SetTarget(scala.Option<ActorRef> target)
Method Summary
 scala.Option<ActorRef> target()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
Methods inherited from interface scala.Equals
canEqual, equals

Constructor Detail


public Throttler.SetTarget(scala.Option<ActorRef> target)


public Throttler.SetTarget(ActorRef target)
Java API:

target - if target is null, the throttler will stop delivering messages and the messages already received but not yet delivered, as well as any messages received in the future will be queued and eventually be delivered when a new target is set. If target is not null, the currently queued messages as well as any messages received in the the future will be delivered to the new target at a rate not exceeding the current throttler's rate.
Method Detail


public scala.Option<ActorRef> target()