PortalBuilder

portals.api.builder.PortalBuilder
See thePortalBuilder companion object

Builder for portals.

The PortalBuilder is used to build portals. A workflow can connect to a portal via either an asker task or a replier task.

Accessed from the application builder via builder.portals.

Attributes

Example
builder.portals.portal[String, Int]("portalName")
builder.portals.portal[String, Int]("portalName", keyFrom)
Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

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")
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)