PublisherHub

public class PublisherHub extends ChannelHub<C>

The hub of Publishers.

Creates and manages the existing publisher channels born in the given TransportFactory.

Constructors

Link copied to clipboard
public void PublisherHub(TransportFactory transportFactory)

Functions

Link copied to clipboard
protected Publisher newChannel(ChannelId channelId)
Creates a new channel under the specified ID.

Inherited functions

Link copied to clipboard
public void close()
public abstract void close()
Link copied to clipboard
public void closeStaleChannels()
Closes the stale channels and removes those from the hub.
Link copied to clipboard
public C get(ChannelId channelId)
Obtains a channel from this hub by the given channel ID.
Link copied to clipboard
public boolean hasChannel(ChannelId id)
Checks if this channel hub contains a channel with a given ID.
Link copied to clipboard
public Set<ChannelId> ids()