lagompb
package lagompb
- Alphabetic
- By Inheritance
- lagompb
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
Type Members
- implicit class Instants extends AnyRef
- final class InternalServerError extends TransportException
It used to return an HTTP 500 response
- abstract class LagompbAggregate[TState <: GeneratedMessage] extends AnyRef
LagompbAggregate abstract class encapsulate all the necessary setup required to create an aggregate in the lagom ecosystem.
LagompbAggregate abstract class encapsulate all the necessary setup required to create an aggregate in the lagom ecosystem. There are three main components an aggregate requires to be functional: a commands handler, an events handler and a state.
- TState
the scala type of the aggregate state
- abstract class LagompbApplication extends LagomApplication with JdbcPersistenceComponents with SlickPersistenceComponents with HikariCPComponents with LagomKafkaComponents with AhcWSComponents with CORSComponents with AllowedHostsComponents with CSRFComponents with SecurityHeadersComponents
- final case class LagompbCommand(command: GeneratedMessage, replyTo: ActorRef[CommandReply], data: Map[String, String]) extends Product with Serializable
Defines the type of command to handle by the aggregate.
Defines the type of command to handle by the aggregate.
LagomPbCommand
is a wrapper around the actual command sent to aggregate.- command
the actual command. This is a protocol buffer message
- replyTo
the actor reference of the sender of the command.
- data
additional data that will be added to the state. This may be deprecated when the plugin archiectture is in placed The CommandReply message type will be sent back that actor reference
- abstract class LagompbCommandHandler[TState <: GeneratedMessage] extends AnyRef
LagompbCommandHandler
LagompbCommandHandler
- TState
the aggregate state type
- sealed class LagompbCommandSerde extends SerializerWithStringManifest
LagomPbCommandSerializer It is used internally by lagom-common to serialize commands and replies
- trait LagompbEvent extends AggregateEvent[LagompbEvent] with GeneratedMessage
LagomPbEvent used by lagom to tag events in the cluster
- abstract class LagompbEventHandler[TState <: GeneratedMessage] extends AnyRef
LagomPbEventHandler
LagomPbEventHandler
- TState
the aggregate state type
- final class LagompbException extends RuntimeException
BaseException custom RuntimeException.
BaseException custom RuntimeException. This is used for general exception
- trait LagompbGrpcServiceImpl extends LagompbServiceImplComponent
LagompbGrpcServiceImpl
- final class LagompbInvalidCommandException extends RuntimeException
InvalidCommandException.
InvalidCommandException. This will be used to handle invalid command exception.
- class LagompbKafkaSerde extends StrictMessageSerializer[KafkaEvent]
- sealed abstract class LagompbRestServiceImpl extends LagompbServiceImplComponent
LagompbRestServiceImpl for the REST api implementation
- trait LagompbService extends Service with LagompbProtosJson
Must be implemented by any lagom api without message broker integration
- abstract class LagompbServiceImpl extends LagompbRestServiceImpl with LagompbService
LagompbServiceImpl abstract class.
LagompbServiceImpl abstract class.
It must be implemented by any lagom REST based service
- sealed trait LagompbServiceImplComponent extends AnyRef
- abstract class LagompbServiceImplWithKafka extends LagompbRestServiceImpl with LagompbServiceWithKafka
LagompbServiceImplWithKafka trait.
LagompbServiceImplWithKafka trait.
It must be implemented by any lagom REST service with message broker features. Automatically the domain events are wrapped in a ServiceEvent and push to a kafka topic created automatically when not yet created.
- trait LagompbServiceWithKafka extends Service with LagompbProtosJson
Must be implemented by any lagom api with kafka as message broker
- final case class LagompbState[TState](state: TState, metaData: MetaData) extends Product with Serializable
LagompbState wraps the actual aggregate state with some meta data about the state
LagompbState wraps the actual aggregate state with some meta data about the state
- state
the aggregate state
- metaData
the state meta
- implicit class Timestamps extends AnyRef
Value Members
- object InternalServerError extends Serializable
- object LagompbEvent extends Serializable