29 template <
typename T,
typename R>
40 void readEOF(Context* ctx)
override;
86 template <
typename FUNC>
89 for (
const auto& it : subscribers) {
102 template <
typename T,
typename R>
107 std::shared_ptr<folly::AsyncTransportWrapper>
socket)
override = 0;
113 const R& routingData) = 0;
void readEOF(Context *ctx) override
HandlerAdapter< std::string, std::unique_ptr< folly::IOBuf > >::Context Context
uint64_t getArbitraryIdentifier()
virtual void onSubscribe(Subscriber< T, R > *)
void read(Context *ctx, T data) override
virtual void closeIfIdle()
requires E e noexcept(noexcept(s.error(std::move(e))))
uint64_t nextSubscriptionId_
~BroadcastHandler() override
virtual void onUnsubscribe(Subscriber< T, R > *)
virtual uint64_t subscribe(Subscriber< T, R > *subscriber)
virtual void unsubscribe(uint64_t subscriptionId)
void readException(Context *ctx, folly::exception_wrapper ex) override
NetworkSocket socket(int af, int type, int protocol)
std::shared_ptr< Pipeline > Ptr
void forEachSubscriber(FUNC f)
static constexpr uint64_t data[1]
std::map< uint64_t, Subscriber< T, R > * > subscribers_