|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.support.Subscription<M>
M - Message typepublic class Subscription<M>
Message processor registration
| Constructor Summary | |
|---|---|
Subscription(Subscriber<M> subscriber)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
accept(M message)
Checks if this subscription accepts a message |
boolean |
equals(Object o)
|
long |
getRegistrationTime()
Returns the registration date |
Subscriber<M> |
getSubscriber()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Subscription(Subscriber<M> subscriber)
subscriber - Associated subscriber| Method Detail |
|---|
public boolean accept(M message)
message - Message to test
public boolean equals(Object o)
equals in class ObjectObject.equals(Object)public long getRegistrationTime()
System.currentTimeMillis()public Subscriber<M> getSubscriber()
public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||