abstract class AbstractSetIndex[T] extends ServiceEntity
- Grouped
- Alphabetic
- By Inheritance
- AbstractSetIndex
- ServiceEntity
- ServiceActor
- DirectLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
Activity extends AnyRef
The entity defines the activity of an instance.
The entity defines the activity of an instance. This activity defines the
- the initial state
- effects of statements
- change of state on storage events
- Attributes
- protected
- Definition Classes
- ServiceEntity
-
abstract
class
Command[Response] extends Request[Response] with proto.ProtoDecl.Command with proto.ProtoDecl.Request
All commands are Requests with Proto:
extends Command[R] with Proto
.All commands are Requests with Proto:
extends Command[R] with Proto
.sealed trait Proto extends Message case class ExampleCommand(msg: String) extends Command[ExampleResponse] with Proto
- Definition Classes
- ServiceActor
-
sealed
trait
Envelope extends Message
A Proto event with additional attributes and claims.
A Proto event with additional attributes and claims. To pattern match on an Envelope use the Event.unapply or Request.unapply extractors.
val behavior: Behavior[Envelope] = Behaviors.receiveMessagePartial { case Event(SomeEvent(eventData)) => ??? case Request(scope, SomeCommand(eventData)) => ??? }
An Envelope can be implicitly constructed from any Proto.
val delegate: ActorRef[Envelope] = ??? val anEvent: Proto = SomeEvent(eventData) delegate ! anEvent
- Definition Classes
- ServiceActor
-
abstract
class
Query[Response] extends Request[Response] with proto.ProtoDecl.Query with proto.ProtoDecl.Request
All queries are Requests with Proto:
extends Query[R] with Proto
.All queries are Requests with Proto:
extends Query[R] with Proto
.sealed trait Proto extends Message case class ExampleQuery(msg: String) extends Query[ExampleResponse] with Proto
- Definition Classes
- ServiceActor
-
sealed abstract
class
Request[R] extends AnyRef
A protocol event can be declared as a Request using Command or Query.
A protocol event can be declared as a Request using Command or Query. The type parameter is the response that resolves the request.
sealed trait Proto extends Message case class ExampleCommand(msg: String) extends Command[ExampleResponse] with Proto case class ExampleQuery(msg: String) extends Query[ExampleResponse] with Proto
- Definition Classes
- ServiceActor
- case class Add(value: T) extends Command[State] with Storage with Product with Serializable
-
final
type
AnyRequest = Proto with Request[_]
AnyRequest is a Command or Query with no particular response type.
- Definition Classes
- ServiceActor
-
final
type
Id = String
- Definition Classes
- ServiceEntity
- sealed trait Proto extends prelude.Message
- case class Remove(value: T) extends Command[State] with Storage with Product with Serializable
- case class State(values: Set[T]) extends prelude.Message with Product with Serializable
- sealed trait Storage extends Proto
Abstract Value Members
-
abstract
val
name: EntityName
Logical name of the entity.
Logical name of the entity.
final object AnEntity { val name = "an-entity" ??? }
- Definition Classes
- ServiceEntity
Concrete Value Members
-
object
AutoPassivateTimerId
- Definition Classes
- ServiceEntity
-
object
Envelope
- Definition Classes
- ServiceActor
-
object
Event
Any statement in the protocol can be considered an Event not associated with any additional scope.
Any statement in the protocol can be considered an Event not associated with any additional scope.
- see also ServiceActor.RequestScope and Request.unapply
- Definition Classes
- ServiceActor
-
object
EventSourcedEntity
Re-export of akka.cluster.sharding.typed.scaladsl.EventSourcedEntity with types constrained to this service actor's protocol.
Re-export of akka.cluster.sharding.typed.scaladsl.EventSourcedEntity with types constrained to this service actor's protocol.
- Definition Classes
- ServiceActor
-
object
Request
- Definition Classes
- ServiceActor
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
activity(injector: prelude.Injector, id: Id): Activity
An instance of Activity that defines the entity's behavior:
An instance of Activity that defines the entity's behavior:
- initial state
- effect of statements in terms of required storage events and side effects.
- changes to state implied by a stored event
#104 consider this API in more depth
- Definition Classes
- AbstractSetIndex → ServiceEntity
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
behavior(entityDomain: String, injector: prelude.Injector): (prelude.EntityContext) ⇒ prelude.Behavior[Envelope]
Instantiates the activity as a persistent behavior.
Instantiates the activity as a persistent behavior. Requests requiring replies will receive the result state in reply.
- Attributes
- protected[glngn]
- Definition Classes
- ServiceEntity
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
logger: prelude.Logger
- Attributes
- protected
- Definition Classes
- DirectLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
typeKey(entityDomain: EntityDomain): prelude.EntityTypeKey[Envelope]
- Definition Classes
- ServiceEntity
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- object Get extends Query[State] with Proto with Product with Serializable
glngn server is a low-code business process as a service rapid development system. Conceptually similar to a programmable Microsoft Access or Apple FileMaker for scalable event sourced business services. In addition to a library, a standalone application is provided that is useful with minimal ceremony. This can be customized with a simple API. As well as deployed to a kubernetes cluster should those advantages be required.
A deployment is cluster of glngn.server.node.AppNodes serving a dynamic composition of glngn.server.ServiceFragments. Deployments are designed to be fully usable as a standalone local application or a kubernetes service.
Contact support@dogheadbone.com for support and licensing.