Package org.apache.pekko.dispatch
Class PinnedDispatcher
- java.lang.Object
- 
- org.apache.pekko.dispatch.MessageDispatcher
- 
- org.apache.pekko.dispatch.Dispatcher
- 
- org.apache.pekko.dispatch.PinnedDispatcher
 
 
 
- 
- All Implemented Interfaces:
- java.util.concurrent.Executor,- BatchingExecutor,- scala.concurrent.ExecutionContext,- scala.concurrent.ExecutionContextExecutor
 
 public class PinnedDispatcher extends Dispatcher Dedicates a unique thread for each actor passed in as reference. Served through its messageQueue.The preferred way of creating dispatchers is to define configuration of it and use the the lookupmethod inpekko.dispatch.Dispatchers.
- 
- 
Constructor SummaryConstructors Constructor Description PinnedDispatcher(MessageDispatcherConfigurator _configurator, org.apache.pekko.actor.ActorCell _actor, java.lang.String _id, scala.concurrent.duration.FiniteDuration _shutdownTimeout, ThreadPoolConfig _threadPoolConfig)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidregister(org.apache.pekko.actor.ActorCell actorCell)If you override it, you must call it.protected voidunregister(org.apache.pekko.actor.ActorCell actor)If you override it, you must call it.- 
Methods inherited from class org.apache.pekko.dispatch.DispatchercreateMailbox, dispatch, executeTask, executorService, id, registerForExecution, shutdown, shutdownTimeout, systemDispatch, throughput, throughputDeadlineTime, toString
 - 
Methods inherited from class org.apache.pekko.dispatch.MessageDispatcheractors, attach, configurator, debug, detach, eventStream, inhabitants, isThroughputDeadlineTimeDefined, mailboxes, printActors, reportFailure, RESCHEDULED, resubmitOnBlock, resume, SCHEDULED, suspend, unbatchedExecute, UNSCHEDULED
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.pekko.dispatch.BatchingExecutorbatchable, execute
 
- 
 
- 
- 
- 
Constructor Detail- 
PinnedDispatcherpublic PinnedDispatcher(MessageDispatcherConfigurator _configurator, org.apache.pekko.actor.ActorCell _actor, java.lang.String _id, scala.concurrent.duration.FiniteDuration _shutdownTimeout, ThreadPoolConfig _threadPoolConfig) 
 
- 
 - 
Method Detail- 
registerprotected void register(org.apache.pekko.actor.ActorCell actorCell) Description copied from class:MessageDispatcherIf you override it, you must call it. But only ever once. See "attach" for only invocation.INTERNAL API - Overrides:
- registerin class- MessageDispatcher
 
 - 
unregisterprotected void unregister(org.apache.pekko.actor.ActorCell actor) Description copied from class:MessageDispatcherIf you override it, you must call it. But only ever once. See "detach" for the only invocationINTERNAL API - Overrides:
- unregisterin class- MessageDispatcher
 
 
- 
 
-