Class PsaRstApiSem

java.lang.Object
de.pisa.psa.rst.uti.PsaRstApiSem

public final class PsaRstApiSem extends Object
REST API: semaphores for controlling the behavior
Since:
11.08.2023
Author:
weiland
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto, int row)
    check if the semaphore for execute the event asynchronously is set
    static boolean
    isSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto, int row)
    check if the semaphore for ignoring the current event is set
    static de.pisa.psa.dto.PsaSemHdl.Ctl
    setSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto)
    set the semaphore to execute the event asynchronously for the data object
    static de.pisa.psa.dto.PsaSemHdl.Ctl
    setSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto, int row)
    set the semaphore to execute the event asynchronously for the record
    static de.pisa.psa.dto.PsaSemHdl.Ctl
    setSemExecuteAsync(de.pisa.psc.srv.glb.PscSsn ssn)
    set the semaphore to execute the event asynchronously for the session
    static de.pisa.psa.dto.PsaSemHdl.Ctl
    setSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto)
    set the semaphore to ignore event processing for the data object
    static de.pisa.psa.dto.PsaSemHdl.Ctl
    setSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto, int row)
    set the semaphore to ignore event processing for the record
    static de.pisa.psa.dto.PsaSemHdl.Ctl
    setSemIgnoreEvent(de.pisa.psc.srv.glb.PscSsn ssn)
    set the semaphore to ignore event processing for the session

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • setSemIgnoreEvent

      public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemIgnoreEvent(de.pisa.psc.srv.glb.PscSsn ssn)
      set the semaphore to ignore event processing for the session
      Parameters:
      ssn - session
      Returns:
      semaphore handler
    • setSemIgnoreEvent

      public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto)
      set the semaphore to ignore event processing for the data object
      Parameters:
      dto - data object
      Returns:
      semaphore handler
    • setSemIgnoreEvent

      public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto, int row) throws de.pisa.psc.srv.glb.PscExc
      set the semaphore to ignore event processing for the record
      Parameters:
      dto - data object
      row - row of the record
      Returns:
      semaphore handler
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • isSemIgnoreEvent

      public static boolean isSemIgnoreEvent(de.pisa.psc.srv.dto.PscDto dto, int row) throws de.pisa.psc.srv.glb.PscExc
      check if the semaphore for ignoring the current event is set
      Parameters:
      dto - data object
      row - row
      Returns:
      true if the semaphore is set
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • setSemExecuteAsync

      public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemExecuteAsync(de.pisa.psc.srv.glb.PscSsn ssn)
      set the semaphore to execute the event asynchronously for the session
      Parameters:
      ssn - session
      Returns:
      semaphore handler
    • setSemExecuteAsync

      public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto)
      set the semaphore to execute the event asynchronously for the data object
      Parameters:
      dto - data object
      Returns:
      semaphore handler
    • setSemExecuteAsync

      public static de.pisa.psa.dto.PsaSemHdl.Ctl setSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto, int row) throws de.pisa.psc.srv.glb.PscExc
      set the semaphore to execute the event asynchronously for the record
      Parameters:
      dto - data object
      row - row of the record
      Returns:
      semaphore handler
      Throws:
      de.pisa.psc.srv.glb.PscExc
    • isSemExecuteAsync

      public static boolean isSemExecuteAsync(de.pisa.psc.srv.dto.PscDto dto, int row) throws de.pisa.psc.srv.glb.PscExc
      check if the semaphore for execute the event asynchronously is set
      Parameters:
      dto - data object
      row - row
      Returns:
      true if the semaphore is set
      Throws:
      de.pisa.psc.srv.glb.PscExc