public class ServiceAnnouncingChatHandlerProvider extends Object implements ChatHandlerProvider
get(String)
method
allows anyone with a reference to this object to obtain a particular ChatHandler
. An embedded
ServiceAnnouncer
will be used to advertise handlers on this host.Constructor and Description |
---|
ServiceAnnouncingChatHandlerProvider(DruidNode node,
ServiceAnnouncer serviceAnnouncer) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<ChatHandler> |
get(String key) |
void |
register(String service,
ChatHandler handler) |
void |
unregister(String service) |
@Inject public ServiceAnnouncingChatHandlerProvider(DruidNode node, ServiceAnnouncer serviceAnnouncer)
public void register(String service, ChatHandler handler)
register
in interface ChatHandlerProvider
public void unregister(String service)
unregister
in interface ChatHandlerProvider
public com.google.common.base.Optional<ChatHandler> get(String key)
get
in interface ChatHandlerProvider
Copyright © 2011–2015. All rights reserved.