Class Signal

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    SignalActor, SignalReactor

    public abstract class Signal
    extends java.lang.Object
    implements java.lang.Runnable
    Represents a single communications use-case in the scope of a signal protocol.
    Author:
    Eike Stepper
    • Method Detail

      • getID

        public final short getID()
        Returns the short integer ID of this signal that is unique among all signals of the associated protocol.
        Since:
        2.0
      • getName

        public java.lang.String getName()
        Since:
        2.0
      • getCorrelationID

        public final int getCorrelationID()
        Since:
        2.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Since:
        2.0
      • getAdditionalInfo

        protected java.lang.String getAdditionalInfo()
        Since:
        4.5
      • run

        public final void run()
        Specified by:
        run in interface java.lang.Runnable
      • flush

        protected final void flush()
                            throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        2.0
      • closeChannelAfterMe

        protected boolean closeChannelAfterMe()
        Since:
        4.4
      • closeInputStreamAfterMe

        protected boolean closeInputStreamAfterMe()
        Since:
        4.5
      • closeOutputStreamAfterMe

        protected boolean closeOutputStreamAfterMe()
        Since:
        4.5
      • getCurrentInputStream

        protected java.io.InputStream getCurrentInputStream()
        Since:
        2.0
      • getCurrentOutputStream

        protected java.io.OutputStream getCurrentOutputStream()
        Since:
        2.0
      • wrapInputStream

        protected java.io.InputStream wrapInputStream​(java.io.InputStream in)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • wrapOutputStream

        protected java.io.OutputStream wrapOutputStream​(java.io.OutputStream out)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • finishInputStream

        protected void finishInputStream​(java.io.InputStream in)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • finishOutputStream

        protected void finishOutputStream​(java.io.OutputStream out)
                                   throws java.io.IOException
        Throws:
        java.io.IOException