public class GridGgfsClientSession extends Object
| Constructor and Description |
|---|
GridGgfsClientSession() |
| 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.Copyright © 2014. All rights reserved.