C# 클래스 Novell.Directory.Ldap.LdapMessageQueue

Represents a queue of incoming asynchronous messages from the server. It is the common interface for {@link LdapResponseQueue} and {@link LdapSearchQueue}.
파일 보기 프로젝트 열기: EventStore/csharp-ldap 1 사용 예제들

Private Properties

프로퍼티 타입 설명
LdapMessageQueue System
LdapMessageQueue System
getResponse LdapMessage

공개 메소드들

메소드 설명
getResponse ( ) : LdapMessage

Returns the response from an Ldap request. The getResponse method blocks until a response is available, or until all operations associated with the object have completed or been canceled, and then returns the response. The application is responsible to determine the type of message returned.

getResponse ( System msgid ) : LdapMessage

Returns the response from an Ldap request for a particular message ID. The getResponse method blocks until a response is available for a particular message ID, or until all operations associated with the object have completed or been canceled, and then returns the response. If there is no outstanding operation for the message ID (or if it is zero or a negative number), IllegalArgumentException is thrown. The application is responsible to determine the type of message returned.

isComplete ( int msgid ) : bool

Reports true if all results have been received for a particular message id. If the search result done has been received from the server for the message id, it reports true. There may still be messages waiting to be retrieved by the applcation with getResponse. @throws IllegalArgumentException if there is no outstanding operation for the message ID,

isResponseReceived ( ) : bool

Reports true if any response has been received from the server and not yet retrieved with getResponse. If getResponse has been used to retrieve all messages received to this point, then isResponseReceived returns false.

isResponseReceived ( int msgid ) : bool

Reports true if a response has been received from the server for a particular message ID but not yet retrieved with getResponse. If there is no outstanding operation for the message ID (or if it is zero or a negative number), IllegalArgumentException is thrown.

비공개 메소드들

메소드 설명
LdapMessageQueue ( ) : System
LdapMessageQueue ( System myname, MessageAgent agent ) : System

Constructs a response queue using the specified message agent

getResponse ( Integer32 msgid ) : LdapMessage

Private implementation of getResponse. Has an Integer object as a parameter so we can distinguish the null and the message number case

메소드 상세

getResponse() 공개 메소드

Returns the response from an Ldap request. The getResponse method blocks until a response is available, or until all operations associated with the object have completed or been canceled, and then returns the response. The application is responsible to determine the type of message returned.
LdapException A general exception which includes an error /// message and an Ldap error code. ///
public getResponse ( ) : LdapMessage
리턴 LdapMessage

getResponse() 공개 메소드

Returns the response from an Ldap request for a particular message ID. The getResponse method blocks until a response is available for a particular message ID, or until all operations associated with the object have completed or been canceled, and then returns the response. If there is no outstanding operation for the message ID (or if it is zero or a negative number), IllegalArgumentException is thrown. The application is responsible to determine the type of message returned.
LdapException A general exception which includes an error /// message and an Ldap error code. ///
public getResponse ( System msgid ) : LdapMessage
msgid System query for responses for a specific message request /// ///
리턴 LdapMessage

isComplete() 공개 메소드

Reports true if all results have been received for a particular message id. If the search result done has been received from the server for the message id, it reports true. There may still be messages waiting to be retrieved by the applcation with getResponse. @throws IllegalArgumentException if there is no outstanding operation for the message ID,
public isComplete ( int msgid ) : bool
msgid int
리턴 bool

isResponseReceived() 공개 메소드

Reports true if any response has been received from the server and not yet retrieved with getResponse. If getResponse has been used to retrieve all messages received to this point, then isResponseReceived returns false.
public isResponseReceived ( ) : bool
리턴 bool

isResponseReceived() 공개 메소드

Reports true if a response has been received from the server for a particular message ID but not yet retrieved with getResponse. If there is no outstanding operation for the message ID (or if it is zero or a negative number), IllegalArgumentException is thrown.
public isResponseReceived ( int msgid ) : bool
msgid int A particular message ID to query for available responses. /// ///
리턴 bool