def init_actable(options = {})
      # Symbols aren't GCed in JRuby so force string names.
      if options[:name] && !options[:name].is_a?(String)
        raise Tribe::ActorNameError.new('Name must be a string.')
      end

      @_actable = Tribe::ActorState.new

      @_actable.dedicated = options[:dedicated] || false
      @_actable.pool = @_actable.dedicated ? Workers::Pool.new(:size => 1) : (options[:pool] || Workers.pool)
      @_actable.mailbox = Tribe::Mailbox.new(@_actable.pool)
      @_actable.registry = options[:registry] || Tribe.registry
      @_actable.logger = Workers::LogProxy.new(options[:logger] || Tribe.logger)
      @_actable.scheduler = options[:scheduler] || Workers.scheduler
      @_actable.name = options[:name]
      @_actable.parent = options[:parent]
      @_actable.children = Tribe::SafeSet.new
      @_actable.supervisees = Tribe::SafeSet.new
      @_actable.timers = Tribe::SafeSet.new

      @_actable.registry.register(self)

      direct_message!(:__initialize__)
    end
def init_actable(options = {})
      # Symbols aren't GCed in JRuby so force string names.
      if options[:name] && !options[:name].is_a?(String)
        raise Tribe::ActorNameError.new('Name must be a string.')
      end

      @_actable = Tribe::ActorState.new

      @_actable.dedicated = options[:dedicated] || false
      @_actable.pool = @_actable.dedicated ? Workers::Pool.new(:size => 1) : (options[:pool] || Workers.pool)
      @_actable.mailbox = Tribe::Mailbox.new(@_actable.pool)
      @_actable.registry = options[:registry] || Tribe.registry
      @_actable.logger = Workers::LogProxy.new(options[:logger] || Tribe.logger)
      @_actable.scheduler = options[:scheduler] || Workers.scheduler
      @_actable.name = options[:name]
      @_actable.parent = options[:parent]
      @_actable.children = Tribe::SafeSet.new
      @_actable.supervisees = Tribe::SafeSet.new
      @_actable.timers = Tribe::SafeSet.new

      @_actable.registry.register(self)

      direct_message!(:__initialize__)
    end
Initialization method.
 Notes: Call this in your constructor.