|
Prevayler™
The Free Software Prevalence Layer |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addSubscriber(TransactionSubscriber subscriber,
long initialTransaction)
Updates the given subscriber with all transactions published since initialTransaction, returns and continues publishing all future transactions to him. |
Clock |
clock()
Returns a Clock which is consistent with the Transaction publishing time. |
void |
close()
Closes any files or other system resources opened by this TransactionPublisher. |
void |
publish(Transaction transaction)
Publishes transaction to the subscribers synchronously. |
void |
removeSubscriber(TransactionSubscriber subscriber)
Stops publishing future transactions to the given subscriber. |
Method Detail |
public void addSubscriber(TransactionSubscriber subscriber, long initialTransaction) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void removeSubscriber(TransactionSubscriber subscriber)
public void publish(Transaction transaction)
public Clock clock()
public void close() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |