public static final class EReplyFeed.ERequest extends EFeed
ERequestis responsible for matching an
ERequestFeed.ERequestwith a single
EReplyFeed. The replier uses
reply(EReplyMessage)to post a
reply messageback to the requesting client. Replies cannot be sent using
ERequestinstances be retrieved from
EReplyFeed. It is the application's responsibility to track active
ERequestinstances in order to send reply messages back to requestors.
EReplyFeed does track the active
instances but for internal purposes only. The reason is
ERequest not having the original request
message. Without the request message, an
object is unusable by the application.)
request client does not directly
ERequest instances but with its
ERequestFeed.ERequest. This is because there is a
Each request is given an identifier that is unique for the
request lifespan. Once the request reaches the
canceled state, this
identifier is returned an identifier pool for re-use. It
is likely that a later request will be assigned the same
|Modifier and Type||Method and Description|
Cancels this request if still active.
Returns the associated reply feed.
Forwards the reply message to the request feed.
Returns the associated request message.
Returns the current request state.
Returns a containing the feed message key and data member values.
activationCount, addAllKeys, addKey, clientId, close, defaultDispatcher, equals, feedId, feedState, findKeys, findKeys, findKeys, hashCode, inPlace, isActive, isOverridden, key, loadKeys, location, messageSubject, register, register, register, scope, shutdown, shutdown, shutdownAll, startup, startup, startupAll, storeKeys, storeKeys, storeKeys
protected void inactivate()
public java.lang.String toString()
public ERequestMessage request()
public ERequestFeed.RequestState state()
public EReplyFeed replier()
public void reply(EReplyMessage msg) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
msg- the reply message.
nullor is not a valid reply message class for this request.
java.lang.IllegalStateException- if the request state is