Skip to main content
reference

EventType

Defines the structure to register PrivMX Bridge event callbacks using PrivmxEndpoint#registerCallback(Object, EventType, EventCallback).

Fields

ConnectedEvent

Predefined event type that captures successful platform connection events.

public static EventType<Void> ConnectedEvent

DisconnectedEvent

Predefined event type to catch disconnection events.

public static EventType<Void> DisconnectedEvent

InboxCreatedEvent

Predefined event type to catch created Inbox events.

public static EventType<Inbox> InboxCreatedEvent

InboxDeletedEvent

Predefined event type to catch deleted Inbox events.

public static EventType<InboxDeletedEventData> InboxDeletedEvent

InboxUpdatedEvent

Predefined event type to catch update Inbox events.

public static EventType<Inbox> InboxUpdatedEvent

LibBreakEvent

Predefined event type to catch special events. This type could be used to emit/handle events with custom implementations (e.g. to break event loops).

public static EventType<Void> LibBreakEvent

StoreCreatedEvent

Predefined event type to catch created Store events.

public static EventType<Store> StoreCreatedEvent

StoreDeletedEvent

Predefined event type to catch deleted Store stats events.

public static EventType<StoreDeletedEventData> StoreDeletedEvent

StoreStatsChangedEvent

Predefined event type to catch updated Store stats events.

public static EventType<StoreStatsChangedEventData> StoreStatsChangedEvent

StoreUpdatedEvent

Predefined event type to catch updated Store events.

public static EventType<Store> StoreUpdatedEvent

ThreadCreatedEvent

Predefined event type to catch created Thread events.

public static EventType<Thread> ThreadCreatedEvent

ThreadDeletedEvent

Predefined event type to catch deleted Thread events.

public static EventType<ThreadDeletedEventData> ThreadDeletedEvent

ThreadStatsChangedEvent

Predefined event type to catch updated Thread stats events.

public static EventType<ThreadStatsEventData> ThreadStatsChangedEvent

ThreadUpdatedEvent

Predefined event type to catch updated Thread events.

public static EventType<Thread> ThreadUpdatedEvent

channel

Channel of this event type.

public final String channel

eventResultClass

Type of event data.

public final Class<T> eventResultClass

eventType

This event type as a string.

public final String eventType

Static Methods

InboxEntryCreatedEvent

Returns instance to register on created entry Events.

public static EventType<InboxEntry> InboxEntryCreatedEvent(
String inboxId
)

NameTypeDescription
inboxIdStringID of the Inbox to observe

TypeDescription
EventType<InboxEntry> predefined event type to catch created entries in matching Inbox events

InboxEntryDeletedEvent

Returns instance to register on deleting entries Events.

public static EventType<InboxEntryDeletedEventData> InboxEntryDeletedEvent(
String inboxId
)

NameTypeDescription
inboxIdStringID of the Inbox to observe

TypeDescription
EventType<InboxEntryDeletedEventData> predefined event type to catch deleted entries in matching Inbox events

StoreFileCreatedEvent

Returns instance to register on created file Events.

public static EventType<File> StoreFileCreatedEvent(
String storeId
)

NameTypeDescription
storeIdStringID of the store to observe

TypeDescription
EventType<File> Predefined event type to catch new files in matching Store events

StoreFileDeletedEvent

Returns instance to register on deleted file Events.

public static EventType<StoreFileDeletedEventData> StoreFileDeletedEvent(
String storeId
)

NameTypeDescription
storeIdStringID of the Store to observe

TypeDescription
EventType<StoreFileDeletedEventData> Predefined event type to catch deleted files in matching Store events

StoreFileUpdatedEvent

Returns instance to register on file update Events.

public static EventType<File> StoreFileUpdatedEvent(
String storeId
)

NameTypeDescription
storeIdStringID of the Store to observe

TypeDescription
EventType<File> Predefined event type to catch updated files in matching Store events

ThreadMessageDeletedEvent

Returns instance to register on deleted message Events.

public static EventType<ThreadDeletedMessageEventData> ThreadMessageDeletedEvent(
String threadId
)

NameTypeDescription
threadIdStringID of the Thread to observe

TypeDescription
EventType<ThreadDeletedMessageEventData> Predefined event type to catch deleted messages in matching Thread events

ThreadMessageUpdatedEvent

Returns instance to register on message update Events.

public static EventType<Message> ThreadMessageUpdatedEvent(
String threadId
)

NameTypeDescription
threadIdStringID of the Thread to observe

TypeDescription
EventType<Message> predefined event type to catch message updates in matching Thread events

ThreadNewMessageEvent

Returns instance to register on new message Events.

public static EventType<Message> ThreadNewMessageEvent(
String threadId
)

NameTypeDescription
threadIdStringID of the Thread to observe

TypeDescription
EventType<Message> Predefined event type to catch new messages in matching Thread events