Class IndicationWithResponse

All Implemented Interfaces:
Runnable, org.eclipse.net4j.util.container.IManagedContainerProvider
Direct Known Subclasses:
EntityIndication, IndicationWithMonitoring

public abstract class IndicationWithResponse extends SignalReactor
Represents the receiver side of a two-way signal, i.e., one with a response.
Author:
Eike Stepper
  • Constructor Details

    • IndicationWithResponse

      public IndicationWithResponse(SignalProtocol<?> protocol, short id, String name)
      Since:
      2.0
    • IndicationWithResponse

      public IndicationWithResponse(SignalProtocol<?> protocol, short signalID)
      Since:
      2.0
    • IndicationWithResponse

      public IndicationWithResponse(SignalProtocol<?> protocol, Enum<?> literal)
      Since:
      2.0
  • Method Details

    • closeChannelAfterException

      protected boolean closeChannelAfterException()
      Since:
      4.4
    • getExceptionMessage

      protected String getExceptionMessage(Throwable t)
      Since:
      2.0
    • execute

      protected void execute(BufferInputStream in, BufferOutputStream out) throws Exception
      Specified by:
      execute in class Signal
      Throws:
      Exception
    • indicating

      protected abstract void indicating(org.eclipse.net4j.util.io.ExtendedDataInputStream in) throws Exception
      Throws:
      Exception
    • responding

      protected abstract void responding(org.eclipse.net4j.util.io.ExtendedDataOutputStream out) throws Exception
      Important Note: The response must not be empty, i.e. the stream must be used at least to write a boolean. Otherwise synchronization problems will result!
      Throws:
      Exception