subscribe

public void subscribe(Topic topic, StreamObserver<Subscription> responseObserver)

Creates a subscription for the passed topic.

Parameters

topic

defines the subscription target

responseObserver

the observer for obtaining created subscription


public void subscribe(Subscription subscription)

Registers this inactive subscription is this Stand.

The given subscription is shared between different Bounded Contexts.

Parameters

subscription

an existing subscription