withProtocolController method

ActorBuilder withProtocolController(
  1. ProtocolController controller
)

Register a protocol controller to handle a sequence of messages. See ProcolController for more details.

Implementation

ActorBuilder withProtocolController(ProtocolController controller) {
  _conditions.add(_Condition(
    controller.predicate,
    controller.actor,
  ));
  return this;
}