get

public C get(ChannelId channelId)

Obtains a channel from this hub by the given channel ID.

If there is no channel with this ID in this hub, creates it and adds to the hub prior to returning it as a result of this method call.

Return

a channel with the key

Parameters

channelId

the identifier of the resulting channel