public class JGroupsCommandDispatcherFactory extends Object implements CommandDispatcherFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_STACK |
static long |
DEFAULT_TIMEOUT |
| Constructor and Description |
|---|
JGroupsCommandDispatcherFactory() |
| Modifier and Type | Method and Description |
|---|---|
<C> CommandDispatcher<C> |
createCommandDispatcher(String id,
C context,
Stateful stateful,
MembershipListener membershipListener)
Create a new dispatcher for remote command execution.
|
String |
getId() |
String |
getName() |
String |
getStack() |
long |
getTimeout() |
void |
setName(String name) |
void |
setStack(String stack) |
void |
setTimeout(long timeout) |
public static final long DEFAULT_TIMEOUT
public static final String DEFAULT_STACK
public JGroupsCommandDispatcherFactory()
public String getId()
getId in interface Identifiablepublic <C> CommandDispatcher<C> createCommandDispatcher(String id, C context, Stateful stateful, MembershipListener membershipListener) throws Exception
CommandDispatcherFactorycreateCommandDispatcher in interface CommandDispatcherFactoryC - execution context typeid - unique identifier of this dispatchercontext - command execution contextstateful - handler for state transfersmembershipListener - handler for group membership changesException - if an error occurred creating the dispatcherpublic long getTimeout()
public void setTimeout(long timeout)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.