|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
ist.palcom.bytecode.IJavaServiceImpl
public abstract class IJavaServiceImpl
| Constructor Summary | |
|---|---|
IJavaServiceImpl()
Constructor: start monitoring for incoming messages |
|
| Method Summary | |
|---|---|
void |
addTopic(java.lang.String topic)
Add another topic to the list of topics that we subscribe to |
TopicMessage |
getNextMessage()
Return the next message that the Java service wishes to send |
java.lang.String |
getNextTopic()
Read the next topic that the Java service is interested in receiving messages on |
boolean |
hasMessage()
Return true if the Java service has a message to send |
abstract void |
receivedMessageHook(TopicMessage message)
Action to perform when a message has been received |
void |
receiveMessage(TopicMessage message)
A message which has been received is pushed to the Java service using this method |
void |
sendMessage(java.lang.String message,
java.lang.String topic)
Add message to outbound queue |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IJavaServiceImpl()
| Method Detail |
|---|
public abstract void receivedMessageHook(TopicMessage message)
public void sendMessage(java.lang.String message,
java.lang.String topic)
public void addTopic(java.lang.String topic)
public void receiveMessage(TopicMessage message)
IJavaService
receiveMessage in interface IJavaServicepublic boolean hasMessage()
IJavaService
hasMessage in interface IJavaServicepublic TopicMessage getNextMessage()
IJavaService
getNextMessage in interface IJavaServicepublic java.lang.String getNextTopic()
IJavaService
getNextTopic in interface IJavaService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||