Class ClientResourceRegistry
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.client.ClientResourceRegistry
-
public class ClientResourceRegistry extends Object
Per-connection resource registry.
-
-
Constructor Summary
Constructors Constructor Description ClientResourceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean()Cleans all handles and closes all ClientCloseableResources.<T> Tget(long hnd)Gets the object by handle.longput(Object obj)Allocates server handle for an object.voidrelease(long hnd)Releases the handle.
-
-
-
Method Detail
-
put
public long put(Object obj)
Allocates server handle for an object.- Parameters:
obj- Object.- Returns:
- Handle.
-
get
public <T> T get(long hnd)
Gets the object by handle.- Type Parameters:
T- Object type.- Parameters:
hnd- Handle.- Returns:
- Object.
-
release
public void release(long hnd)
Releases the handle.- Parameters:
hnd- Handle.
-
clean
public void clean()
Cleans all handles and closes all ClientCloseableResources.
-
-