Class PlatformLifecycleBean
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.lifecycle.PlatformLifecycleBean
-
- All Implemented Interfaces:
LifecycleBean
- Direct Known Subclasses:
PlatformDotNetLifecycleBean
public class PlatformLifecycleBean extends Object implements LifecycleBean
Lifecycle aware bean for interop.
-
-
Field Summary
Fields Modifier and Type Field Description PlatformCallbackGatewaygateNative gateway.longptrHolder pointer.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlatformLifecycleBean()Constructor.PlatformLifecycleBean(PlatformCallbackGateway gate, long ptr)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(PlatformCallbackGateway gate, long ptr)Set pointers.voidonLifecycleEvent(LifecycleEventType evt)This method is called when lifecycle event occurs.
-
-
-
Field Detail
-
gate
public PlatformCallbackGateway gate
Native gateway.
-
ptr
public long ptr
Holder pointer.
-
-
Constructor Detail
-
PlatformLifecycleBean
protected PlatformLifecycleBean()
Constructor.
-
PlatformLifecycleBean
public PlatformLifecycleBean(PlatformCallbackGateway gate, long ptr)
Constructor.- Parameters:
gate- Native gateway.ptr- Holder pointer.
-
-
Method Detail
-
onLifecycleEvent
public void onLifecycleEvent(LifecycleEventType evt)
This method is called when lifecycle event occurs.- Specified by:
onLifecycleEventin interfaceLifecycleBean- Parameters:
evt- Lifecycle event.
-
initialize
public void initialize(PlatformCallbackGateway gate, long ptr)
Set pointers.- Parameters:
gate- Native gateway.ptr- Target pointer.
-
-