class Kalix extends AnyRef
The Kalix class is the main interface to configuring entities to deploy, and subsequently starting a local server which will expose these entities to the Kalix Runtime Sidecar.
- Source
- Kalix.scala
- Alphabetic
- By Inheritance
- Kalix
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Kalix, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createRunner(config: Config): KalixRunner
Creates a KalixRunner using the currently configured services, using the supplied configuration.
Creates a KalixRunner using the currently configured services, using the supplied configuration. In order to start the server,
run()
must be invoked on the returned KalixRunner.- returns
a KalixRunner
- def createRunner(): KalixRunner
Creates a KalixRunner using the currently configured services.
Creates a KalixRunner using the currently configured services. In order to start the server,
run()
must be invoked on the returned KalixRunner.- returns
a KalixRunner
- def ensuring(cond: (Kalix) => Boolean, msg: => Any): Kalix
- def ensuring(cond: (Kalix) => Boolean): Kalix
- def ensuring(cond: Boolean, msg: => Any): Kalix
- def ensuring(cond: Boolean): Kalix
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getMessageCodec(): MessageCodec
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- def preferJavaProtobufs: Kalix
When locating protobufs, if both a Java and a ScalaPB generated class is found on the classpath, this specifies that Java should be preferred.
When locating protobufs, if both a Java and a ScalaPB generated class is found on the classpath, this specifies that Java should be preferred.
- returns
This Kalix instance.
- def preferScalaProtobufs: Kalix
When locating protobufs, if both a Java and a ScalaPB generated class is found on the classpath, this specifies that Scala should be preferred.
When locating protobufs, if both a Java and a ScalaPB generated class is found on the classpath, this specifies that Scala should be preferred.
- returns
This Kalix instance.
- def register[A <: Action](provider: ActionProvider[A]): Kalix
Register an action using an kalix.scalasdk.action.ActionProvider.
Register an action using an kalix.scalasdk.action.ActionProvider. The concrete
ActionProvider
is generated for the specific entities defined in Protobuf, for exampleCustomerActionProvider
.- returns
This stateful service builder.
- def register(provider: ViewProvider): Kalix
Register a view using a kalix.scalasdk.view.ViewProvider.
Register a view using a kalix.scalasdk.view.ViewProvider. The concrete
ViewProvider
is generated for the specific views defined in Protobuf, for exampleCustomerViewProvider
.- returns
This stateful service builder.
- def register[S, E <: EventSourcedEntity[S]](provider: EventSourcedEntityProvider[S, E]): Kalix
Register a event sourced entity using a kalix.scalasdk.eventsourcedentity.EventSourcedEntityProvider.
Register a event sourced entity using a kalix.scalasdk.eventsourcedentity.EventSourcedEntityProvider. The concrete
EventSourcedEntityProvider
is generated for the specific entities defined in Protobuf, for exampleCustomerEntityProvider
.kalix.scalasdk.eventsourcedentity.EventSourcedEntityOptions can be defined by in the
EventSourcedEntityProvider
.- returns
This stateful service builder.
- def register[S >: Null, E <: AbstractWorkflow[S]](provider: WorkflowProvider[S, E]): Kalix
Register a workflow using a kalix.scalasdk.workflow.WorkflowProvider.
Register a workflow using a kalix.scalasdk.workflow.WorkflowProvider. The concrete
WorkflowProvider
is generated for the specific workflow defined in Protobuf, for exampleTransferWorkflowProvider
.kalix.scalasdk.workflow.WorkflowOptions can be defined by in the
WorkflowProvider
.- returns
This stateful service builder.
- def register[S, E <: ValueEntity[S]](provider: ValueEntityProvider[S, E]): Kalix
Register a value based entity using a kalix.scalasdk.valueentity.ValueEntityProvider.
Register a value based entity using a kalix.scalasdk.valueentity.ValueEntityProvider. The concrete
ValueEntityProvider
is generated for the specific entities defined in Protobuf, for exampleCustomerEntityProvider
.kalix.scalasdk.valueentity.ValueEntityOptions can be defined by in the
ValueEntityProvider
.- returns
This stateful service builder.
- def register[D <: ReplicatedData, E <: ReplicatedEntity[D]](provider: ReplicatedEntityProvider[D, E]): Kalix
Register a replicated entity using a kalix.scalasdk.replicatedentity.ReplicatedEntityProvider.
Register a replicated entity using a kalix.scalasdk.replicatedentity.ReplicatedEntityProvider. The concrete
ReplicatedEntityProvider
is generated for the specific entities defined in Protobuf, for exampleCustomerEntityProvider
.kalix.scalasdk.replicatedentity.ReplicatedEntityOptions can be defined by in the
ReplicatedEntityProvider
.- returns
This stateful service builder.
- def start(config: Config): Future[Done]
Starts a server with the configured entities, using the supplied configuration.
Starts a server with the configured entities, using the supplied configuration.
- returns
a CompletionStage which will be completed when the server has shut down.
- def start(): Future[Done]
Starts a server with the configured entities.
Starts a server with the configured entities.
- returns
a CompletionStage which will be completed when the server has shut down.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withClassLoader(classLoader: ClassLoader): Kalix
Sets the ClassLoader to be used for reflective access, the default value is the ClassLoader of the Kalix class.
Sets the ClassLoader to be used for reflective access, the default value is the ClassLoader of the Kalix class.
- classLoader
A non-null ClassLoader to be used for reflective access.
- returns
This Kalix instance.
- def withTypeUrlPrefix(prefix: String): Kalix
Sets the type URL prefix to be used when serializing and deserializing types from and to Protobyf Any values.
Sets the type URL prefix to be used when serializing and deserializing types from and to Protobyf Any values. Defaults to "type.googleapis.com".
- prefix
the type URL prefix to be used.
- returns
This Kalix instance.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Kalix toStringFormat[Kalix] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (Kalix, B)
- Implicit
- This member is added by an implicit conversion from Kalix toArrowAssoc[Kalix] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.