|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.ca.ChannelSystem
ChannelSystem is a wrapper for static methods of Channel subclasses that are public and should be generally visible. This is necessary since there is no abstract static method construct in Java. A subclass of ChannelSystem will handle the request as appropriate by calling static methods of the target Channel subclass.
| Field Summary | |
protected boolean |
willSyncRequest
|
| Constructor Summary | |
protected |
ChannelSystem()
Creates a new instance of ChannelSystem |
| Method Summary | |
abstract void |
pendEvent(double timeout)
Schedule the queued requests with the specified timeout |
abstract boolean |
pendIO(double timeout)
Schedule an IO request with the specified timeout |
abstract void |
setDebugMode(boolean debugFlag)
Set the debug mode of the channel system. |
void |
setSyncRequest(boolean newStatus)
Set whether the requests are handled synchronously or asynchronously |
boolean |
willSyncRequest()
Determine whether requests will be handled synchronously |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected volatile boolean willSyncRequest
| Constructor Detail |
protected ChannelSystem()
| Method Detail |
public abstract void setDebugMode(boolean debugFlag)
debugFlag - True to enable debug mode and false to disable debug mode.public void setSyncRequest(boolean newStatus)
newStatus - true for synchronous mode and false for asynchronous modepublic boolean willSyncRequest()
public abstract boolean pendIO(double timeout)
timeout - the maximum time to wait for a successful pend IOpublic abstract void pendEvent(double timeout)
timeout - the maximum time to wait for successful handling of the request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||