Class AbstractAbandonableRequest
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.AbstractMessage
-
- org.apache.directory.api.ldap.model.message.AbstractRequest
-
- 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 abstract class AbstractAbandonableRequest extends AbstractRequest implements AbandonableRequest
The base abandonable request message class. All such requests have a response type.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
-
-
-
-
Method Detail
-
abandon
public void abandon()
Abandons this request.- Specified by:
abandon
in interfaceAbandonableRequest
-
isAbandoned
public boolean isAbandoned()
Checks to see if this request has been abandoned.- Specified by:
isAbandoned
in interfaceAbandonableRequest
- 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 interfaceAbandonableRequest
- Parameters:
listener
- to be notified if this request gets abandoned.- Returns:
- An AbandonableRequest reference
-
-