public abstract class PersistentSafeguardEventListenerBase extends Object implements ISafeguardEventListener
| Modifier | Constructor and Description |
|---|---|
protected |
PersistentSafeguardEventListenerBase() |
| 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.
|
protected abstract SafeguardEventListener |
reconnectEventListener() |
void |
registerEventHandler(String eventName,
ISafeguardEventHandler handler)
Register an event handler to be called each time the specified event occurs.
|
void |
start()
Start listening for Safeguard events in a background thread.
|
void |
stop()
Stop listening for Safeguard events in a background thread.
|
protected PersistentSafeguardEventListenerBase()
public void registerEventHandler(String eventName, ISafeguardEventHandler handler) throws ObjectDisposedException
ISafeguardEventListenerregisterEventHandler in interface ISafeguardEventListenereventName - Name of the event.handler - Callback method.ObjectDisposedException - Object has already been disposedprotected abstract SafeguardEventListener reconnectEventListener() throws ObjectDisposedException, SafeguardForJavaException, ArgumentException
public void start()
throws ObjectDisposedException
ISafeguardEventListenerstart in interface ISafeguardEventListenerObjectDisposedException - Object has already been disposedpublic void stop()
throws ObjectDisposedException,
SafeguardForJavaException
ISafeguardEventListenerstop in interface ISafeguardEventListenerObjectDisposedException - Object has already been disposedSafeguardForJavaException - General Safeguard for Java exceptionpublic boolean isStarted()
ISafeguardEventListenerisStarted in interface ISafeguardEventListenerpublic void dispose()
ISafeguardEventListenerdispose in interface ISafeguardEventListenerCopyright © 2019. All rights reserved.