org.apache.directory.api.ldap.model.message
Class AbstractAbandonableRequest

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.AbstractMessage
      extended by org.apache.directory.api.ldap.model.message.AbstractRequest
          extended by org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest
All Implemented Interfaces:
AbandonableRequest, Message, Request
Direct Known Subclasses:
AddRequestImpl, BindRequestImpl, CompareRequestImpl, DeleteRequestImpl, ModifyDnRequestImpl, ModifyRequestImpl, SearchRequestImpl

public class AbstractAbandonableRequest
extends AbstractRequest
implements AbandonableRequest

The base abandonable request message class. All such requests have a response type.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
 
Constructor Summary
protected AbstractAbandonableRequest(int id, MessageTypeEnum type)
          Subclasses must provide these parameters via a super constructor call.
 
Method Summary
 void abandon()
          Abandons this request.
 AbandonableRequest addAbandonListener(AbandonListener listener)
          Adds listener to be notified if this request gets abandoned.
 boolean isAbandoned()
          Checks to see if this request has been abandoned.
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest
equals, hashCode, hasResponse
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
 

Constructor Detail

AbstractAbandonableRequest

protected AbstractAbandonableRequest(int id,
                                     MessageTypeEnum type)
Subclasses must provide these parameters via a super constructor call.

Parameters:
id - the sequential message identifier
type - the request type enum
Method Detail

abandon

public void abandon()
Description copied from interface: AbandonableRequest
Abandons this request.

Specified by:
abandon in interface AbandonableRequest

isAbandoned

public boolean isAbandoned()
Description copied from interface: AbandonableRequest
Checks to see if this request has been abandoned.

Specified by:
isAbandoned in interface AbandonableRequest
Returns:
true if the request has been abandoned.

addAbandonListener

public AbandonableRequest addAbandonListener(AbandonListener listener)
Adds listener to be notified if this request gets abandoned.

Specified by:
addAbandonListener in interface AbandonableRequest
Parameters:
listener - to be notified if this request gets abandoned.
Returns:
An AbandonableRequest reference


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.