Package com.tick42.glue.desktop.channels
Interface Channels
-
public interface ChannelsChannels.- See Also:
Glue.channels()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description CompletionStage<Collection<String>>all()Returns a promise for collection with known channel names.default ChannelContext<Map<String,Object>>create(Window window)Creates a channel context for specified window.<T> ChannelContext<T>create(Window window, ReifiedType<T> contextType)Collection<String>names()Deprecated.
-
-
-
Method Detail
-
names
@Deprecated Collection<String> names()
Deprecated.Returns a collection with currently known channel names.- Returns:
- names of all known channels
-
all
CompletionStage<Collection<String>> all()
Returns a promise for collection with known channel names.- Returns:
- completion stage that completes when channel names are available, never
null - Since:
- 1.4.10
-
create
default ChannelContext<Map<String,Object>> create(Window window)
Creates a channel context for specified window.It is also possible to create channel context without window by passing
null.- Parameters:
window- window for which to create channel context, ornull- Returns:
- channel context, never
null
-
create
<T> ChannelContext<T> create(Window window, ReifiedType<T> contextType)
-
-