public class EventSubscribeXmlRenderingCallback extends Object implements WEvtApi.EVT_SUBSCRIBE_CALLBACK
| Modifier and Type | Field and Description |
|---|---|
private com.sun.jna.Memory |
buffer |
private Consumer<String> |
consumer |
private ErrorLookup |
errorLookup |
static String |
EVT_RENDER_RETURNED_THE_FOLLOWING_ERROR_CODE |
static int |
INITIAL_BUFFER_SIZE |
private com.sun.jna.platform.win32.Kernel32 |
kernel32 |
private ComponentLog |
logger |
private int |
maxBufferSize |
static String |
MISSING_EVENT_MESSAGE |
private com.sun.jna.Memory |
propertyCount |
static String |
RECEIVED_THE_FOLLOWING_WIN32_ERROR |
private int |
size |
private boolean |
subscriptionFailed |
private com.sun.jna.Memory |
used |
private WEvtApi |
wEvtApi |
| Constructor and Description |
|---|
EventSubscribeXmlRenderingCallback(ComponentLog logger,
Consumer<String> consumer,
int maxBufferSize,
WEvtApi wEvtApi,
com.sun.jna.platform.win32.Kernel32 kernel32,
ErrorLookup errorLookup) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSubscriptionFailed() |
int |
onEvent(int evtSubscribeNotifyAction,
com.sun.jna.platform.win32.WinDef.PVOID userContext,
com.sun.jna.platform.win32.WinNT.HANDLE eventHandle)
Callback method that will be invoked when new events come in
|
public static final String RECEIVED_THE_FOLLOWING_WIN32_ERROR
public static final int INITIAL_BUFFER_SIZE
public static final String EVT_RENDER_RETURNED_THE_FOLLOWING_ERROR_CODE
public static final String MISSING_EVENT_MESSAGE
private final ComponentLog logger
private final int maxBufferSize
private final WEvtApi wEvtApi
private final com.sun.jna.platform.win32.Kernel32 kernel32
private final ErrorLookup errorLookup
private int size
private com.sun.jna.Memory buffer
private com.sun.jna.Memory used
private com.sun.jna.Memory propertyCount
private boolean subscriptionFailed
public EventSubscribeXmlRenderingCallback(ComponentLog logger, Consumer<String> consumer, int maxBufferSize, WEvtApi wEvtApi, com.sun.jna.platform.win32.Kernel32 kernel32, ErrorLookup errorLookup)
public int onEvent(int evtSubscribeNotifyAction,
com.sun.jna.platform.win32.WinDef.PVOID userContext,
com.sun.jna.platform.win32.WinNT.HANDLE eventHandle)
WEvtApi.EVT_SUBSCRIBE_CALLBACKonEvent in interface WEvtApi.EVT_SUBSCRIBE_CALLBACKevtSubscribeNotifyAction - the notify actionuserContext - the user contexteventHandle - the event handlepublic boolean isSubscriptionFailed()
Copyright © 2020 Apache NiFi Project. All rights reserved.