public class OutletProtocol extends Thread implements Observer, Serializable
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
OutletProtocol(Object synchThreadStart,
Socket clientSock,
String NozzleID,
String ChannelID,
ChannelState State)
Instantiates a new outlet protocol.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Dispose()
Disposes the protocol state and unregisters from events
|
Boolean |
HasConnected()
Checks if the outlet is connected to the inlet channel
|
void |
run() |
Boolean |
StillConnected()
Checks if the outlet is still connected to the inlet channel
|
void |
update(Observable o,
Object arg) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic OutletProtocol(Object synchThreadStart, Socket clientSock, String NozzleID, String ChannelID, ChannelState State)
synchThreadStart - the object the client should wait on until the thread is started and a notify is emittedclientSock - the socket the protocol should write and read synchronization infoNozzleID - the id of the nozzle this protocol is acting on behalf ofChannelID - the id of the channel the nozzle is interested inState - the state where to emit incoming events and register for outgoing eventspublic void Dispose()
public Boolean HasConnected()
public Boolean StillConnected()
public void update(Observable o, Object arg)
Copyright © 2018. All Rights Reserved.