Class GEventLink
java.lang.Object
com.glitchybyte.glib.concurrent.event.GEventLink
- All Implemented Interfaces:
GEventSender
Event link.
This is the link between sender and receiver. This link implements
and acts as a sender itself. Consider capturing GEventSender
interface only, unless you actually need to create a new receiver.
Designed to queue events without blocking.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GEventLink
public GEventLink()Creates an event link.
-
-
Method Details
-
createEventReceiver
Creates an event receiver linked to this event link.- Parameters:
eventHandler- Event handler.- Returns:
- A new event receiver.
-
send
Description copied from interface:GEventSenderSend event.- Specified by:
sendin interfaceGEventSender- Parameters:
event- Event object.
-
send
Description copied from interface:GEventSenderSend event.- Specified by:
sendin interfaceGEventSender- Parameters:
eventType- Event kind.data- Event data.
-
send
Description copied from interface:GEventSenderSend event with no data.- Specified by:
sendin interfaceGEventSender- Parameters:
eventType- Event kind.
-