|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prevayler.implementation.replication.ClientPublisher
public class ClientPublisher
Reserved for future implementation.
Constructor Summary | |
---|---|
ClientPublisher(OldNetworkImpl network,
String serverIpAddress,
int serverPort)
|
Method Summary | |
---|---|
void |
cancelSubscription(TransactionSubscriber subscriber)
Stops publishing future transactions to the given subscriber. |
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(Capsule capsule)
Publishes transaction to the subscribers synchronously. |
void |
subscribe(TransactionSubscriber subscriber,
long initialTransaction)
Updates the given subscriber with all transactions published since initialTransaction, returns and continues publishing all future transactions to him. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientPublisher(OldNetworkImpl network, String serverIpAddress, int serverPort) throws IOException
IOException
Method Detail |
---|
public void subscribe(TransactionSubscriber subscriber, long initialTransaction) throws IOException, ClassNotFoundException
TransactionPublisher
subscribe
in interface TransactionPublisher
IOException
ClassNotFoundException
public void cancelSubscription(TransactionSubscriber subscriber)
TransactionPublisher
cancelSubscription
in interface TransactionPublisher
public void publish(Capsule capsule)
TransactionPublisher
publish
in interface TransactionPublisher
public Clock clock()
TransactionPublisher
clock
in interface TransactionPublisher
public void close() throws IOException
TransactionPublisher
close
in interface TransactionPublisher
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |