Class LocallyDispatchedActivityWorker.Task

    • Field Detail

      • activityId

        protected final java.lang.String activityId
      • input

        protected final java.nio.ByteBuffer input
      • scheduleToCloseTimeoutSeconds

        protected final int scheduleToCloseTimeoutSeconds
      • startToCloseTimeoutSeconds

        protected final int startToCloseTimeoutSeconds
      • heartbeatTimeoutSeconds

        protected final int heartbeatTimeoutSeconds
      • workflowDomain

        protected final java.lang.String workflowDomain
      • header

        protected final Header header
      • scheduledTimestamp

        protected long scheduledTimestamp
      • scheduledTimestampOfThisAttempt

        protected long scheduledTimestampOfThisAttempt
      • startedTimestamp

        protected long startedTimestamp
      • taskToken

        protected java.nio.ByteBuffer taskToken
    • Constructor Detail

      • Task

        public Task​(java.lang.String activityId,
                    ActivityType activityType,
                    java.nio.ByteBuffer input,
                    int scheduleToCloseTimeoutSeconds,
                    int startToCloseTimeoutSeconds,
                    int heartbeatTimeoutSeconds,
                    WorkflowType workflowType,
                    java.lang.String workflowDomain,
                    Header header,
                    WorkflowExecution workflowExecution)
    • Method Detail

      • await

        protected boolean await()
                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • notify

        public void notify​(boolean ready)