Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEvent ¶
BaseEvent is the base implementation of Event You should never use it directly
func NewBaseEvent ¶
func NewBaseEvent(source interface{}) *BaseEvent
NewBaseEvent create an BaseEvent instance and the Timestamp will be current timestamp
func (*BaseEvent) GetSource ¶
func (b *BaseEvent) GetSource() interface{}
GetSource return the source
func (*BaseEvent) GetTimestamp ¶
GetTimestamp return the Timestamp when the event is created
type ChangedNotify ¶
type ChangedNotify interface {
Notify(e Event)
}
type ConditionalEventListener ¶
type ConditionalEventListener interface { EventListener // Accept will make the decision whether it should handle this event Accept(e Event) bool }
ConditionalEventListener only handle the event which it can handle
type EventListener ¶
type EventListener interface { gxsort.Prioritizer // OnEvent handle this event OnEvent(e Event) error // GetEventType listen which event type GetEventType() reflect.Type }
EventListener is an new interface used to align with dubbo 2.7.5 It contains the Prioritized means that the listener has its priority Usually the priority of your custom implementation should be between [100, 9000] the number outside the range will be though as system reserve number usually implementation should be singleton