Class: Celluloid::CellProxy

### Home Classes Methods

### In Files

- lib/celluloid/proxies/cell_proxy.rb

### Parent

SyncProxy

### Methods

- ::new
- #__class__
- #_send_
- #alive?
- #async
- #future
- #inspect
- #method
- #terminate
- #terminate!
- #thread

### Class/Module Index

Quicksearch

- Celluloid
- Celluloid::AbortError
- Celluloid::AbstractProxy
- Celluloid::Actor
- Celluloid::Actor::Sleeper
- Celluloid::ActorProxy
- Celluloid::ActorSystem
- Celluloid::AsyncCall
- Celluloid::AsyncProxy
- Celluloid::BlockCall
- Celluloid::BlockProxy
- Celluloid::BlockResponse
- Celluloid::CPUCounter
- Celluloid::Call
- Celluloid::CallChain
- Celluloid::Cell
- Celluloid::Cell::ExitHandler
- Celluloid::CellProxy
- Celluloid::ClassMethods
- Celluloid::Condition
- Celluloid::Condition::Waiter
- Celluloid::ConditionError
- Celluloid::DeadTaskError
- Celluloid::ErrorResponse
- Celluloid::EventedMailbox
- Celluloid::ExitEvent
- Celluloid::FSM
- Celluloid::FSM::ClassMethods
- Celluloid::FSM::State
- Celluloid::FSM::UnattachedError
- Celluloid::FiberStackError
- Celluloid::Future
- Celluloid::Future::Result
- Celluloid::FutureProxy
- Celluloid::Handler
- Celluloid::Handlers
- Celluloid::Incident
- Celluloid::IncidentLogger
- Celluloid::IncidentLogger::Severity
- Celluloid::IncidentReporter
- Celluloid::IncidentReporter::Formatter
- Celluloid::InstanceMethods
- Celluloid::InternalPool
- Celluloid::LinkingRequest
- Celluloid::LinkingResponse
- Celluloid::Links
- Celluloid::LogEvent
- Celluloid::Logger
- Celluloid::Logger::WithBacktrace
- Celluloid::Mailbox
- Celluloid::MailboxDead
- Celluloid::MailboxShutdown
- Celluloid::Method
- Celluloid::NamingRequest
- Celluloid::NotTaskError
- Celluloid::Notifications
- Celluloid::Notifications::Fanout
- Celluloid::Notifications::Subscriber
- Celluloid::PoolManager
- Celluloid::Probe
- Celluloid::Properties
- Celluloid::Receiver
- Celluloid::Receivers
- Celluloid::Registry
- Celluloid::Response
- Celluloid::ResumableError
- Celluloid::RingBuffer
- Celluloid::SignalConditionRequest
- Celluloid::Signals
- Celluloid::StackDump
- Celluloid::StackDump::ActorState
- Celluloid::StackDump::CellState
- Celluloid::StackDump::DisplayBacktrace
- Celluloid::StackDump::TaskState
- Celluloid::StackDump::ThreadState
- Celluloid::SuccessResponse
- Celluloid::SupervisionGroup
- Celluloid::SupervisionGroup::Member
- Celluloid::Supervisor
- Celluloid::SyncCall
- Celluloid::SyncProxy
- Celluloid::SystemEvent
- Celluloid::Task
- Celluloid::Task::TerminatedError
- Celluloid::Task::TimeoutError
- Celluloid::TaskFiber
- Celluloid::TaskSet
- Celluloid::TaskThread
- Celluloid::TerminationRequest
- Celluloid::Thread
- Celluloid::ThreadHandle
- Celluloid::UUID
- org
- org::jruby
- org::jruby::ext
- org::jruby::ext::fiber
- org::jruby::ext::fiber::ThreadFiber
- Bar
- Baz
- Blocker
- ExampleActorClass
- ExampleCrash
- ExampleMailbox
- ExampleProxy
- ExampleTask
- Fiber
- Foo
- MockActor
- Object
- Thread

No matching classes.

# Celluloid::CellProxy

A proxy object returned from Celluloid::Actor.new/new_link which converts the normal Ruby method protocol into an inter-actor message protocol

### Public Class Methods

new(actor_proxy, mailbox, klass) click to toggle source

    # File lib/celluloid/proxies/cell_proxy.rb, line 8
    def initialize(actor_proxy, mailbox, klass)
      super(mailbox, klass)
      @actor_proxy  = actor_proxy
      @sync_proxy   = SyncProxy.new(mailbox, klass)
      @async_proxy  = AsyncProxy.new(mailbox, klass)
      @future_proxy = FutureProxy.new(mailbox, klass)
    end

### Public Instance Methods

__class__() click to toggle source

Used for reflecting on proxy objects themselves

    # File lib/celluloid/proxies/cell_proxy.rb, line 6
    def __class__; CellProxy; end

_send_(meth, *args, &block) click to toggle source

    # File lib/celluloid/proxies/cell_proxy.rb, line 16
    def _send_(meth, *args, &block)
      method_missing :__send__, meth, *args, &block
    end

alive?() click to toggle source

    # File lib/celluloid/proxies/cell_proxy.rb, line 50
    def alive?
      @actor_proxy.alive?
    end

async(method_name = nil, *args, &block) click to toggle source

Obtain an async proxy or explicitly invoke a named async method

    # File lib/celluloid/proxies/cell_proxy.rb, line 33
    def async(method_name = nil, *args, &block)
      if method_name
        @async_proxy.method_missing method_name, *args, &block
      else
        @async_proxy
      end
    end

future(method_name = nil, *args, &block) click to toggle source

Obtain a future proxy or explicitly invoke a named future method

    # File lib/celluloid/proxies/cell_proxy.rb, line 42
    def future(method_name = nil, *args, &block)
      if method_name
        @future_proxy.method_missing method_name, *args, &block
      else
        @future_proxy
      end
    end

inspect() click to toggle source

    # File lib/celluloid/proxies/cell_proxy.rb, line 20
    def inspect
      method_missing :inspect
    rescue DeadActorError
      "#<Celluloid::CellProxy(#{@klass}) dead>"
    end

method(name) click to toggle source

    # File lib/celluloid/proxies/cell_proxy.rb, line 26
    def method(name)
      Method.new(self, name)
    end

terminate() click to toggle source

Terminate the associated actor

    # File lib/celluloid/proxies/cell_proxy.rb, line 59
    def terminate
      @actor_proxy.terminate
    end

terminate!() click to toggle source

Terminate the associated actor asynchronously

    # File lib/celluloid/proxies/cell_proxy.rb, line 64
    def terminate!
      @actor_proxy.terminate!
    end

thread() click to toggle source

    # File lib/celluloid/proxies/cell_proxy.rb, line 54
    def thread
      @actor_proxy.thread
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.