LDAP Classes
Implements Java LDAP

org.ietf.ldap
Class LDAPResponseQueue

java.lang.Object
  |
  +--org.ietf.ldap.LDAPResponseQueue
All Implemented Interfaces:
LDAPMessageQueue

public class LDAPResponseQueue
extends java.lang.Object
implements LDAPMessageQueue

Encapsulates a low-level mechanism for processing asynchronous messages received from a server.

See Also:
com.novell.ldap.LDAPResponseQueue

Method Summary
 int[] getMessageIDs()
          Returns the message IDs for all outstanding requests.
 LDAPMessage getResponse()
          Returns the response.
 LDAPMessage getResponse(int msgid)
          Returns the response for a particular message id.
 boolean isResponseReceived()
          Reports whether a response has been received from the server.
 boolean isResponseReceived(int msgid)
          Reports whether a response has been received from the server for a particular message id.
 void merge(LDAPMessageQueue queue2)
          Merges two response queues by moving the contents from another queue to this one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMessageIDs

public int[] getMessageIDs()
Returns the message IDs for all outstanding requests.

Specified by:
getMessageIDs in interface LDAPMessageQueue
See Also:
com.novell.ldap.LDAPResponse.getMessageIDs()

isResponseReceived

public boolean isResponseReceived()
Reports whether a response has been received from the server.

Specified by:
isResponseReceived in interface LDAPMessageQueue
See Also:
com.novell.ldap.LDAPResponse.isResponseReceived()

isResponseReceived

public boolean isResponseReceived(int msgid)
Reports whether a response has been received from the server for a particular message id.

Specified by:
isResponseReceived in interface LDAPMessageQueue
See Also:
com.novell.ldap.LDAPResponse.isResponseReceived(int)

merge

public void merge(LDAPMessageQueue queue2)
Merges two response queues by moving the contents from another queue to this one.

Specified by:
merge in interface LDAPMessageQueue
See Also:
com.novell.ldap.LDAPResponse.merge(LDAPMessageQueue)

getResponse

public LDAPMessage getResponse()
                        throws LDAPException
Returns the response.

Specified by:
getResponse in interface LDAPMessageQueue
LDAPException
See Also:
com.novell.ldap.LDAPResponse.getResponse()

getResponse

public LDAPMessage getResponse(int msgid)
                        throws LDAPException
Returns the response for a particular message id.

Specified by:
getResponse in interface LDAPMessageQueue
LDAPException
See Also:
com.novell.ldap.LDAPResponse.getResponse(int)

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000