class JsCommandService extends Endpoints with NamedLogging
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JsCommandService
- Endpoints
- NamedLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new JsCommandService(ledgerClient: LedgerClient, protocolConverters: ProtocolConverters, loggerFactory: NamedLoggerFactory)(implicit executionContext: ExecutionContext, esf: ExecutionSequencerFactory, materializer: Materializer, wsConfig: WebsocketConfig)
Type Members
- implicit class FutureOps[R] extends AnyRef
- Definition Classes
- Endpoints
- type CustomError = (StatusCode, JsCantonError)
- Definition Classes
- Endpoints
Value Members
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asList[INPUT, OUTPUT, R](endpoint: Endpoint[CallerContext, StreamList[INPUT], CustomError, Seq[OUTPUT], R], service: (CallerContext) => (TracedInput[Unit]) => Flow[INPUT, OUTPUT, Any], timeoutOpenEndedStream: Boolean = false)(implicit wsConfig: WebsocketConfig, materializer: Materializer): Full[CallerContext, CallerContext, TracedInput[StreamList[INPUT]], (StatusCode, JsCantonError), Seq[OUTPUT], R, Future]
- Definition Classes
- Endpoints
- def asPagedList[INPUT, OUTPUT, R](endpoint: Endpoint[CallerContext, PagedList[INPUT], (StatusCode, JsCantonError), OUTPUT, R], service: (CallerContext) => (TracedInput[PagedList[INPUT]]) => Future[Either[JsCantonError, OUTPUT]]): Full[CallerContext, CallerContext, TracedInput[PagedList[INPUT]], (StatusCode, JsCantonError), OUTPUT, R, Future]
- Definition Classes
- Endpoints
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def endpoints(): List[ServerEndpoint[PekkoStreams with WebSockets, Future] { ... /* 5 definitions in type refinement */ }]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error[R](error: JsCantonError): Future[Either[JsCantonError, R]]
- Definition Classes
- Endpoints
- implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- implicit val executionContext: ExecutionContext
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def handleErrorResponse[R](implicit traceContext: TraceContext): (Try[Either[JsCantonError, R]]) => Try[Either[CustomError, R]]
- Attributes
- protected
- Definition Classes
- Endpoints
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def json[R, P](endpoint: Endpoint[CallerContext, P, CustomError, Unit, Any], service: (CallerContext) => (TracedInput[P]) => Future[Either[JsCantonError, R]])(implicit arg0: Decoder[R], arg1: Encoder[R], arg2: Schema[R]): Full[CallerContext, CallerContext, TracedInput[P], CustomError, R, Any, Future]
- Definition Classes
- Endpoints
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Definition Classes
- JsCommandService → NamedLogging
- implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noTracingLogger: Logger
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def prepareSingleWsStream[REQ, RESP, JSRESP](stream: (REQ, StreamObserver[RESP]) => Unit, mapToJs: (RESP) => Future[JSRESP])(implicit esf: ExecutionSequencerFactory): Flow[REQ, JSRESP, NotUsed]
Utility to prepare flow from a gRPC method with an observer.
Utility to prepare flow from a gRPC method with an observer.
- Attributes
- protected
- Definition Classes
- Endpoints
- def submitAndWait(callerContext: CallerContext): (TracedInput[JsCommands]) => Future[Either[JsCantonError, SubmitAndWaitResponse]]
- def submitAndWaitForReassignment(callerContext: CallerContext): (TracedInput[SubmitAndWaitForReassignmentRequest]) => Future[Either[JsCantonError, JsSubmitAndWaitForReassignmentResponse]]
- def submitAndWaitForTransaction(callerContext: CallerContext): (TracedInput[JsSubmitAndWaitForTransactionRequest]) => Future[Either[JsCantonError, JsSubmitAndWaitForTransactionResponse]]
- def submitAndWaitForTransactionTree(callerContext: CallerContext): (TracedInput[JsCommands]) => Future[Either[JsCantonError, JsSubmitAndWaitForTransactionTreeResponse]]
- Annotations
- @nowarn()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def websocket[HI, I, O](endpoint: Endpoint[CallerContext, HI, CustomError, Flow[I, Either[JsCantonError, O], Any], PekkoStreams with WebSockets], service: (CallerContext) => (TracedInput[HI]) => Flow[I, O, Any]): Full[CallerContext, CallerContext, HI, CustomError, Flow[I, Either[JsCantonError, O], Any], PekkoStreams with WebSockets, Future]
- Attributes
- protected
- Definition Classes
- Endpoints
- def withServerLogic[INPUT, OUTPUT, R](endpoint: Endpoint[CallerContext, INPUT, CustomError, OUTPUT, R], service: (CallerContext) => (TracedInput[INPUT]) => Future[Either[JsCantonError, OUTPUT]]): Full[CallerContext, CallerContext, TracedInput[INPUT], CustomError, OUTPUT, R, Future]
- Definition Classes
- Endpoints
- def withTraceHeaders[P, E](endpoint: Endpoint[CallerContext, P, E, Unit, Any]): Endpoint[CallerContext, TracedInput[P], E, Unit, Any]
- Attributes
- protected
- Definition Classes
- Endpoints