public class AmiMethodContext
extends java.lang.Object
No public constructor is available to the user of the AMI Java API. Instance object of this class can only be created by the AMI Java API internally.
Each time a new invocation or new subscription arrives, a new instance object of this class is created by the AMI Java API and passed to the application.
Constructor and Description |
---|
AmiMethodContext(AmiSession ami,
java.lang.Integer context,
java.lang.String replySubject)
Protected method to be accessed by the AMI Java API only.
|
AmiMethodContext(AmiSession ami,
java.lang.String methodName,
AmiMethodInterface method,
java.lang.Object methodMsg,
java.lang.Integer context,
java.lang.Integer duration,
java.lang.String replySubject)
Protected method to be accessed by the AMI Java API only.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
_getMethodMsg()
Protected method to be accessed by the AMI Java API only.
|
java.lang.String |
_getMethodName()
Protected method to be accessed by the AMI Java API only.
|
void |
_setArguments(AmiParameterList args)
Protected method to be accessed by the AMI Java API only.
|
boolean |
equals(AmiMethodContext context)
Test whether the given
AmiMethodContext is equivalent of
this object. |
AmiParameterList |
getArguments()
Gets the input arguments of the method invocation or subscription.
|
java.lang.Integer |
getContext()
Gets this method invocation/subscription context number.
|
java.lang.Integer |
getDuration()
Gets the DURATION parameter of the asynchronous method subscription.
|
AmiMethodInterface |
getMethod()
Gets the AMI method object associated with this invocation or
subscription.
|
java.lang.String |
getReplySubject()
Gets the reply subject of the method invoker or subscriber.
|
AmiSession |
getSession()
Protected method to be accessed by the AMI Java API only.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setDuration(java.lang.Integer duration)
Sets the DURATION parameter of the asynchronous method subscription.
|
public AmiMethodContext(AmiSession ami, java.lang.String methodName, AmiMethodInterface method, java.lang.Object methodMsg, java.lang.Integer context, java.lang.Integer duration, java.lang.String replySubject)
public AmiMethodContext(AmiSession ami, java.lang.Integer context, java.lang.String replySubject)
public AmiMethodInterface getMethod()
Use the instanceof
operator to determine whether this AMI
method is an AmiAsyncMethodInterface
.
public java.lang.Integer getDuration()
This method is only applicable to an asynchronous AMI method.
public void setDuration(java.lang.Integer duration)
This method is only applicable to an asynchronous AMI method.
public AmiParameterList getArguments()
public java.lang.String getReplySubject()
String
- - The reply subject.
Please note that this subject and the context number represents an unique method invocation or subscription.
public java.lang.Integer getContext()
Please note that this subject and the context number represents an unique method invocation or subscription.
public boolean equals(AmiMethodContext context)
AmiMethodContext
is equivalent of
this object.context
- The context to compare with this object.The criteria for determining whether the given context is equivalent to this object is to compare whether their reply subject and context number have the same values.
public int hashCode()
hashCode
in class java.lang.Object
This method is supported for the benefit of hashtables such as those
provided by java.util.Hashtable
.
public void _setArguments(AmiParameterList args)
public AmiSession getSession()
public java.lang.String _getMethodName()
public java.lang.Object _getMethodMsg()
Copyright © 2000-2019 TIBCO Inc. All Rights Reserved.