Class IndicationWithResponse

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    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 Detail

      • IndicationWithResponse

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

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

        public IndicationWithResponse​(SignalProtocol<?> protocol,
                                      java.lang.Enum<?> literal)
        Since:
        2.0
    • Method Detail

      • closeChannelAfterException

        protected boolean closeChannelAfterException()
        Since:
        4.4
      • getExceptionMessage

        protected java.lang.String getExceptionMessage​(java.lang.Throwable t)
        Since:
        2.0
      • indicating

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

        protected abstract void responding​(org.eclipse.net4j.util.io.ExtendedDataOutputStream out)
                                    throws java.lang.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:
        java.lang.Exception