public abstract class BasePaymentListener extends java.lang.Object implements PaymentListener
| Constructor and Description |
|---|
BasePaymentListener(byte[] preImageHash,
PaymentEventType type,
boolean unregisterAfterEvent)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getPreImageHash() |
PaymentEventType |
getType() |
boolean |
unregisterAfterEvent() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonPaymentEventpublic BasePaymentListener(byte[] preImageHash,
PaymentEventType type,
boolean unregisterAfterEvent)
preImageHash - the pre image hash of the payment that the listener is interested in, null if all events
should be signaled.type - the type of event the listener is interested in, use PaymentEventType.ANY_TYPE to receive
notification for any type.unregisterAfterEvent - flag indicating that the this listener should unregister itself after first matching
event have been triggered. This to avoid manual unregistration.public byte[] getPreImageHash()
getPreImageHash in interface PaymentListenerpublic PaymentEventType getType()
getType in interface PaymentListenerpublic boolean unregisterAfterEvent()
unregisterAfterEvent in interface PaymentListener