PrivMX DOCS
API Reference/PrivMX Endpoint Java/Core

EventQueue

Defines methods to working with Events queue.

Static Methods

emitBreakEvent

Puts the break event on the events queue. You can use it to break the #waitEvent().

public static void emitBreakEvent()

getEvent

Gets the first event from the events queue.

public static Event<?> getEvent()

Returns

Event<?> · Event data if any available otherwise return null

waitEvent

Waits for event on current thread.

public static Event<?> waitEvent()

Returns

Event<?> · Caught event

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.

PrivMX Endpoint Java v2.5

This package is not up to date with the core documentation. Some of the features you've seen described in other parts of the documentation might not be mentioned here. Those changes do not influence compatibility, however