public class IgfsClientSession extends Object
Constructor and Description |
---|
IgfsClientSession() |
Modifier and Type | Method and Description |
---|---|
Iterator<Closeable> |
registeredResources() |
boolean |
registerResource(long rsrcId,
Closeable rsrc)
Registers resource within this session.
|
<T> T |
resource(Long rsrcId)
Gets registered resource by ID.
|
boolean |
unregisterResource(Long rsrcId,
Closeable rsrc)
Unregister previously registered resource.
|
public boolean registerResource(long rsrcId, Closeable rsrc)
rsrcId
- Resource id.rsrc
- Resource to register.@Nullable public <T> T resource(Long rsrcId)
rsrcId
- Resource ID.null
if resource was not found.public boolean unregisterResource(Long rsrcId, Closeable rsrc)
rsrcId
- Resource ID.rsrc
- Resource to unregister.True
if resource was unregistered, false
if no resource
is associated with this ID or other resource is associated with this ID.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017