Klasse Signal

java.lang.Object
org.eclipse.net4j.signal.Signal
Alle implementierten Schnittstellen:
Runnable, org.eclipse.net4j.util.container.IManagedContainerProvider
Bekannte direkte Unterklassen:
SignalActor, SignalReactor

public abstract class Signal extends Object implements Runnable, org.eclipse.net4j.util.container.IManagedContainerProvider
Represents a single communications use-case in the scope of a signal protocol.
Autor:
Eike Stepper
  • Felddetails

  • Konstruktordetails

  • Methodendetails

    • getProtocol

      public SignalProtocol<?> getProtocol()
    • getID

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

      public String getName()
      Seit:
      2.0
    • getCorrelationID

      public final int getCorrelationID()
      Seit:
      2.0
    • getContainer

      public org.eclipse.net4j.util.container.IManagedContainer getContainer()
      Angegeben von:
      getContainer in Schnittstelle org.eclipse.net4j.util.container.IManagedContainerProvider
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Seit:
      2.0
    • toString

      public String toString(boolean shortForm)
      Seit:
      4.13
    • getAdditionalInfo

      protected String getAdditionalInfo()
      Seit:
      4.5
    • run

      public final void run()
      Angegeben von:
      run in Schnittstelle Runnable
    • getBufferInputStream

      protected final BufferInputStream getBufferInputStream()
    • getBufferOutputStream

      protected final BufferOutputStream getBufferOutputStream()
    • flush

      protected final void flush() throws IOException
      Löst aus:
      IOException
      Seit:
      2.0
    • closeChannelAfterMe

      protected boolean closeChannelAfterMe()
      Seit:
      4.4
    • closeInputStreamAfterMe

      protected boolean closeInputStreamAfterMe()
      Seit:
      4.5
    • closeOutputStreamAfterMe

      protected boolean closeOutputStreamAfterMe()
      Seit:
      4.5
    • getCurrentInputStream

      protected InputStream getCurrentInputStream()
      Seit:
      2.0
    • getCurrentOutputStream

      protected OutputStream getCurrentOutputStream()
      Seit:
      2.0
    • wrapInputStream

      protected InputStream wrapInputStream(InputStream in) throws IOException
      Löst aus:
      IOException
    • wrapOutputStream

      protected OutputStream wrapOutputStream(OutputStream out) throws IOException
      Löst aus:
      IOException
    • finishInputStream

      protected void finishInputStream(InputStream in) throws IOException
      Löst aus:
      IOException
    • finishOutputStream

      protected void finishOutputStream(OutputStream out) throws IOException
      Löst aus:
      IOException
    • handleRunException

      protected void handleRunException(Throwable ex) throws Throwable
      Löst aus:
      Throwable
      Seit:
      4.19
    • execute

      protected abstract void execute(BufferInputStream in, BufferOutputStream out) throws Exception
      Löst aus:
      Exception