Files
spring-soap/libraries-data/src/main/java/com/baeldung/ignite/cache/CustomLifecycleBean.java
Mher Baghinyan d6d44c7cb9 Bael 1603 (#3984)
* apache ignite module added

* Ignite more extended

* apache ignite full code

* employee json

* apache ignite

* reformatting the loop

* move apache ignite code snippets into libraries-data
2018-04-14 20:33:34 +02:00

15 lines
508 B
Java

package com.baeldung.ignite.cache;
import org.apache.ignite.IgniteException;
import org.apache.ignite.lifecycle.LifecycleBean;
import org.apache.ignite.lifecycle.LifecycleEventType;
public class CustomLifecycleBean implements LifecycleBean {
@Override
public void onLifecycleEvent(LifecycleEventType lifecycleEventType) throws IgniteException {
if (lifecycleEventType == LifecycleEventType.AFTER_NODE_START) {
//do something right after the Ignite node starts
}
}
}