public class MessagingSkeletonFactory extends Object implements ShutdownListener
| Modifier and Type | Field and Description |
|---|---|
static String |
MIDDLEWARE_MESSAGING_SKELETON_FACTORIES |
| Constructor and Description |
|---|
MessagingSkeletonFactory(Map<Class<? extends Address>,IMessagingSkeletonFactory> messagingSkeletonFactories,
ScheduledExecutorService scheduler,
ShutdownNotifier shutdownNotifier)
Transport Middleware implementation may be registered for use with a given Address type using guice multibinders.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<IMessagingSkeleton> |
getSkeleton(Address address) |
void |
shutdown() |
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareForShutdownpublic static final String MIDDLEWARE_MESSAGING_SKELETON_FACTORIES
@Inject public MessagingSkeletonFactory(Map<Class<? extends Address>,IMessagingSkeletonFactory> messagingSkeletonFactories, ScheduledExecutorService scheduler, ShutdownNotifier shutdownNotifier)
messagingSkeletonFactory = MapBinder.newMapBinder(binder(),
new TypeLiteral () {},
new TypeLiteral {},
Names.named(MessagingSkeletonFactory.MIDDLEWARE_MESSAGING_SKELETONS));
messagingSkeletonFactory.addBinding(InProcessAddress.class).to(InProcessMessagingSkeletonFactory.class);
messagingSkeletonFactories - a map of all skeletons (message receivers) that are to be startedscheduler - ExecutorService that schedules all messaging communicationshutdownNotifier - ShutdownNotifierpublic void start()
public void shutdown()
shutdown in interface ShutdownListenerpublic Optional<IMessagingSkeleton> getSkeleton(Address address)
Copyright © 2021. All rights reserved.