public class TargetSenderWorker extends Object
TargetConnection objects for
sending and receiving ProtocolDataUnit objects.| Constructor and Description |
|---|
TargetSenderWorker(Connection connection,
SocketChannel socketChannel)
Creates a new
TargetSenderWorker object. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method does all the necessary steps, which are needed when a
connection should be closed.
|
public TargetSenderWorker(Connection connection, SocketChannel socketChannel)
TargetSenderWorker object.connection - the connection that will use this object for sending and
receiving PDUssocketChannel - used for sending and receiving serialized PDU to and from the
targetpublic final void close()
throws IOException
IOException - if an I/O error occurs.Copyright © 2012 University of Konstanz, Distributed Systems Group. All Rights Reserved.