|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcsp.lang.Guard
org.jcsp.lang.AltingConnectionServer
public abstract class AltingConnectionServer
An interface to connection. This is used by servers which wish to
ALT over a connection. Note that you cannot have
more than one server serving an AltingConnectionServer.
ConnectionServer,
ConnectionClient,
Connection| Field Summary |
|---|
| Fields inherited from interface org.jcsp.lang.ConnectionServer |
|---|
FACTORY |
| Constructor Summary | |
|---|---|
protected |
AltingConnectionServer(AltingChannelInput altingChannel)
Constructor. |
| Method Summary | |
|---|---|
protected AltingChannelInput |
getAltingChannel()
Returns the channel used to implement the Guard. |
boolean |
pending()
Returns whether there is an open() pending on this connection. |
protected void |
setAltingChannel(AltingChannelInput chan)
ConnectionServer implementations are likely to be
implemented over channels. |
| Methods inherited from class org.jcsp.lang.Guard |
|---|
schedule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jcsp.lang.ConnectionServer |
|---|
reply, reply, replyAndClose, request |
| Constructor Detail |
|---|
protected AltingConnectionServer(AltingChannelInput altingChannel)
altingChannel - The channel used to implement the Guard| Method Detail |
|---|
protected AltingChannelInput getAltingChannel()
protected void setAltingChannel(AltingChannelInput chan)
ConnectionServer implementations are likely to be
implemented over channels. Multiple channels from the client
to server may be used; one could be used for the initial
connection while another one could be used for data requests.
This method allows sub-classes to specify which channel should
be the next one to be alted over.
chan - the channel to be ALTed over.public boolean pending()
Note: if there is, it won't go away until you accept it. But if there isn't, there may be one by the time you check the result of this method.
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||