public class Subscription extends Object
Modifier and Type | Class and Description |
---|---|
class |
Subscription.Handle
A handle exposes specific functionality of a subscription to be used by clients.
|
Modifier and Type | Field and Description |
---|---|
static Comparator<Subscription> |
SubscriptionByPriorityDesc |
Modifier and Type | Method and Description |
---|---|
boolean |
belongsTo(Class listener)
Check whether this subscription manages a message handler of the given listener class.
|
boolean |
contains(Object listener)
Check whether this subscriptions manages the given listener instance.
|
Subscription.Handle |
getHandle() |
Class[] |
getHandledMessageTypes() |
int |
getPriority() |
boolean |
handlesMessageType(Class<?> messageType)
Check whether this subscription manages a specific message type.
|
void |
publish(MessagePublication publication,
Object message) |
int |
size() |
void |
subscribe(Object o) |
boolean |
unsubscribe(Object existingListener) |
public static final Comparator<Subscription> SubscriptionByPriorityDesc
public boolean belongsTo(Class listener)
public boolean contains(Object listener)
public boolean handlesMessageType(Class<?> messageType)
public Class[] getHandledMessageTypes()
public void publish(MessagePublication publication, Object message)
public int getPriority()
public void subscribe(Object o)
public boolean unsubscribe(Object existingListener)
public int size()
public Subscription.Handle getHandle()
Copyright © 2018. All rights reserved.