private static class JFTP.ChanSet
extends java.lang.Object
ChannelOutput
objects with
a flag to indicate that the request set is currently being processed.Modifier and Type | Field and Description |
---|---|
private boolean |
beingProcessed
true if a class is currently being loaded. |
private java.util.Vector |
set
Holds the
ChannelOutput objects. |
Constructor and Description |
---|
ChanSet(ChannelOutput out)
Constructs a new
ChanSet with an initial entry in the set. |
Modifier and Type | Method and Description |
---|---|
void |
addRequest(ChannelOutput out)
Adds a request (the channel to reply on) to the set.
|
boolean |
isBeingProcessed()
Returns
true if a class is being loaded by another thread. |
void |
nowBeingProcessed()
Sets the flag to indicate that a class is currently being loaded.
|
void |
writeToAll(JFTP.ClassReply reply)
Broadcast the reply to all of the clients in the set.
|
private java.util.Vector set
ChannelOutput
objects.private boolean beingProcessed
true
if a class is currently being loaded.public ChanSet(ChannelOutput out)
ChanSet
with an initial entry in the set.public void nowBeingProcessed()
public boolean isBeingProcessed()
true
if a class is being loaded by another thread.public void addRequest(ChannelOutput out)
out
- channel to send the reply on.public void writeToAll(JFTP.ClassReply reply)
reply
- the message to send.