ThirdPartyContext

public final class ThirdPartyContext implements Closeable

An external non-Spine based upstream system.

ThirdPartyContext helps to represent an external system as a Bounded Context. Events which occur in the external system are converted into domain events of the user's Bounded Contexts and dispatched via IntegrationBroker.

Functions

Link copied to clipboard
public void close()
Closes this Context and clean up underlying resources.
Link copied to clipboard
public void emittedEvent(EventMessage eventMessage, ActorContext actorContext)
public void emittedEvent(EventMessage eventMessage, UserId userId)
Emits an event from the third-party system.
Link copied to clipboard
public boolean isOpen()
Tells if the object is still open.
Link copied to clipboard
public static ThirdPartyContext multitenant(String name)
Creates a new multitenant instance of ThirdPartyContext with the given name.
Link copied to clipboard
public static ThirdPartyContext singleTenant(String name)
Creates a new single-tenant instance of ThirdPartyContext with the given name.

Inherited functions

Link copied to clipboard
public void checkOpen()
Ensures that the object is open.