APIdia Launch Partner
Top Fields Constructors Methods
com.sun.jndi.ldap

pack-priv final Class LdapRequest

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.concurrent.BlockingQueue, .LinkedBlockingQueue, .TimeUnit, javax.naming.CommunicationException

Field Summary

Modifier and TypeField and Description
private volatile boolean
private static final BerDecoder
private static final String
private volatile boolean
private static final BerDecoder
private volatile boolean
pack-priv final int
pack-priv LdapRequest
private final boolean
private final BlockingQueue<BerDecoder>

Constructor Summary

AccessConstructor and Description
pack-priv
LdapRequest(int msgId, boolean pause, int replyQueueCapacity)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
pack-priv void
pack-priv void
pack-priv BerDecoder

Returns:

BerDecoder if reply was read successfully
getReplyBer
(long
timeout, infinite if the value is negative
millis
)

Read reply BER

pack-priv boolean
pack-priv boolean

Returns:

true if an "abandon request" may be sent for this request, false otherwise
shouldAbandonRequest
()

Returns true if an "abandon request" may be sent for this request, false otherwise.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cancelledback to summary
private volatile boolean cancelled
CANCELLED_MARKERback to summary
private static final BerDecoder CANCELLED_MARKER
CLOSE_MSGback to summary
private static final String CLOSE_MSG
completedback to summary
private volatile boolean completed
CONN_CLOSED_MARKERback to summary
private static final BerDecoder CONN_CLOSED_MARKER
connectionClosedback to summary
private volatile boolean connectionClosed
msgIdback to summary
pack-priv final int msgId
nextback to summary
pack-priv LdapRequest next
pauseAfterReceiptback to summary
private final boolean pauseAfterReceipt
repliesback to summary
private final BlockingQueue<BerDecoder> replies

Constructor Detail

LdapRequestback to summary
pack-priv LdapRequest(int msgId, boolean pause, int replyQueueCapacity)

Method Detail

addReplyBerback to summary
pack-priv boolean addReplyBer(BerDecoder ber)
cancelback to summary
pack-priv void cancel()
connectionClosedback to summary
pack-priv void connectionClosed()
getReplyBerback to summary
pack-priv BerDecoder getReplyBer(long millis) throws IOException, CommunicationException, InterruptedException

Read reply BER

Parameters
millis:long

timeout, infinite if the value is negative

Returns:BerDecoder

BerDecoder if reply was read successfully

Exceptions
IOException:
request has been closed or timed out. Request needs to be abandoned (i.e. a LDAP_REQ_ABANDON message needs to be sent across)
CommunicationException:
request has been canceled and request does not need to be abandoned (i.e. a LDAP_REQ_ABANDON message need not be sent across)
InterruptedException:
the wait to read a reply has been interrupted
hasSearchCompletedback to summary
pack-priv boolean hasSearchCompleted()
shouldAbandonRequestback to summary
pack-priv boolean shouldAbandonRequest()

Returns true if an "abandon request" may be sent for this request, false otherwise.

Returns:boolean

true if an "abandon request" may be sent for this request, false otherwise