Class PsaRstApiSem


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

      All Methods Static Methods Concrete Methods 
      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 Detail

      • 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