Package net.sf.eBus.feed.pattern
Class EventPattern.FeedInfo
- java.lang.Object
-
- net.sf.eBus.feed.pattern.EventPattern.FeedInfo
-
- Enclosing class:
- EventPattern
public static final class EventPattern.FeedInfo extends Object
This class provides the information needed byEPatternFeedtobuildto a notification message feed.FeedInfoinstances may be created directly by the user or indirectly viaEventPattern.Builder.beginParameter(String)/EventPattern.Builder.endParameter()calls.
-
-
Constructor Summary
Constructors Constructor Description FeedInfo(EMessageKey key, EFeed.FeedScope scope)Creates subscription feed information for the given notification message key and feed scope.FeedInfo(EMessageKey key, EFeed.FeedScope scope, ECondition condition)Creates subscription feed information for the given notification message key, feed scope, and optional feed condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EConditioncondition()Returns the optional subscription feed condition.EMessageKeymessageKey()Returns the subscription notification message key.EFeed.FeedScopescope()Returns the subscription feed scope.
-
-
-
Constructor Detail
-
FeedInfo
public FeedInfo(EMessageKey key, EFeed.FeedScope scope)
Creates subscription feed information for the given notification message key and feed scope. The feed condition is set toEFeed.NOTIFY_METHOD.- Parameters:
key- required notification message key.scope- required feed scope.
-
FeedInfo
public FeedInfo(EMessageKey key, EFeed.FeedScope scope, ECondition condition)
Creates subscription feed information for the given notification message key, feed scope, and optional feed condition. Ifconditionisnull, then the condition is set toEFeed.NO_CONDITION.- Parameters:
key- required notification message key.scope- required feed scope.condition- optional subscription condition. May benull.- Throws:
NullPointerException- if eitherkeyorscopeisnull.IllegalArgumentException- ifkeyis not a notification message.
-
-
Method Detail
-
messageKey
public EMessageKey messageKey()
Returns the subscription notification message key.- Returns:
- message key.
-
scope
public EFeed.FeedScope scope()
Returns the subscription feed scope.- Returns:
- feed scope.
-
condition
public ECondition condition()
Returns the optional subscription feed condition. May returnnull.- Returns:
- feed condition.
-
-