class PingService extends AdminWorkflowService with NamedLogging
Implements the core of the ledger ping service for a participant. The service measures the time needed for a nanobot on the responder to act on a contract created by the initiator.
The main functionality: 1. once instantiated, it automatically starts a Scala Nanobot that responds to pings for this participant 2. it provides a ping method that sends a ping to the given (target) party
Parameters:
- Annotations
- @SuppressWarnings()
- Alphabetic
- By Inheritance
- PingService
- NamedLogging
- AdminWorkflowService
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PingService(connection: LedgerSubmit, adminParty: Party, maxLevelSupported: Long, pingDeduplicationTime: NonNegativeFiniteDuration, isActive: => Boolean, loggerFactory: NamedLoggerFactory, clock: Clock)(implicit ec: ExecutionContext, timeoutScheduler: ScheduledExecutorService)
- adminParty
P.Party the party on whose behalf to send/respond to pings
- maxLevelSupported
Long the maximum level we will participate in "Explode / Collapse" Pings
- loggerFactory
NamedLogger logger
- clock
Clock clock for regular garbage collection of duplicates and merges
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
- val clock: Clock
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
- Definition Classes
- PingService → AutoCloseable
- 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() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Attributes
- protected
- Definition Classes
- PingService → NamedLogging
- implicit def loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- 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
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def ping(targetParties: Set[String], validators: Set[String], timeoutMillis: Long, duplicateGracePeriod: Long = 1000, maxLevel: Long = 0, workflowId: Option[daml.ledger.api.refinements.ApiTypes.WorkflowId] = None, id: String = UUID.randomUUID().toString)(implicit traceContext: TraceContext): Future[Result]
Send a ping to the target party, return round-trip time or a timeout
Send a ping to the target party, return round-trip time or a timeout
- targetParties
String the parties to send ping to
- validators
additional validators (signatories) of the contracts
- timeoutMillis
Long how long to wait for pong (in milliseconds)
- def processCollapse(contracts: Seq[Contract[Collapse]], workflowId: daml.ledger.api.refinements.ApiTypes.WorkflowId)(implicit traceContext: TraceContext): Unit
- Attributes
- protected
- def processExplode(explodes: Seq[Contract[Explode]], workflowId: daml.ledger.api.refinements.ApiTypes.WorkflowId)(implicit traceContext: TraceContext): Unit
- Attributes
- protected
- def processMerge(contracts: Seq[Contract[Merge]])(implicit traceContext: TraceContext): Unit
- Attributes
- protected
- def processProposal(proposals: Seq[Contract[PingProposal]], workflowId: daml.ledger.api.refinements.ApiTypes.WorkflowId)(implicit traceContext: TraceContext): Unit
- Attributes
- protected
- 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])