public class SafeguardEventListener extends Object implements ISafeguardEventListener
| Modifier and Type | Field and Description |
|---|---|
HubProxy |
signalrHubProxy |
| Constructor and Description |
|---|
SafeguardEventListener(String eventUrl,
CertificateContext clientCertificate,
char[] apiKey,
boolean ignoreSsl) |
SafeguardEventListener(String eventUrl,
CertificateContext clientCertificate,
List<char[]> apiKeys,
boolean ignoreSsl) |
SafeguardEventListener(String eventUrl,
char[] accessToken,
boolean ignoreSsl) |
SafeguardEventListener(String eventUrl,
String clientCertificatePath,
char[] certificatePassword,
String certificateAlias,
char[] apiKey,
boolean ignoreSsl) |
SafeguardEventListener(String eventUrl,
String clientCertificatePath,
char[] certificatePassword,
String certificateAlias,
List<char[]> apiKeys,
boolean ignoreSsl) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of the connection.
|
protected void |
finalize() |
boolean |
isStarted()
Indicates whether the SignalR connection has completed start up.
|
void |
registerEventHandler(String eventName,
ISafeguardEventHandler handler)
Register an event handler to be called each time the specified event occurs.
|
void |
setDisconnectHandler(IDisconnectHandler handler) |
void |
setEventHandlerRegistry(EventHandlerRegistry registry) |
void |
start()
Start listening for Safeguard events in a background thread.
|
void |
stop()
Stop listening for Safeguard events in a background thread.
|
public HubProxy signalrHubProxy
public SafeguardEventListener(String eventUrl, char[] accessToken, boolean ignoreSsl) throws ArgumentException
ArgumentExceptionpublic SafeguardEventListener(String eventUrl, String clientCertificatePath, char[] certificatePassword, String certificateAlias, char[] apiKey, boolean ignoreSsl) throws ArgumentException
ArgumentExceptionpublic SafeguardEventListener(String eventUrl, CertificateContext clientCertificate, char[] apiKey, boolean ignoreSsl) throws ArgumentException
ArgumentExceptionpublic SafeguardEventListener(String eventUrl, String clientCertificatePath, char[] certificatePassword, String certificateAlias, List<char[]> apiKeys, boolean ignoreSsl) throws ArgumentException
ArgumentExceptionpublic SafeguardEventListener(String eventUrl, CertificateContext clientCertificate, List<char[]> apiKeys, boolean ignoreSsl) throws ArgumentException
ArgumentExceptionpublic void setDisconnectHandler(IDisconnectHandler handler)
public void setEventHandlerRegistry(EventHandlerRegistry registry)
public boolean isStarted()
ISafeguardEventListenerisStarted in interface ISafeguardEventListenerpublic void registerEventHandler(String eventName, ISafeguardEventHandler handler) throws ObjectDisposedException
ISafeguardEventListenerregisterEventHandler in interface ISafeguardEventListenereventName - Name of the event.handler - Callback method.ObjectDisposedException - Object has already been disposedpublic void start()
throws ObjectDisposedException,
SafeguardForJavaException,
SafeguardEventListenerDisconnectedException
ISafeguardEventListenerstart in interface ISafeguardEventListenerObjectDisposedException - Object has already been disposedSafeguardForJavaException - General Safeguard for Java exceptionSafeguardEventListenerDisconnectedException - Event listener has been disconnectedpublic void stop()
throws ObjectDisposedException,
SafeguardForJavaException
ISafeguardEventListenerstop in interface ISafeguardEventListenerObjectDisposedException - Object has already been disposedSafeguardForJavaException - General Safeguard for Java exceptionpublic void dispose()
ISafeguardEventListenerdispose in interface ISafeguardEventListenerCopyright © 2019. All rights reserved.