Package-level declarations

This package provides classes and interfaces for backend part of the system.

Some of the classes in this package are also generated from Protobuf. Those classes represent general data structures for working with backend data in a multi-language system.

Classes and interfaces under this package are NOT meant be at the client site of an application.

Types

Link copied to clipboard
public abstract class BoundedContext implements Closeable
A logical and structural boundary of a model.
Link copied to clipboard
public final class BoundedContextBuilder
A builder for producing BoundedContext instances.
Link copied to clipboard
public interface Closeable implements AutoCloseable
Base interface for server-side objects that may hold resources that need to be released at the end of the lifecycle of the object.
Link copied to clipboard
public final class CommandService
The CommandService allows client applications to post commands and receive updates from the application backend.
Link copied to clipboard
public abstract class ConnectionBuilder
Abstract base for builders of objects that depend on or expose server-side gRPC objects.
Link copied to clipboard
public interface ContextAware
A structural part of a Bounded Context which is aware of the other parts.
Link copied to clipboard
public final class ContextSpec
Specification of a bounded context.
Link copied to clipboard
public interface DefaultRepository
The marker interface for the repositories which do not require creating a custom subclass of Repository.
Link copied to clipboard
public interface EventProducer
An object with identity which produces events.
Link copied to clipboard
public final class GrpcContainer
Wrapping container for gRPC server.
Link copied to clipboard
public final class Identity
Utilities for exposing identity of a server-side object as io.spine.core.
Link copied to clipboard
public interface MessageError
A common interface for errors that prevent a message from being processed by the server.
Link copied to clipboard
public interface MessageInvalid implements MessageError
An interface for the MessageError types which report a message being invalid.
Link copied to clipboard
public final class QueryService
The QueryService provides a synchronous way to fetch read-side state from the server.
Link copied to clipboard
public final class Server
Exposes one or more Bounded Contexts using CommandService, QueryService and SubscriptionService.
Link copied to clipboard
public final class ServerEnvironment implements AutoCloseable
The server conditions and configuration under which the application operates.
Link copied to clipboard
public final class SubscriptionService
The SubscriptionService provides an asynchronous way to fetch read-side state from the server.