PortalBuilderImpl

portals.api.builder.PortalBuilderImpl
class PortalBuilderImpl(name: String)(using bctx: ApplicationBuilderContext) extends PortalBuilder

Internal API. Implementation of the PortalBuilder.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def portal[T, R](name: String): AtomicPortalRef[T, R]

Build a portal with name and no key-extractor.

Build a portal with name and no key-extractor.

Type parameters

R

the type of the response

T

the type of the request

Value parameters

name

the name of the portal

Attributes

Returns

the portal reference

Example
builder.portals.portal[String, Int]("portalName")
Definition Classes
override def portal[T, R](name: String, f: T => Long): AtomicPortalRef[T, R]

Build a portal with name and a key-extractor f.

Build a portal with name and a key-extractor f.

Type parameters

R

the type of the response

T

the type of the request

Value parameters

f

the key-extractor function

name

the name of the portal

Attributes

Returns

the portal reference

Example
builder.portals.portal[String, Int]("portalName", keyFrom)
Definition Classes