use of org.apache.geode.internal.cache.ClientServerObserverAdapter in project geode by apache.
the class TestObject20 method setClientServerObserver1.
public static void setClientServerObserver1() {
PoolImpl.IS_INSTANTIATOR_CALLBACK = true;
ClientServerObserverHolder.setInstance(new ClientServerObserverAdapter() {
public void beforeSendingToServer(EventID eventID) {
eventId = eventID;
System.out.println("client2= " + client2 + " eventid= " + eventID);
client2.invoke(() -> InstantiatorPropagationDUnitTest.setEventId(eventId));
}
});
}
use of org.apache.geode.internal.cache.ClientServerObserverAdapter in project geode by apache.
the class TestObject20 method setClientServerObserver2.
public static void setClientServerObserver2() {
PoolImpl.IS_INSTANTIATOR_CALLBACK = true;
ClientServerObserverHolder.setInstance(new ClientServerObserverAdapter() {
public void afterReceivingFromServer(EventID eventID) {
System.out.println("Observer2 received " + eventID + "; my eventID is " + eventId);
testEventIDResult = eventID.equals(eventId);
}
});
}
Aggregations