public abstract class NotificationHandler
extends java.lang.Object
Constructor and Description |
---|
NotificationHandler(NotificationModule _nm,
java.lang.Class _clazz) |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(MyTISMAdresse _adresse) |
abstract java.lang.String |
getByMedium() |
java.lang.Class |
getClazz() |
NotificationModule |
getNotificationModule() |
int |
getState() |
int |
handleNotification(Benachrichtigungsversendungsinfo _bvi,
MyTISMBenachrichtigung _benach,
Transaction _tx,
boolean _isRetry)
Handles (normally: sends out) the given notification to one specific
address.
|
void |
setClazz(java.lang.Class $3) |
void |
setNotificationModule(NotificationModule $2) |
void |
setState(int _state) |
void |
start() |
void |
start(boolean _startup) |
void |
stop() |
public NotificationHandler(NotificationModule _nm, java.lang.Class _clazz)
public abstract java.lang.String getByMedium()
public boolean canHandle(MyTISMAdresse _adresse)
public int handleNotification(Benachrichtigungsversendungsinfo _bvi, MyTISMBenachrichtigung _benach, Transaction _tx, boolean _isRetry)
_bvi
- a Benachrichtigungsversendungsinfo
with the most
important info being to which address the notification should be send_benach
- the notification to send out_tx
- a Transaction
used for loading objects and saving
changes_isRetry
- true if this handling results from retrying an earlier
failed handling of the specific address/notification combination; false
if this is the first handlingRESULT_SEND_OK
if something was done and successfully;
RESULT_SEND_FAILED
if something should have been done, but
problems occurred; RESULT_MAX_RETRIES_REACHED
if something
should have been done, but the retry limit was reached; and
RESULT_NO_ACTION_NECESSARY
if nothing was actually done and
that is okpublic void setState(int _state)
public void start()
public void start(boolean _startup)
public void stop()
public NotificationModule getNotificationModule()
public void setNotificationModule(NotificationModule $2)
public java.lang.Class getClazz()
public void setClazz(java.lang.Class $3)
public int getState()
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.