Package org.eclipse.net4j.signal
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
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSignal(SignalProtocol<?> protocol, short id) Signal(SignalProtocol<?> protocol, short id, String name) Both implementation classes of a logical signal must have the same signalID.Signal(SignalProtocol<?> protocol, Enum<?> literal) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanprotected booleanprotected booleanprotected abstract voidexecute(BufferInputStream in, BufferOutputStream out) protected voidprotected voidprotected final voidflush()protected Stringprotected final BufferInputStreamprotected final BufferOutputStreamorg.eclipse.net4j.util.container.IManagedContainerfinal intprotected InputStreamprotected OutputStreamfinal shortgetID()Returns the short integer ID of this signal that is unique among all signals of the associatedprotocol.getName()protected voidfinal voidrun()toString()toString(boolean shortForm) protected InputStreamprotected OutputStream
-
Felddetails
-
NO_TIMEOUT
public static final long NO_TIMEOUT- Seit:
- 2.0
- Siehe auch:
-
-
Konstruktordetails
-
Signal
Both implementation classes of a logical signal must have the same signalID. The signalID of a user signals must be equal to or greater than zero.- Seit:
- 2.0
-
Signal
- Seit:
- 2.0
- Siehe auch:
-
Signal
- Seit:
- 2.0
- Siehe auch:
-
-
Methodendetails
-
getProtocol
-
getID
public final short getID()Returns the short integer ID of this signal that is unique among all signals of the associatedprotocol.- Seit:
- 2.0
-
getName
- Seit:
- 2.0
-
getCorrelationID
public final int getCorrelationID()- Seit:
- 2.0
-
getContainer
public org.eclipse.net4j.util.container.IManagedContainer getContainer()- Angegeben von:
getContainerin Schnittstelleorg.eclipse.net4j.util.container.IManagedContainerProvider
-
toString
-
toString
- Seit:
- 4.13
-
getAdditionalInfo
- Seit:
- 4.5
-
run
public final void run() -
getBufferInputStream
-
getBufferOutputStream
-
flush
- 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
- Seit:
- 2.0
-
getCurrentOutputStream
- Seit:
- 2.0
-
wrapInputStream
- Löst aus:
IOException
-
wrapOutputStream
- Löst aus:
IOException
-
finishInputStream
- Löst aus:
IOException
-
finishOutputStream
- Löst aus:
IOException
-
handleRunException
- Löst aus:
Throwable- Seit:
- 4.19
-
execute
- Löst aus:
Exception
-