public class EventAwareChannelPoolManagerFactory extends java.lang.Object implements ChannelPoolManagerFactory
ChannelPoolManagerFactory that registers every
ChannelPoolManager created against a EventProviderRegistry and unregisters upon
the shutdown event of each ChannelPoolManager.| Constructor and Description |
|---|
EventAwareChannelPoolManagerFactory(ChannelPoolManagerFactory channelPoolManagerFactory,
com.linkedin.r2.event.EventProviderRegistry eventProviderRegistry) |
| Modifier and Type | Method and Description |
|---|---|
ChannelPoolManager |
buildHttp2Stream(ChannelPoolManagerKey channelPoolManagerKey) |
ChannelPoolManager |
buildRest(ChannelPoolManagerKey channelPoolManagerKey) |
ChannelPoolManager |
buildStream(ChannelPoolManagerKey channelPoolManagerKey) |
void |
shutdown(com.linkedin.common.callback.Callback<com.linkedin.common.util.None> callback) |
public EventAwareChannelPoolManagerFactory(ChannelPoolManagerFactory channelPoolManagerFactory, com.linkedin.r2.event.EventProviderRegistry eventProviderRegistry)
public ChannelPoolManager buildRest(ChannelPoolManagerKey channelPoolManagerKey)
buildRest in interface ChannelPoolManagerFactorychannelPoolManagerKey - An object composed by all the transport client properties
to initialize the current clientpublic ChannelPoolManager buildStream(ChannelPoolManagerKey channelPoolManagerKey)
buildStream in interface ChannelPoolManagerFactorychannelPoolManagerKey - An object composed by all the transport client properties
to initialize the current clientpublic ChannelPoolManager buildHttp2Stream(ChannelPoolManagerKey channelPoolManagerKey)
buildHttp2Stream in interface ChannelPoolManagerFactorychannelPoolManagerKey - An object composed by all the transport client properties
to initialize the current clientpublic void shutdown(com.linkedin.common.callback.Callback<com.linkedin.common.util.None> callback)
shutdown in interface ChannelPoolManagerFactorycallback - called when the shutdown is completed, the callback is guaranteed to be called