public static final class ERequestFeed.ERequest extends EFeed
EReplier to the
ERequestor, routing replies back to the requestor.
A requestor can cancel an in-progress request by calling
EFeed.close(). Once canceled, no new replies
will be delivered to the requestor. However, in-flight
replies already scheduled for delivery will be delivered.
Note: Applications are responsible for
tracking active requests once instantiated.
ERequestFeed does not track active requests for
the application.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ESingleFeed.FeedType
Enumerates the supported feed types.
|
EFeed.AbstractClientTask, EFeed.FeedScope, EFeed.NotifyTask, EFeed.StatusTask<T extends IEFeed>| Modifier and Type | Field and Description |
|---|---|
protected int |
mActivationCount
Tracks the number of contra-feeds matched to this feed.
|
protected static List<EFeed> |
mAdvertisers
Track the advertised feeds in order to generate
advertise messages. |
protected ESingleFeed.FeedType |
mFeedType
Specifies whether this is a publish, subscribe, request,
or reply feed.
|
protected net.sf.eBus.client.ESubject |
mSubject
The feed interfaces with this eBus subject.
|
mEClient, mFeedId, mFeedState, mInPlace, mIsActive, mScope, NO_CONDITION, NOTIFY_METHOD| Modifier and Type | Method and Description |
|---|---|
int |
activationCount()
Returns the feed activation count.
|
protected void |
inactivate()
If this request is still active, then automatically
cancels this request with all extant repliers.
|
EMessageKey |
key()
Returns the feed message key.
|
String |
messageSubject()
Returns the feed
message key subect. |
int |
repliersRemaining()
Returns the number of repliers still replying to the
request.
|
ERequestFeed.RequestState |
requestState()
Returns the request current state.
|
String |
toString()
Returns a containing the feed message key and data member
values.
|
addAllKeys, addKey, checkScopes, clientId, close, defaultDispatcher, eClient, equals, feedId, feedState, findKeys, findKeys, findKeys, hashCode, inPlace, isActive, isFeedUp, isOverridden, loadKeys, location, register, register, register, scope, shutdown, shutdown, shutdownAll, startup, startup, startupAll, storeKeys, storeKeys, storeKeysprotected static final List<EFeed> mAdvertisers
advertise messages.protected final ESingleFeed.FeedType mFeedType
protected final net.sf.eBus.client.ESubject mSubject
feed type.protected int mActivationCount
protected void inactivate()
inactivate in class EFeedpublic String toString()
public ERequestFeed.RequestState requestState()
public int repliersRemaining()
ERequestFeed.RequestState.NOT_PLACED or
ERequestFeed.RequestState.DONE.public final EMessageKey key()
EPublishFeed, then a
notification
message key is returned.public final String messageSubject()
message key subect.public final int activationCount()
Copyright © 2019. All rights reserved.