public class Interest<K> extends Object implements InitializingBean
Constructor and Description |
---|
Interest() |
Interest(K key) |
Interest(K key,
InterestResultPolicy policy) |
Interest(K key,
InterestResultPolicy policy,
boolean durable) |
Interest(K key,
InterestResultPolicy policy,
boolean durable,
boolean receiveValues) |
Interest(K key,
String policy) |
Interest(K key,
String policy,
boolean durable) |
Interest(K key,
String policy,
boolean durable,
boolean receiveValues) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected K |
getKey()
Returns the key of interest.
|
protected InterestResultPolicy |
getPolicy()
Returns the interest policy.
|
protected boolean |
isDurable()
Returns the interest durability.
|
protected boolean |
isReceiveValues()
Returns the type of values received by the listener.
|
void |
setDurable(boolean durable)
Sets the interest durability.
|
void |
setKey(K key)
Sets the key of interest.
|
void |
setPolicy(Object policy)
Sets the interest policy.
|
void |
setReceiveValues(boolean receiveValues)
Switches between the different entities received by the listener.
|
public Interest()
public Interest(K key)
public Interest(K key, InterestResultPolicy policy)
public Interest(K key, InterestResultPolicy policy, boolean durable)
public Interest(K key, InterestResultPolicy policy, boolean durable, boolean receiveValues)
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
protected K getKey()
public void setKey(K key)
key
- the key to setprotected InterestResultPolicy getPolicy()
public void setPolicy(Object policy)
policy
- the policy to setprotected boolean isDurable()
public void setDurable(boolean durable)
durable
- the durable to setprotected boolean isReceiveValues()
public void setReceiveValues(boolean receiveValues)
receiveValues
- the receiveValues to set