public class CursorManager extends Object
cursors and their providers| Constructor and Description |
|---|
CursorManager(MutableStreamingStatistics statistics)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.streaming.CursorProvider |
manage(org.mule.runtime.api.streaming.CursorProvider provider,
Event creatorEvent)
Becomes aware of the given
provider and returns a replacement provider
which is managed by the runtime, allowing for automatic resource handling |
void |
onClose(org.mule.runtime.api.streaming.Cursor cursor,
CursorContext handle)
Acknowledges that the given
cursor has been closed |
void |
onOpen(org.mule.runtime.api.streaming.Cursor cursor,
CursorContext providerHandle)
Acknowledges that the given
cursor has been opened |
public CursorManager(MutableStreamingStatistics statistics)
statistics - statistics which values should be kept updatedpublic org.mule.runtime.api.streaming.CursorProvider manage(org.mule.runtime.api.streaming.CursorProvider provider,
Event creatorEvent)
provider and returns a replacement provider
which is managed by the runtime, allowing for automatic resource handlingprovider - the provider to be trackedcreatorEvent - the event that created the providerCursorContextpublic void onOpen(org.mule.runtime.api.streaming.Cursor cursor,
CursorContext providerHandle)
cursor has been openedcursor - the opnened cursorproviderHandle - the handle for the provider that generated itpublic void onClose(org.mule.runtime.api.streaming.Cursor cursor,
CursorContext handle)
cursor has been closedcursor - the closed cursorhandle - the handle for the provider that generated itCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.