T - the channel outgoing message typepublic interface ConversationChannelAgent<T extends ConversationMessage,R extends ConversationMessage> extends Terminable
ConversationChannels message streams.EMPTY| Modifier and Type | Method and Description |
|---|---|
boolean |
addListener(ConversationChannelListener<T,R> listener)
Adds a new listener to the channel;
|
void |
close()
Closes this resource.
|
ConversationChannel<T,R> |
getChannel()
Gets the channel this agent is acting for.
|
Set<ConversationChannelListener<T,R>> |
getListeners()
Gets an immutable copy of the listeners currently held by this agent.
|
boolean |
hasListeners()
Gets if this agent has any active listeners.
|
boolean |
removeListener(ConversationChannelListener<T,R> listener)
Removes a listener from the channel.
|
bindWith, closeAndReportException, closeSilently, isClosed@Nonnull ConversationChannel<T,R> getChannel()
@Nonnull Set<ConversationChannelListener<T,R>> getListeners()
boolean hasListeners()
boolean addListener(@Nonnull ConversationChannelListener<T,R> listener)
listener - the listener to addboolean removeListener(@Nonnull ConversationChannelListener<T,R> listener)
listener - the listener to removevoid close()
Terminableclose in interface AutoCloseableclose in interface TerminableCopyright © 2020. All rights reserved.