E - the BackendUpdatedEvent that this backend fires.S - this backend's corresponding Source.public interface Backend<E extends BackendUpdatedEvent>
| Modifier and Type | Method and Description |
|---|---|
void |
addBackendListener(BackendListener<E> listener)
Registers a listener that get called whenever a backend changes.
|
void |
close()
Releases any resources allocated by this backend.
|
String |
getConfigurationsId() |
String |
getDisplayName()
Returns the name of this backend for display in user interfaces.
|
String |
getId() |
void |
initialize(BackendInstanceSpec<?> config)
Initializes the backend from a
BackendInstanceSpec. |
void |
removeBackendListener(BackendListener<E> listener)
Unregisters a listener so that changes to the backend are no longer sent.
|
void |
setEventListeners(List<? extends ProtempaEventListener> eventListeners) |
void initialize(BackendInstanceSpec<?> config) throws BackendInitializationException
BackendInstanceSpec. It is called
for you by BackendInstanceSpec.getInstance(), but if you
create a Backend object yourself, you must call this manually
before using it.source - the backend's corresponding Source instance.config - the configuration Properties object.BackendInitializationExceptionString getDisplayName()
String.String getConfigurationsId()
String getId()
void close()
throws BackendCloseException
BackendCloseExceptionvoid addBackendListener(BackendListener<E> listener)
listener - a BackendListener.void removeBackendListener(BackendListener<E> listener)
listener - a BackendListener.void setEventListeners(List<? extends ProtempaEventListener> eventListeners)
Copyright © 2012–2018 Emory University. All rights reserved.