Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
clj-util-message-server/src/main/clojure/de/mpg/shh/util_message_server/life_cycle.clj
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7 lines (4 sloc)
459 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns de.mpg.shh.util-message-server.life-cycle) | |
(defprotocol ListenableLifeCycle | |
(listen [component context-config address channel selector] "Subscribes to the address at the given context and copies the internal response channel onto the supplied channel") | |
(unlisten [component context-config address channel] "Stop copying the internal response channel onto the given channel. If this is the last listener for this context and address, unsubscribe")) | |