public class CommandDispatcherFactoryService extends Object implements CommandDispatcherFactory, org.jgroups.blocks.RequestHandler, org.jboss.msc.service.Service<CommandDispatcherFactory>, VersionedMarshallingConfiguration
MessageDispatcher
.Constructor and Description |
---|
CommandDispatcherFactoryService(CommandDispatcherFactoryConfiguration config) |
Modifier and Type | Method and Description |
---|---|
<C> CommandDispatcher<C> |
createCommandDispatcher(Object id,
C context)
Creates a new command dispatcher using the specified identifier and context..
|
int |
getCurrentMarshallingVersion() |
Group |
getGroup()
Returns the group upon which the this command dispatcher operates.
|
org.jboss.marshalling.MarshallingConfiguration |
getMarshallingConfiguration(int version) |
CommandDispatcherFactory |
getValue() |
Object |
handle(org.jgroups.Message message) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public CommandDispatcherFactoryService(CommandDispatcherFactoryConfiguration config)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<CommandDispatcherFactory>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<CommandDispatcherFactory>
public CommandDispatcherFactory getValue()
getValue
in interface org.jboss.msc.value.Value<CommandDispatcherFactory>
public Group getGroup()
CommandDispatcherFactory
getGroup
in interface CommandDispatcherFactory
public <C> CommandDispatcher<C> createCommandDispatcher(Object id, C context)
CommandDispatcherFactory
CommandDispatcher
will communicate with those dispatchers within the group sharing the same identifier.createCommandDispatcher
in interface CommandDispatcherFactory
id
- a unique identifier for this dispatcher.context
- the context used for executing commandspublic int getCurrentMarshallingVersion()
getCurrentMarshallingVersion
in interface VersionedMarshallingConfiguration
public org.jboss.marshalling.MarshallingConfiguration getMarshallingConfiguration(int version)
getMarshallingConfiguration
in interface VersionedMarshallingConfiguration
Copyright © 2013 JBoss by Red Hat. All rights reserved.